Class StochasticPathChoice

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

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

      • logitChoiceModel

        protected LogitChoiceModel logitChoiceModel
        The registered logit choice model
      • odPathSet

        protected ODPathMatrix odPathSet
        The registered od path set instance
    • Constructor Detail

      • StochasticPathChoice

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

      • setLogitModel

        public void setLogitModel​(LogitChoiceModel logitChoiceModel)
        set the chosen logit model
        Parameters:
        logitChoiceModel - chosen model
      • setOdPathMatrix

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