Class NFELinePointRule
- java.lang.Object
-
- oracle.spatial.network.nfe.model.rule.NFEConnectivityRule
-
- oracle.spatial.network.nfe.model.rule.NFELinePointRule
-
public class NFELinePointRule extends NFEConnectivityRule
A representation of an NFE line-point connectivity rule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NFELinePointRule.LPRuleSource
Defines different sources where a line-point could be created-
Nested classes/interfaces inherited from class oracle.spatial.network.nfe.model.rule.NFEConnectivityRule
NFEConnectivityRule.ConnectivityRuleType
-
-
Field Summary
-
Fields inherited from class oracle.spatial.network.nfe.model.rule.NFEConnectivityRule
ANY_FEATURE_CLASS_ID, ANY_FEATURE_LAYER_ID, DEFAULT_LL_HANDLER_ID, DEFAULT_LP_HANDLER_ID
-
-
Constructor Summary
Constructors Constructor Description NFELinePointRule(long id)
Allocates a new line-point rule
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NFELinePointRule
createCopy()
Returns a copy of the rule.java.lang.String
getLineAttrCondition()
Gets the rule's line attribute condition.long
getLineFeatureClassId()
Gets the rule's line feature class idlong
getLineFeatureLayerId()
Gets the rule's line feature layer idint
getMaxInConnections()
Gets the maximum number of incoming lines of the rule's line type allowed for the rule's pointint
getMaxOutConnections()
Gets the maximum number of outgoing lines of the rule's line type allowed for the rule's pointjava.lang.String
getPointAttrCondition()
Gets the rule's point attribute condition.long
getPointFeatureClassId()
Gets the rule's point feature class idlong
getPointFeatureLayerId()
Gets the rule's point feature layer idNFELinePointRule.LPRuleSource
getSource()
Gets a value indicating where the rule was createdNFEConnectivityRule.ConnectivityRuleType
getType()
Gets the actual connectivity rule typevoid
setLineAttrCondition(java.lang.String lineAttrCond)
Sets the rule's line attribute condition.void
setLineFeatureClassId(long lineFeatClassId)
Sets the rule's line feature class idvoid
setLineFeatureLayerId(long lineFeatLayerId)
Sets the rule's line feature layer idvoid
setMaxInConnections(int maxInConn)
Sets the maximum number of incoming lines of the rule's line type allowed for the rule's point maxInConn the maximum number of in connectionsvoid
setMaxOutConnections(int maxOutConn)
Gets the maximum number of outgoing lines of the rule's line type allowed for the rule's point maxOutConn the maximum number of out connectionsvoid
setPointAttrCondition(java.lang.String pointAttrCond)
Sets the rule's point attribute condition.void
setPointFeatureClassId(long pointFeatClassId)
Sets the rule's point feature class idvoid
setPointFeatureLayerId(long pointFeatLayerId)
Sets the rule's point feature layer idvoid
setSource(NFELinePointRule.LPRuleSource source)
Sets a value indicating where the rule was created-
Methods inherited from class oracle.spatial.network.nfe.model.rule.NFEConnectivityRule
getExecutionOrder, getHandler, getHandlerClass, getHandlerClassName, getHandlerId, getId, getKey, setExecutionOrder, setHandler, setHandlerClass, setHandlerClassName, setHandlerId, setId
-
-
-
-
Method Detail
-
getType
public NFEConnectivityRule.ConnectivityRuleType getType()
Description copied from class:NFEConnectivityRule
Gets the actual connectivity rule type- Specified by:
getType
in classNFEConnectivityRule
- Returns:
- a connectivity rule type
-
getLineAttrCondition
public java.lang.String getLineAttrCondition()
Gets the rule's line attribute condition. The condition will be evaluated by the expression analyzer that can be found in the model's rules engine: model.getManipulator().getRulesEngine(). By default the expression analyzer will be oracle.spatial.network.nfe.expression.ExpressionLexicalAnalyzer.- Returns:
- the line attribute condition as a boolean expression
-
setLineAttrCondition
public void setLineAttrCondition(java.lang.String lineAttrCond)
Sets the rule's line attribute condition. The condition will be evaluated by the expression analyzer that can be found in the model's rules engine: model.getManipulator().getRulesEngine(). By default the expression analyzer will be oracle.spatial.network.nfe.expression.ExpressionLexicalAnalyzer.- Parameters:
lineAttrCond
- the line attribute condition as a boolean expression
-
getPointAttrCondition
public java.lang.String getPointAttrCondition()
Gets the rule's point attribute condition. The condition will be evaluated by the expression analyzer that can be found in the model's rules engine: model.getManipulator().getRulesEngine(). By default the expression analyzer will be oracle.spatial.network.nfe.expression.ExpressionLexicalAnalyzer.- Returns:
- the point attribute condition as a boolean expression
-
setPointAttrCondition
public void setPointAttrCondition(java.lang.String pointAttrCond)
Sets the rule's point attribute condition. The condition will be evaluated by the expression analyzer that can be found in the model's rules engine: model.getManipulator().getRulesEngine(). By default the expression analyzer will be oracle.spatial.network.nfe.expression.ExpressionLexicalAnalyzer.- Parameters:
pointAttrCond
- the point attribute condition as a boolean expression
-
getSource
public NFELinePointRule.LPRuleSource getSource()
Gets a value indicating where the rule was created- Returns:
- a line-point source type
-
setSource
public void setSource(NFELinePointRule.LPRuleSource source)
Sets a value indicating where the rule was created- Parameters:
source
- a line-point source type
-
getMaxInConnections
public int getMaxInConnections()
Gets the maximum number of incoming lines of the rule's line type allowed for the rule's point- Returns:
- the maximum number of in connections. If unbounded it returns
NFECardinalityRule.CARDINALITY_UNBOUNDED
-
setMaxInConnections
public void setMaxInConnections(int maxInConn)
Sets the maximum number of incoming lines of the rule's line type allowed for the rule's point maxInConn the maximum number of in connections
-
getMaxOutConnections
public int getMaxOutConnections()
Gets the maximum number of outgoing lines of the rule's line type allowed for the rule's point- Returns:
- the maximum number of out connections. If unbounded it returns
NFECardinalityRule.CARDINALITY_UNBOUNDED
-
setMaxOutConnections
public void setMaxOutConnections(int maxOutConn)
Gets the maximum number of outgoing lines of the rule's line type allowed for the rule's point maxOutConn the maximum number of out connections
-
getLineFeatureLayerId
public long getLineFeatureLayerId()
Gets the rule's line feature layer id- Returns:
- a line feature layer id or
NFEConnectivityRule.ANY_FEATURE_LAYER_ID
indicating the rule applies for all the line feature layers
-
setLineFeatureLayerId
public void setLineFeatureLayerId(long lineFeatLayerId)
Sets the rule's line feature layer id- Parameters:
lineFeatLayerId
- a line feature layer id orNFEConnectivityRule.ANY_FEATURE_LAYER_ID
for any line feature layer id
-
getPointFeatureLayerId
public long getPointFeatureLayerId()
Gets the rule's point feature layer id- Returns:
- a point feature layer id or
NFEConnectivityRule.ANY_FEATURE_LAYER_ID
indicating the rule applies for all the point feature layers
-
setPointFeatureLayerId
public void setPointFeatureLayerId(long pointFeatLayerId)
Sets the rule's point feature layer id- Parameters:
pointFeatLayerId
- a point feature layer id orNFEConnectivityRule.ANY_FEATURE_LAYER_ID
for any point feature layer id
-
getLineFeatureClassId
public long getLineFeatureClassId()
Gets the rule's line feature class id- Returns:
- a line feature class id or
NFEConnectivityRule.ANY_FEATURE_CLASS_ID
indicating the rule applies for all the line feature classes
-
setLineFeatureClassId
public void setLineFeatureClassId(long lineFeatClassId)
Sets the rule's line feature class id- Parameters:
lineFeatClassId
- a line feature class id orNFEConnectivityRule.ANY_FEATURE_CLASS_ID
for any line feature class id
-
getPointFeatureClassId
public long getPointFeatureClassId()
Gets the rule's point feature class id- Returns:
- a point feature class id or
NFEConnectivityRule.ANY_FEATURE_CLASS_ID
indicating the rule applies for all the point feature classes
-
setPointFeatureClassId
public void setPointFeatureClassId(long pointFeatClassId)
Sets the rule's point feature class id- Parameters:
pointFeatClassId
- a point feature class id orNFEConnectivityRule.ANY_FEATURE_CLASS_ID
for any point feature class id
-
createCopy
public NFELinePointRule createCopy()
Returns a copy of the rule.- Returns:
- copy of the rule
-
-