public interface NFERuleHandlerContext
Modifier and Type | Method and Description |
---|---|
boolean |
connectionExists(NFEFeatureElement featElem1, NFEFeatureElement featElem2)
Tells whether the given feature elements are connected.
|
NFEConnectableEdge<NFEFeatureElement> |
createConnectableEdge(NFEFeatureElement lineFeatElem, java.awt.geom.Point2D connPoint, IntersectionLocation connInterLoc)
Creates a new connectable edge which will be used by a connection descriptor.
|
NFEConnectionDescriptor<NFEFeatureElement,NFEFeatureElement> |
createConnectionDescriptor()
Creates a new connection descriptor instance
|
NFERuleHandlerContext |
createContext(NFELinePointRule lpRule)
Creates a new nested context for the line-point rule.
|
NFELinePointRuleHandlerParam |
createLeftHandLinePointHandlerParam(NFELineLineRuleHandlerParam llhParam)
Creates a new parameter for a line-line rule's left hand side line-point rule
|
NFELinePointRuleHandlerParam |
createRighttHandLinePointHandlerParam(NFELineLineRuleHandlerParam llhParam)
Creates a new parameter for a line-line rule's right hand side line-point rule
|
int[] |
getAvailableConnections(NFEFeatureElement pointFeatElem)
Gets the number of available connections for the given point feature element.
|
NFERuleHandler |
getHandler(NFEConnectivityRule rule)
Gets the handler assigned to the given connectivity rule
|
int |
getSRID()
Gets the current NFE model's SRID
|
int[] |
getUsedConnections(NFEFeatureElement pointFeatElem, long lineFeatLayerId, long lineFeatClassId)
Gets the number of in an out connections the given point contains with lines of the specified feature layer and feature class.
|
boolean |
inConnectionExists(NFEFeatureElement pointFeatElem, NFEFeatureElement lineFeatElem)
Tells whether the line feature element is an incoming connection of the point feature element
|
boolean |
isStandaloneFeatureElement(NFEFeatureElement featElem)
Thells whether the feature element is standalone.
|
boolean |
outConnectionExists(NFEFeatureElement pointFeatElem, NFEFeatureElement lineFeatElem)
Tells whether the line feature element is an outgoing connection of the point feature element
|
NFEFeatureElement |
requestDefaultPointFeatureElement(JGeometry pointGeom)
Creates a new standalone point feature element with the given point geometry.
|
boolean |
reserveInConnection(NFEFeatureElement pointFeatElem, NFEFeatureElement lineFeatElem)
Creates a virtual in connection between the point and line feature element.
|
boolean |
reserveOutConnection(NFEFeatureElement pointFeatElem, NFEFeatureElement lineFeatElem)
Creates a virtual out connection between the point and line feature element.
|
void |
reset()
Resets the state of the context
|
int[] getAvailableConnections(NFEFeatureElement pointFeatElem)
pointFeatElem
- a point feature elementint[] getUsedConnections(NFEFeatureElement pointFeatElem, long lineFeatLayerId, long lineFeatClassId)
pointFeatElem
-lineFeatLayerId
-lineFeatClassId
-boolean connectionExists(NFEFeatureElement featElem1, NFEFeatureElement featElem2)
featElem1
- a feature elementfeatElem2
- a feature elementboolean inConnectionExists(NFEFeatureElement pointFeatElem, NFEFeatureElement lineFeatElem)
pointFeatElem
- a point feature elementlineFeatElem
- a line feature elementboolean outConnectionExists(NFEFeatureElement pointFeatElem, NFEFeatureElement lineFeatElem)
pointFeatElem
- a point feature elementlineFeatElem
- a line feature elementNFERuleHandler getHandler(NFEConnectivityRule rule)
rule
- a connectivity rule objectboolean reserveInConnection(NFEFeatureElement pointFeatElem, NFEFeatureElement lineFeatElem)
pointFeatElem
- a point feature elementlineFeatElem
- a line feature elementboolean reserveOutConnection(NFEFeatureElement pointFeatElem, NFEFeatureElement lineFeatElem)
pointFeatElem
- a point feature elementlineFeatElem
- a line feature elementNFEFeatureElement requestDefaultPointFeatureElement(JGeometry pointGeom)
pointGeom
- a point geometryboolean isStandaloneFeatureElement(NFEFeatureElement featElem)
featElem
- a feature elementNFERuleHandlerContext createContext(NFELinePointRule lpRule)
lpRule
- a line-point rule objectNFEConnectionDescriptor<NFEFeatureElement,NFEFeatureElement> createConnectionDescriptor()
NFEConnectableEdge<NFEFeatureElement> createConnectableEdge(NFEFeatureElement lineFeatElem, java.awt.geom.Point2D connPoint, IntersectionLocation connInterLoc)
lineFeatElem
- a line feature elementconnPoint
- the point on the line where the line will be connectedconnInterLoc
- the location of the line where the connection will be performedNFELinePointRuleHandlerParam createLeftHandLinePointHandlerParam(NFELineLineRuleHandlerParam llhParam)
llhParam
- a line-line rule handler parameter objectNFELinePointRuleHandlerParam createRighttHandLinePointHandlerParam(NFELineLineRuleHandlerParam llhParam)
llhParam
- a line-line rule handler parameter objectint getSRID()
void reset()