Class StochasticRouteChoice

  • All Implemented Interfaces:
    Serializable, org.djutils.event.EventProducerInterface

    public class StochasticRouteChoice
    extends RouteChoice
    Stochastic route choice component. Stochasticity is reflected by the fact that the route choice is applied by means of a logit model, to be configured here. Also, due to being stochastic the route can/must be provided beforehand. This is also configured via this class
    Author:
    markr
    See Also:
    Serialized Form
    • Constructor Detail

      • StochasticRouteChoice

        public StochasticRouteChoice​(IdGroupingToken groupId,
                                     InputBuilderListener trafficComponentCreateListener)
        Constructor
        Parameters:
        groupId - contiguous id generation within this group for instances of this class
        trafficComponentCreateListener - thelistener to fire notify of create events when we create a logit choice model
    • Method Detail

      • createAndRegisterLogitModel

        public LogitChoiceModel createAndRegisterLogitModel​(String canonicalName)
                                                     throws PlanItException
        create and register the logit model of choice
        Parameters:
        canonicalName - name of the class to be instantiated
        Returns:
        the logit choice model that is registered
        Throws:
        PlanItException - thrown if error
      • RegisterODRouteMatrix

        public void RegisterODRouteMatrix​(ODRouteMatrix odRouteSet)
        Register a fixed od route set to use in the form of an ODPathMatrix
        Parameters:
        odRouteSet - the fixed od route set in the shape of an od path matrix