Class TraditionalStaticAssignment

    • Constructor Detail

      • TraditionalStaticAssignment

        public TraditionalStaticAssignment​(IdGroupingToken groupId)
        Base Constructor
        Parameters:
        groupId - contiguous id generation within this group for instances of this class
    • Method Detail

      • createLoggingPrefix

        protected String createLoggingPrefix()
        create the logging prefix for logging statements during equilibration
        Returns:
        prefix
      • verifyComponentCompatibility

        protected void verifyComponentCompatibility()
                                             throws PlanItException
        Verify if the network contains a single compatible infrastructure layer as traditional static assignment does not support intermodal network layers
        Overrides:
        verifyComponentCompatibility in class TrafficAssignment
        Throws:
        PlanItException - thrown if the components are not compatible
      • createOutputTypeAdapter

        public OutputTypeAdapter createOutputTypeAdapter​(OutputType outputType)
        Create the output type adapter for the current output type
        Specified by:
        createOutputTypeAdapter in class TrafficAssignment
        Parameters:
        outputType - the current output type
        Returns:
        the output type adapter corresponding to the current traffic assignment and output type
      • getIterationIndex

        public int getIterationIndex()
        Collect the current iteration index of the simulation
        Specified by:
        getIterationIndex in class TrafficAssignment
        Returns:
        current iteration index
      • getLinkSegmentFlow

        public double getLinkSegmentFlow​(LinkSegment linkSegment)
        #Get the total flow across a link over all modes
        Specified by:
        getLinkSegmentFlow in interface LinkVolumeAccessee
        Parameters:
        linkSegment - the specified link segment
        Returns:
        the total flow across this link segment
      • getLinkSegmentFlows

        public double[] getLinkSegmentFlows()
        #Get total link segment flows for all link segments
        Specified by:
        getLinkSegmentFlows in interface LinkVolumeAccessee
        Returns:
        link segment flows for all modes