Package org.planit.output.property
Class BaseOutputProperty
- java.lang.Object
-
- org.planit.output.property.BaseOutputProperty
-
- All Implemented Interfaces:
Comparable<BaseOutputProperty>
- Direct Known Subclasses:
CalculatedSpeedOutputProperty,CapacityPerLaneOutputProperty,CostTimesFlowOutputProperty,DensityOutputProperty,DestinationZoneExternalIdOutputProperty,DestinationZoneIdOutputProperty,DestinationZoneXmlIdOutputProperty,DownstreamNodeExternalIdOutputProperty,DownstreamNodeIdOutputProperty,DownstreamNodeLocationOutputProperty,DownstreamNodeXmlIdOutputProperty,FlowOutputProperty,IterationIndexOutputProperty,LengthOutputProperty,LinkCostOutputProperty,LinkSegmentExternalIdOutputProperty,LinkSegmentIdOutputProperty,LinkSegmentXmlIdOutputProperty,LinkTypeOutputProperty,MaximumDensityOutputProperty,MaximumSpeedOutputProperty,ModeExternalIdOutputProperty,ModeIdOutputProperty,ModeXmlIdOutputProperty,NumberOfLanesOutputProperty,ODCostOutputProperty,OriginZoneExternalIdOutputProperty,OriginZoneIdOutputProperty,OriginZoneXmlIdOutputProperty,PathIdOutputProperty,PathOutputStringProperty,RunIdOutputProperty,TimePeriodExternalIdOutputProperty,TimePeriodIdOutputProperty,TimePeriodXmlIdOutputProperty,UpstreamNodeExternalIdOutputProperty,UpstreamNodeIdOutputProperty,UpstreamNodeLocationOutputProperty,UpstreamNodeXmlIdOutputProperty,VCRatioOutputProperty
public abstract class BaseOutputProperty extends Object implements Comparable<BaseOutputProperty>
Template for output property classes which can be included in the output files. All concrete output property classes must be final and extend this class.- Author:
- gman6028
-
-
Constructor Summary
Constructors Constructor Description BaseOutputProperty()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(BaseOutputProperty otherProperty)compareTo method used to order the output columns when output is being writtenstatic BaseOutputPropertyconvertToBaseOutputProperty(String propertyClassName)Generate the appropriate BaseOutputProperty object from a specified class namestatic BaseOutputPropertyconvertToBaseOutputProperty(OutputProperty outputProperty)Generate the appropriate BaseOutputProperty object from a specified enumeration valuebooleanequals(Object otherProperty)Overridden equals() method This method is needed to allow output properties to be removed from the output list if required.abstract OutputPropertyPrioritygetColumnPriority()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 fileabstract StringgetName()Returns the name of the output propertyabstract OutputPropertygetOutputProperty()Return the value of the OutputProperty enumeration for this propertyabstract TypegetType()Returns the data type of the output propertyabstract UnitsgetUnits()Returns the units of the output propertyinthashCode()Overridden hashCode() method This method is needed to allow output properties to be removed from the output list if required.
-
-
-
Method Detail
-
getName
public abstract String getName()
Returns the name of the output property- Returns:
- name of the output property
-
getUnits
public abstract Units getUnits()
Returns the units of the output property- Returns:
- units of the output property
-
getType
public abstract Type getType()
Returns the data type of the output property- Returns:
- data type of the output property
-
getOutputProperty
public abstract OutputProperty getOutputProperty()
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.
-
hashCode
public int hashCode()
Overridden hashCode() method This method is needed to allow output properties to be removed from the output list if required.
-
compareTo
public int compareTo(BaseOutputProperty otherProperty)
compareTo method used to order the output columns when output is being written- Specified by:
compareToin interfaceComparable<BaseOutputProperty>- Parameters:
otherProperty- output property which is being compared to the current one
-
convertToBaseOutputProperty
public static BaseOutputProperty convertToBaseOutputProperty(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
-
convertToBaseOutputProperty
public static BaseOutputProperty convertToBaseOutputProperty(OutputProperty 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
-
-