Class NFELineLineRule


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

      • NFELineLineRule

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

      • 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 name
        value - 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