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 classNFELinePointRule.LPRuleSourceDefines 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 NFELinePointRulecreateCopy()Returns a copy of the rule.java.lang.StringgetLineAttrCondition()Gets the rule's line attribute condition.longgetLineFeatureClassId()Gets the rule's line feature class idlonggetLineFeatureLayerId()Gets the rule's line feature layer idintgetMaxInConnections()Gets the maximum number of incoming lines of the rule's line type allowed for the rule's pointintgetMaxOutConnections()Gets the maximum number of outgoing lines of the rule's line type allowed for the rule's pointjava.lang.StringgetPointAttrCondition()Gets the rule's point attribute condition.longgetPointFeatureClassId()Gets the rule's point feature class idlonggetPointFeatureLayerId()Gets the rule's point feature layer idNFELinePointRule.LPRuleSourcegetSource()Gets a value indicating where the rule was createdNFEConnectivityRule.ConnectivityRuleTypegetType()Gets the actual connectivity rule typevoidsetLineAttrCondition(java.lang.String lineAttrCond)Sets the rule's line attribute condition.voidsetLineFeatureClassId(long lineFeatClassId)Sets the rule's line feature class idvoidsetLineFeatureLayerId(long lineFeatLayerId)Sets the rule's line feature layer idvoidsetMaxInConnections(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 connectionsvoidsetMaxOutConnections(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 connectionsvoidsetPointAttrCondition(java.lang.String pointAttrCond)Sets the rule's point attribute condition.voidsetPointFeatureClassId(long pointFeatClassId)Sets the rule's point feature class idvoidsetPointFeatureLayerId(long pointFeatLayerId)Sets the rule's point feature layer idvoidsetSource(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:NFEConnectivityRuleGets the actual connectivity rule type- Specified by:
getTypein 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_IDindicating 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_IDfor 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_IDindicating 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_IDfor 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_IDindicating 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_IDfor 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_IDindicating 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_IDfor any point feature class id
-
createCopy
public NFELinePointRule createCopy()
Returns a copy of the rule.- Returns:
- copy of the rule
-
-