Package org.meteoinfo.jts.geomgraph
Class GraphComponent
- java.lang.Object
-
- org.meteoinfo.jts.geomgraph.GraphComponent
-
-
Constructor Summary
Constructors Constructor Description GraphComponent()GraphComponent(Label label)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcomputeIM(IntersectionMatrix im)compute the contribution to an IM for this componentabstract CoordinategetCoordinate()LabelgetLabel()booleanisCovered()booleanisCoveredSet()booleanisInResult()abstract booleanisIsolated()An isolated component is one that does not intersect or touch any other component.booleanisVisited()voidsetCovered(boolean isCovered)voidsetInResult(boolean isInResult)voidsetLabel(Label label)voidsetVisited(boolean isVisited)voidupdateIM(IntersectionMatrix im)Update the IM with the contribution for this component.
-
-
-
Field Detail
-
label
protected Label label
-
-
Constructor Detail
-
GraphComponent
public GraphComponent()
-
GraphComponent
public GraphComponent(Label label)
-
-
Method Detail
-
getLabel
public Label getLabel()
-
setLabel
public void setLabel(Label label)
-
setInResult
public void setInResult(boolean isInResult)
-
isInResult
public boolean isInResult()
-
setCovered
public void setCovered(boolean isCovered)
-
isCovered
public boolean isCovered()
-
isCoveredSet
public boolean isCoveredSet()
-
isVisited
public boolean isVisited()
-
setVisited
public void setVisited(boolean isVisited)
-
getCoordinate
public abstract Coordinate getCoordinate()
- Returns:
- a coordinate in this component (or null, if there are none)
-
computeIM
protected abstract void computeIM(IntersectionMatrix im)
compute the contribution to an IM for this component
-
isIsolated
public 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
-
updateIM
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
-
-