Class NFELinePointRule


  • public class NFELinePointRule
    extends NFEConnectivityRule
    A representation of an NFE line-point connectivity rule
    • Constructor Detail

      • NFELinePointRule

        public NFELinePointRule​(long id)
        Allocates a new line-point rule
        Parameters:
        id - the rule id
    • Method Detail

      • 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 or NFEConnectivityRule.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 or NFEConnectivityRule.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 or NFEConnectivityRule.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 or NFEConnectivityRule.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