Class FeatureElementDescriptor


  • public class FeatureElementDescriptor
    extends java.lang.Object
    Describes a feature element or a network element that is part of a feature descriptor. FeatureElementDescriptor doesn't map directly feature elements in database. FeatureElementDescriptor can refer to feature elements in database or can be use to describe network elements.
    • Constructor Detail

      • FeatureElementDescriptor

        public FeatureElementDescriptor()
    • Method Detail

      • getConflictDescriptor

        public ConflictDescriptor getConflictDescriptor()
        Returns the conflict descriptor if any conflict is related to this feature element, null otherwise.
        Returns:
        conflict descriptor
      • setConflictDescriptor

        public void setConflictDescriptor​(ConflictDescriptor conflictDescriptor)
        Sets the conflict descriptor.
        Parameters:
        conflictDescriptor - conflict descriptor
      • getNodeDescriptor

        public NodeDescriptor getNodeDescriptor()
        Returns the node descriptor if the network element is a node, null otherwise.
        Returns:
        node descriptor
      • setNodeDescriptor

        public void setNodeDescriptor​(NodeDescriptor nodeDescriptor)
        Sets the node descriptor.
        Parameters:
        nodeDescriptor - node descriptor
      • getLinkDescriptor

        public LinkDescriptor getLinkDescriptor()
        Returns the link descriptor if the network element is a link, null otherwise.
        Returns:
        link descriptor
      • setLinkDescriptor

        public void setLinkDescriptor​(LinkDescriptor linkDescriptor)
        Sets the link descriptor.
        Parameters:
        linkDescriptor - link descriptor
      • getElementType

        public java.lang.Integer getElementType()
        Returns the feature element type. Feature element type is one of the following: 1 point on node, 2 point on link, 3 line.
        Returns:
        feature element type
      • setElementType

        public void setElementType​(java.lang.Integer elementType)
        Sets the feature element type.
        Parameters:
        elementType - element type
      • getNetElementId

        public java.lang.Long getNetElementId()
        Returns the network element identifier.
        Returns:
        network element identifier
      • setNetElementId

        public void setNetElementId​(java.lang.Long netElementId)
        Sets the network element identifier.
        Parameters:
        netElementId - network element identifier
      • isNode

        public boolean isNode()
        Returns true if the network element is a node, false otherwise.
        Returns:
        true if the network element is a node, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getSequence

        public java.lang.Integer getSequence()
        Returns the feature element sequence.
        Returns:
        feature element sequence
      • setSequence

        public void setSequence​(java.lang.Integer sequence)
        Sets the feature element sequence.
        Parameters:
        sequence - feature element sequence