Class GraphComponent

Hierarchy: Object , GraphComponent
Direct Known Subclasses: Edge, Node
public abstract class GraphComponent
A GraphComponent is the parent class for the objects' that form a graph. Each GraphComponent can carry a Label.

Other

  • version: 1.7
public GraphComponent()
public GraphComponent(Label label)
public Label getLabel()
public void setLabel(Label label)
public void setInResult(boolean isInResult)
public boolean isInResult()
public void setCovered(boolean isCovered)
public boolean isCovered()
public boolean isCoveredSet()
public boolean isVisited()
public void setVisited(boolean isVisited)
public abstract abstract Coordinate getCoordinate()
Returns:
a coordinate in this component (or null, if there are none)
protected abstract abstract void computeIM(IntersectionMatrix im)
compute the contribution to an IM for this component
public abstract abstract boolean isIsolated()
An isolated component is one that does not intersect or touch any other component. This is the case if the label has valid locations for only a single Geometry.
Returns:
true if this component is isolated
public void updateIM(IntersectionMatrix im)
Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries