Class AlgorithmB

  • All Implemented Interfaces:
    Serializable, Comparable<Idable>, org.djutils.event.EventProducerInterface, Idable

    public class AlgorithmB
    extends StaticTrafficAssignment
    Algorithm B implementation based on the work of Dial (2006). Due to a lack of explicit explanation for the implementation of the underlying algorithm, the implementation follows the main principles explained in this work but the algorithm design is likely different than the one implemented for the results discussed in the original paper.
    Author:
    markr
    See Also:
    Serialized Form
    • Constructor Detail

      • AlgorithmB

        public AlgorithmB​(IdGroupingToken groupId)
        Constructor
        Parameters:
        groupId - group the id generator will be using when genarting the id
    • Method Detail

      • createOutputTypeAdapter

        public OutputTypeAdapter createOutputTypeAdapter​(OutputType outputType)
        Description copied from class: TrafficAssignment
        Create the output type adapter for the current output type, specifically tailored towards the assignment type that we are builing
        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
      • getIterationData

        public AlgorithmBSimulationData getIterationData()
        Return the simulation data for the current iteration
        Returns:
        simulation data