Package core

Class AbstractModel

  • All Implemented Interfaces:
    core.InterfaceModel

    public abstract class AbstractModel
    extends Object
    implements core.InterfaceModel
    This is the base class for all models in OTM. It is not directly extended by concrete models. Instead these should use one of its children classes: AbstractFluidModel or AbstractVehicleModel. The user need not implement anything from this class directly. All of the abstract methods of AbstractModel have partial implementations in the child classes.
    • Field Detail

      • name

        public final String name
      • stochastic_process

        public final utils.StochasticProcess stochastic_process
    • Constructor Detail

      • AbstractModel

        public AbstractModel​(AbstractModel.Type type,
                             String name,
                             Set<Link> links,
                             utils.StochasticProcess process)
                      throws error.OTMException
        Throws:
        error.OTMException
    • Method Detail

      • configure

        public void configure​(Scenario scenario,
                              jaxb.Lanechanges lcs)
                       throws error.OTMException
        Throws:
        error.OTMException
      • initialize

        public void initialize​(Scenario scenario,
                               float start_time)
                        throws error.OTMException
        Throws:
        error.OTMException
      • add_vehicle_packet

        public final void add_vehicle_packet​(Link link,
                                             float timestamp,
                                             core.packet.PacketLink vp)
                                      throws error.OTMException
        Throws:
        error.OTMException
      • create_lanegroup_packet

        public final core.packet.PacketLaneGroup create_lanegroup_packet()