Class FeatureDescriptor

  • All Implemented Interfaces:
    java.lang.Comparable

    public class FeatureDescriptor
    extends java.lang.Object
    implements java.lang.Comparable
    Describes a feature involve in a conflict.
    • Constructor Detail

      • FeatureDescriptor

        public FeatureDescriptor()
    • Method Detail

      • getFeatureId

        public java.lang.Long getFeatureId()
        Returns the feature identifier.
        Returns:
        feature identifier
      • setFeatureId

        public void setFeatureId​(java.lang.Long featureId)
        Sets the feature identifier.
        Parameters:
        featureId - feature identifier
      • getFeatureAttributeDescriptorList

        public java.util.List<FeatureAttributeDescriptor> getFeatureAttributeDescriptorList()
        Returns the feature attributes descriptors.
        Returns:
        feature attributes descriptors
      • setFeatureAttributeDescriptorList

        public void setFeatureAttributeDescriptorList​(java.util.List<FeatureAttributeDescriptor> featureAttributeDescriptorList)
        Sets the feature attributes descriptors.
        Parameters:
        featureAttributeDescriptorList - feature attributes descriptors
      • getFeatureElementDescriptorList

        public java.util.List<FeatureElementDescriptor> getFeatureElementDescriptorList()
        Returns the feature element descriptors.
        Returns:
        feature element descriptors
      • setFeatureElementDescriptorList

        public void setFeatureElementDescriptorList​(java.util.List<FeatureElementDescriptor> featureElementDescriptorList)
        Sets the feature elements descriptors.
        Parameters:
        featureElementDescriptorList - feature elements descriptors
      • getFeatureClassDescriptor

        public FeatureClassDescriptor getFeatureClassDescriptor()
        Returns the feature class descriptor.
        Returns:
        feature class descriptor
      • setFeatureClassDescriptor

        public void setFeatureClassDescriptor​(FeatureClassDescriptor featureClassDescriptor)
        Sets the feature class descriptor.
        Parameters:
        featureClassDescriptor - feature class descriptor
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getConflictsNumber

        public java.lang.Integer getConflictsNumber()
        Returns the number of attributes in conflict.
        Returns:
        number of attributes in conflict
      • getConflictsNumberWithoutShape

        public java.lang.Integer getConflictsNumberWithoutShape()
        Returns the number of non shape attributes in conflict.
        Returns:
        number of non shape attributes in conflict
      • getInvolvedNodesIds

        public java.util.List<java.lang.Long> getInvolvedNodesIds()
        Returns the nodes identifiers that belongs to the feature and conflict regions. It can be used to get the minimum bounding rectangle (MBR) of the conflict for example. The nodes returned will belong to any conflictive network element or to any element that logically links conflictive elements.
        Returns:
        nodes identifiers
      • getImpactedNodesIds

        public java.util.List<java.lang.Long> getImpactedNodesIds()
        Returns the nodes identifiers that directly are part of the conflict or that are the start or end of a link that is in conflict.
        Returns:
        nodes identifiers
      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable
      • 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