Package core
Class AbstractModel
- java.lang.Object
-
- core.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractModel.Type
-
Field Summary
Fields Modifier and Type Field Description Set<Link>
links
String
name
utils.StochasticProcess
stochastic_process
AbstractModel.Type
type
-
Constructor Summary
Constructors Constructor Description AbstractModel(AbstractModel.Type type, String name, Set<Link> links, utils.StochasticProcess process)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add_vehicle_packet(Link link, float timestamp, core.packet.PacketLink vp)
void
configure(Scenario scenario, jaxb.Lanechanges lcs)
core.packet.PacketLaneGroup
create_lanegroup_packet()
void
initialize(Scenario scenario, float start_time)
-
-
-
Field Detail
-
type
public final AbstractModel.Type type
-
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()
-
-