sim.util.geo
Class GeomPlanarGraphEdge

java.lang.Object
  extended by com.vividsolutions.jts.planargraph.GraphComponent
      extended by com.vividsolutions.jts.planargraph.Edge
          extended by sim.util.geo.GeomPlanarGraphEdge

public class GeomPlanarGraphEdge
extends com.vividsolutions.jts.planargraph.Edge

A planar graph edge that wraps a LineString XXX Should consider making this an internal class to GeomPlanarGraph?


Field Summary
 
Fields inherited from class com.vividsolutions.jts.planargraph.Edge
dirEdge
 
Fields inherited from class com.vividsolutions.jts.planargraph.GraphComponent
isMarked, isVisited
 
Constructor Summary
GeomPlanarGraphEdge(com.vividsolutions.jts.geom.LineString line)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
           
 java.lang.Double getDoubleAttribute(java.lang.String name)
           
 java.lang.Integer getIntegerAttribute(java.lang.String name)
           
 com.vividsolutions.jts.geom.LineString getLine()
           
 java.lang.String getStringAttribute(java.lang.String name)
           
 boolean hasAttribute(java.lang.String name)
           
 boolean hasAttributes()
           
 void setAttributes(java.util.Map<java.lang.String,AttributeValue> attributes)
           
 
Methods inherited from class com.vividsolutions.jts.planargraph.Edge
getDirEdge, getDirEdge, getOppositeNode, isRemoved, setDirectedEdges
 
Methods inherited from class com.vividsolutions.jts.planargraph.GraphComponent
getComponentWithVisitedState, getContext, getData, isMarked, isVisited, setContext, setData, setMarked, setMarked, setVisited, setVisited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeomPlanarGraphEdge

public GeomPlanarGraphEdge(com.vividsolutions.jts.geom.LineString line)
Method Detail

getLine

public com.vividsolutions.jts.geom.LineString getLine()

hasAttributes

public boolean hasAttributes()
Returns:
true iff there are any attributes associated with this edge

setAttributes

public void setAttributes(java.util.Map<java.lang.String,AttributeValue> attributes)

hasAttribute

public boolean hasAttribute(java.lang.String name)
Parameters:
name - of attribute for which we're looking
Returns:
true if this edge has an attribute of that name

getAttribute

public java.lang.Object getAttribute(java.lang.String name)

getIntegerAttribute

public java.lang.Integer getIntegerAttribute(java.lang.String name)

getDoubleAttribute

public java.lang.Double getDoubleAttribute(java.lang.String name)

getStringAttribute

public java.lang.String getStringAttribute(java.lang.String name)