Class LinkOutputTypeConfiguration


  • public class LinkOutputTypeConfiguration
    extends OutputTypeConfiguration
    The configuration for the link output type. The following OutputProperty values are included by default:
    • MODE_XML_ID
    • FLOW
    • CAPACITY_PER_LANE
    • NUMBER_OF_LANES
    • LENGTH
    • CALCULATED_SPEED
    • DENSITY
    • LINK_SEGMENT_XML_ID
    • UPSTREAM_NODE_XML_ID
    • UPSTREAM_NODE_LOCATION
    • DOWNSTREAM_NODE_XML_ID
    • DOWNSTREAM_NODE_LOCATION
    • CAPACITY_PER_LANE
    • LINK_COST
    • MAXIMUM_SPEED
    • TIME_PERIOD_XML_ID
    Author:
    markr
    • Constructor Detail

      • LinkOutputTypeConfiguration

        public LinkOutputTypeConfiguration()
                                    throws PlanItException
        Constructor Define the default output properties here.
        Throws:
        PlanItException - thrown if there is an error adding the default properties
    • Method Detail

      • validateAndFilterKeyProperties

        public OutputProperty[] validateAndFilterKeyProperties​(OutputProperty[] outputKeyProperties)
        Validate whether the specified list of keys is valid, and if it is return only the keys which will be used
        Specified by:
        validateAndFilterKeyProperties in class OutputTypeConfiguration
        Parameters:
        outputKeyProperties - array of output key property types
        Returns:
        array of keys to be used (null if the list is not valid)
      • isOutputPropertyValid

        public boolean isOutputPropertyValid​(OutputProperty baseOutputProperty)
        Checks the output property type being added in valid for the current output type configuration
        Specified by:
        isOutputPropertyValid in class OutputTypeConfiguration
        Parameters:
        baseOutputProperty - the output property type being added
        Returns:
        true if the output property is valid, false otherwise