Class AlgorithmB

    • Constructor Detail

      • AlgorithmB

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

        public AlgorithmB​(AlgorithmB algorithmB)
        Copy Constructor
        Parameters:
        algorithmB - to copy
    • Method Detail

      • verifyComponentCompatibility

        protected void verifyComponentCompatibility()
                                             throws PlanItException
        Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network. Called before starting the simulation and after the transport network has been generated from physical and virtual network. So this is called after the build of the assignment instance
        Specified by:
        verifyComponentCompatibility in class TrafficAssignment
        Throws:
        PlanItException - thrown if the components are not compatible
      • verifyNetworkDemandZoningCompatibility

        protected void verifyNetworkDemandZoningCompatibility()
        Verify if the traffic assignment inputs (components which are provided upon creation and not subcomponents that are created as part of the build process of the assignment are compatible). Called after creation of the assignment instance by the builder, but before the traffic assignment's (sub)components have been created. So this is invoked during the build of the assignment instance, not after.
        Specified by:
        verifyNetworkDemandZoningCompatibility in class TrafficAssignment
      • 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
      • deepClone

        public AlgorithmB deepClone()
        deep clone on planit component should attempt to also update internal dependencies between deep cloned containers where possible
        Specified by:
        deepClone in interface IdAble
        Specified by:
        deepClone in class StaticTrafficAssignment
        Returns:
        deep copy of entity
      • getCompatibleAccessor

        public Class<? extends InteractorAccessor<?>> getCompatibleAccessor()
        this accessee provides access to this accessor
        Returns:
        class that accessee provides to
      • reset

        public void reset()
        All components should be able to reset going back to some representative initial state
        Overrides:
        reset in class TrafficAssignment
      • collectSettingsAsKeyValueMap

        public Map<String,​String> collectSettingsAsKeyValueMap()
        Provide all the settings of this particular component by name and value, where each value is a string representation of the underlying entity
        Specified by:
        collectSettingsAsKeyValueMap in class PlanitComponent<NetworkLoading>
        Returns:
        name-value map of all (user configurable) settings