Class NFELineLineRule
- java.lang.Object
-
- oracle.spatial.network.nfe.model.rule.NFEConnectivityRule
-
- oracle.spatial.network.nfe.model.rule.NFELineLineRule
-
public class NFELineLineRule extends NFEConnectivityRule
A representation of an NFE line-line connectivity rule
-
-
Nested Class Summary
-
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 NFELineLineRule(long id)Allocates a new line-line rule
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefaultPointInitValue(java.lang.String attrName, java.lang.Object value)Adds an attribute value for initializing a point when it is automatically created by the ruleNFELineLineRulecreateCopy()Returns a copy of the rule.java.util.Map<java.lang.String,java.lang.Object>getDefaultPointInitValues()Gets a map containing all the point feature attributes and its initialization valuesBinaryInteractiongetInteraction()Gets the binary interaction which triggers this ruleNFELinePointRulegetLeftHandSideLinePointRule()Gets the line-point rule that corresponds to the left hand side operand of the line-line rulelonggetPointFeatureClassId()Gets the feature class id of the point connecting both lines of the rule.longgetPointFeatureLayerId()Gets the feature layer id of the point connecting both lines of the rule.NFELinePointRulegetRightHandSideLinePointRule()Gets the line-point rule that corresponds to the right hand side operand of the line-line ruleNFEConnectivityRule.ConnectivityRuleTypegetType()Gets the actual connectivity rule typebooleanisCreatePoint()Tells whether the rule creates a point automatically if it does not existbooleanremoveDefaultPointInitValue(java.lang.String attrName)Removes an point feature's initialization attribute valuevoidsetCreatePoint(boolean createPoint)Sets whether the rule creates a point automatically if it does not existvoidsetInteraction(BinaryInteraction interaction)Sets the binary interaction which triggers this rulevoidsetLeftHandSideLinePointRule(NFELinePointRule llpr)Sets the line-point rule that corresponds to the left hand side operand of the line-line rulevoidsetRightHandSideLinePointRule(NFELinePointRule rlpr)Sets the line-point rule that corresponds to the right hand side operand of the line-line rule-
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
-
getInteraction
public BinaryInteraction getInteraction()
Gets the binary interaction which triggers this rule- Returns:
- a binary interaction
-
setInteraction
public void setInteraction(BinaryInteraction interaction)
Sets the binary interaction which triggers this rule- Parameters:
interaction- a binary interaction
-
isCreatePoint
public boolean isCreatePoint()
Tells whether the rule creates a point automatically if it does not exist- Returns:
- true if the rule creates a point
-
setCreatePoint
public void setCreatePoint(boolean createPoint)
Sets whether the rule creates a point automatically if it does not exist- Parameters:
createPoint- true if the rule creates a point
-
getLeftHandSideLinePointRule
public NFELinePointRule getLeftHandSideLinePointRule()
Gets the line-point rule that corresponds to the left hand side operand of the line-line rule- Returns:
- a line-point rule
-
setLeftHandSideLinePointRule
public void setLeftHandSideLinePointRule(NFELinePointRule llpr)
Sets the line-point rule that corresponds to the left hand side operand of the line-line rule- Parameters:
llpr- a line-point rule
-
getRightHandSideLinePointRule
public NFELinePointRule getRightHandSideLinePointRule()
Gets the line-point rule that corresponds to the right hand side operand of the line-line rule- Returns:
- a line-point rule
-
setRightHandSideLinePointRule
public void setRightHandSideLinePointRule(NFELinePointRule rlpr)
Sets the line-point rule that corresponds to the right hand side operand of the line-line rule- Parameters:
rlpr-
-
getPointFeatureLayerId
public long getPointFeatureLayerId()
Gets the feature layer id of the point connecting both lines of the rule. It is a short hand for get(Right/Left)HandSideLinePointRule().getPointFeatureLayerId()- Returns:
- a point feature layer id
-
getPointFeatureClassId
public long getPointFeatureClassId()
Gets the feature class id of the point connecting both lines of the rule. get(Right/Left)HandSideLinePointRule().getPointFeatureClassId()- Returns:
- a point feature class id
-
addDefaultPointInitValue
public void addDefaultPointInitValue(java.lang.String attrName, java.lang.Object value)Adds an attribute value for initializing a point when it is automatically created by the rule- Parameters:
attrName- a point feature attribute namevalue- the point feature attribute value
-
removeDefaultPointInitValue
public boolean removeDefaultPointInitValue(java.lang.String attrName)
Removes an point feature's initialization attribute value- Parameters:
attrName- a point feature attribute name- Returns:
- true if the value could be removed
-
getDefaultPointInitValues
public java.util.Map<java.lang.String,java.lang.Object> getDefaultPointInitValues()
Gets a map containing all the point feature attributes and its initialization values- Returns:
- a map of the form attribute name - initialization value
-
createCopy
public NFELineLineRule createCopy()
Returns a copy of the rule.- Returns:
- copy of the rule
-
-