Class OutputProperty

    • Constructor Detail

      • OutputProperty

        public OutputProperty()
    • Method Detail

      • getName

        public abstract String getName()
        Returns the name of the output property
        Returns:
        name of the output property
      • getDefaultUnit

        public abstract Unit getDefaultUnit()
        Returns the units of the output property
        Returns:
        units of the output property
      • supportsUnitOverride

        public boolean supportsUnitOverride()
        An output property can be allowed to deviate from its default unit. In which case an override unit is to be made available. By default an output property is not allowed to deviate. So derived implementations must override this method to ensure it returns true if it does support this feature.
        Returns:
        true when allowed, false otherwise
      • isUnitOverride

        public boolean isUnitOverride()
        Indicates if default units are overridden or not.
        Returns:
        true when overridden, false otherwise
      • setUnitOverride

        public void setUnitOverride​(Unit overrideUnit)
        set the units to use for overriding the defaults
        Parameters:
        overrideUnit - units to use
      • getOverrideUnit

        public Unit getOverrideUnit()
        Only when the property allows a unit override and an override is set this method returns the proposed alternative unit to use. These units are required to be convertible from the original default unit to the proposed unit
        Returns:
        proposed unit, original unit if none is set
      • getDataType

        public abstract DataType getDataType()
        Returns the data type of the output property
        Returns:
        data type of the output property
      • getOutputPropertyType

        public abstract OutputPropertyType getOutputPropertyType()
        Return the value of the OutputProperty enumeration for this property
        Returns:
        the value of the OutputProperty enumeration for this property
      • getColumnPriority

        public abstract OutputPropertyPriority getColumnPriority()
        Gets the column priority of the output property in output files The lower the column priority value of a property, the further to the left it is placed in the output file
        Returns:
        the column priority
      • equals

        public boolean equals​(Object otherProperty)
        Overridden equals() method This method is needed to allow output properties to be removed from the output list if required.
        Overrides:
        equals in class Object
        Parameters:
        otherProperty - output property to be compared to this one
      • hashCode

        public int hashCode()
        Overridden hashCode() method This method is needed to allow output properties to be removed from the output list if required.
        Overrides:
        hashCode in class Object
      • compareTo

        public int compareTo​(OutputProperty otherProperty)
        compareTo method used to order the output columns when output is being written
        Specified by:
        compareTo in interface Comparable<OutputProperty>
        Parameters:
        otherProperty - output property which is being compared to the current one
      • of

        public static OutputProperty of​(String propertyClassName)
                                 throws PlanItException
        Generate the appropriate BaseOutputProperty object from a specified class name
        Parameters:
        propertyClassName - the class name of the specified output property
        Returns:
        the BaseOutputProperty object corresponding to the specified enumeration value
        Throws:
        PlanItException - thrown if there is an error creating the object
      • of

        public static OutputProperty of​(OutputPropertyType outputProperty)
                                 throws PlanItException
        Generate the appropriate BaseOutputProperty object from a specified enumeration value
        Parameters:
        outputProperty - the enumeration value of the specified output property
        Returns:
        the BaseOutputProperty object corresponding to the specified enumeration value
        Throws:
        PlanItException - thrown if there is an error creating the object