sim.util.geo
Class GeomPlanarGraphEdge
java.lang.Object
com.vividsolutions.jts.planargraph.GraphComponent
com.vividsolutions.jts.planargraph.Edge
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?
Fields inherited from class com.vividsolutions.jts.planargraph.Edge |
dirEdge |
Fields inherited from class com.vividsolutions.jts.planargraph.GraphComponent |
isMarked, isVisited |
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 |
GeomPlanarGraphEdge
public GeomPlanarGraphEdge(com.vividsolutions.jts.geom.LineString line)
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)