| Package | Description |
|---|---|
| org.opentrafficsim.core.car |
Classes that extend the GTU to car behavior.
|
| org.opentrafficsim.core.dsol |
Extensions of the DSOL simulator interfaces and classes for OTS units.
|
| org.opentrafficsim.core.gtu |
GTU (Generalized Travel Unit) is the base class for cars, trains, pedestrians, etc.
|
| org.opentrafficsim.core.gtu.following |
GTU (Car) following models such as IDM+.
|
| org.opentrafficsim.core.gtu.lane |
The lane-based GTUs are the Generalized Travel Units that stay in lanes,
and need to switch lanes to overtake.
|
| org.opentrafficsim.core.gtu.lane.changing |
Classes that deal with lane changing models.
|
| org.opentrafficsim.core.network |
Classes that build a network with nodes, links, and cross-sections.
|
| org.opentrafficsim.core.network.factory |
Factories for Links, Lanes, Nodes.
|
| org.opentrafficsim.core.network.geotools |
Geotools flavored Nodes, Links, etc.
|
| org.opentrafficsim.core.network.lane |
Classes that provide detailed cross-sections of a link using lanes, markers and sensors.
|
| org.opentrafficsim.core.network.point2d |
Factories for Point2D flavored Links, Lanes, Nodes.
|
| org.opentrafficsim.core.value.conversions |
Common conversions that generate results in the correct unit.
|
| org.opentrafficsim.core.value.vdouble.matrix |
Double Matrix storage and calculations with units, absolute/relative, sparse/dense.
|
| org.opentrafficsim.core.value.vdouble.scalar |
Double Scalar storage and calculations with units, absolute/relative.
|
| org.opentrafficsim.core.value.vdouble.vector |
Double Vector storage and calculations with units, absolute/relative, sparse/dense.
|
| org.opentrafficsim.graphs |
Basic graphs for traffic simulation.
|
| org.opentrafficsim.simulationengine |
Wrappers and stubs for the DSOL simulation engine.
|
| Modifier and Type | Method and Description |
|---|---|
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder<ID> |
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder.setLength(DoubleScalar.Rel<LengthUnit> length) |
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder<ID> |
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder.setWidth(DoubleScalar.Rel<LengthUnit> width) |
| Modifier and Type | Method and Description |
|---|---|
LaneBasedTemplateCar.LaneBasedTemplateCarBuilder<ID> |
LaneBasedTemplateCar.LaneBasedTemplateCarBuilder.setInitialLongitudinalPositions(Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions) |
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder<ID> |
LaneBasedIndividualCar.LaneBasedIndividualCarBuilder.setInitialLongitudinalPositions(Map<Lane,DoubleScalar.Rel<LengthUnit>> initialLongitudinalPositions) |
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<TimeUnit> |
OTSSimTimeDouble.minus(OTSSimTimeDouble absoluteTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
OTSSimTimeDouble.add(DoubleScalar.Rel<TimeUnit> simTime) |
void |
OTSSimTimeDouble.subtract(DoubleScalar.Rel<TimeUnit> simTime) |
| Constructor and Description |
|---|
OTSReplication(String id,
OTSSimTimeDouble startTime,
DoubleScalar.Rel<TimeUnit> warmupPeriod,
DoubleScalar.Rel<TimeUnit> runLength,
OTSModelInterface model)
Create a new OTSReplication.
|
OTSReplication(String id,
OTSSimTimeDouble startTime,
DoubleScalar.Rel<TimeUnit> warmupPeriod,
DoubleScalar.Rel<TimeUnit> runLength,
OTSModelInterface model)
Create a new OTSReplication.
|
| Constructor and Description |
|---|
OTSReplication(Context context,
Experiment<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> experiment) |
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<LengthUnit> |
RelativePosition.getDx() |
DoubleScalar.Rel<LengthUnit> |
RelativePosition.getDy() |
DoubleScalar.Rel<LengthUnit> |
RelativePosition.getDz() |
DoubleScalar.Rel<LengthUnit> |
TemplateGTUType.getLength() |
DoubleScalar.Rel<LengthUnit> |
GTU.getLength() |
DoubleScalar.Rel<LengthUnit> |
TemplateGTUType.getWidth() |
DoubleScalar.Rel<LengthUnit> |
GTU.getWidth() |
| Constructor and Description |
|---|
RelativePosition(DoubleScalar.Rel<LengthUnit> dx,
DoubleScalar.Rel<LengthUnit> dy,
DoubleScalar.Rel<LengthUnit> dz,
RelativePosition.TYPE type) |
RelativePosition(DoubleScalar.Rel<LengthUnit> dx,
DoubleScalar.Rel<LengthUnit> dy,
DoubleScalar.Rel<LengthUnit> dz,
RelativePosition.TYPE type) |
RelativePosition(DoubleScalar.Rel<LengthUnit> dx,
DoubleScalar.Rel<LengthUnit> dy,
DoubleScalar.Rel<LengthUnit> dz,
RelativePosition.TYPE type) |
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<LengthUnit> |
HeadwayGTU.getDistance()
Retrieve the strongly typed distance to the other GTU.
|
DoubleScalar.Rel<TimeUnit> |
FixedAccelerationModel.getDuration()
Retrieve the duration of this FixedAccelerationModel.
|
DoubleScalar.Rel<TimeUnit> |
SequentialFixedAccelerationModel.getStepSize()
Return the step size of this GTU following model.
|
DoubleScalar.Rel<TimeUnit> |
IDMPlus.getStepSize()
Return the step size of this GTU following model.
|
DoubleScalar.Rel<TimeUnit> |
IDM.getStepSize()
Return the step size of this GTU following model.
|
DoubleScalar.Rel<TimeUnit> |
GTUFollowingModel.getStepSize()
Return the step size of this GTU following model.
|
DoubleScalar.Rel<TimeUnit> |
FixedAccelerationModel.getStepSize()
Return the step size of this GTU following model.
|
DoubleScalar.Rel<LengthUnit> |
GTUFollowingModel.minimumHeadway(DoubleScalar.Abs<SpeedUnit> followerSpeed,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> precision,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Abs<SpeedUnit> followerMaximumSpeed)
Compute the minimum net> headway given the speed of the follower and the leader.
At the returned headway, the follower would decelerate with it's maximum comfortable deceleration. |
DoubleScalar.Rel<LengthUnit> |
AbstractGTUFollowingModel.minimumHeadway(DoubleScalar.Abs<SpeedUnit> followerSpeed,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> precision,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Abs<SpeedUnit> followerMaximumSpeed)
Compute the minimum net> headway given the speed of the follower and the leader.
At the returned headway, the follower would decelerate with it's maximum comfortable deceleration. |
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Abs<AccelerationUnit> |
SequentialFixedAccelerationModel.computeAcceleration(DoubleScalar.Abs<SpeedUnit> followerSpeed,
DoubleScalar.Abs<SpeedUnit> followerMaximumSpeed,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> headway,
DoubleScalar.Abs<SpeedUnit> speedLimit)
Compute the acceleration that would be used to follow a leader.
TODO We should probably add a be ready to stop before argument to prevent vehicles that cannot see their |
DoubleScalar.Abs<AccelerationUnit> |
IDMPlus.computeAcceleration(DoubleScalar.Abs<SpeedUnit> followerSpeed,
DoubleScalar.Abs<SpeedUnit> followerMaximumSpeed,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> headway,
DoubleScalar.Abs<SpeedUnit> speedLimit)
Compute the acceleration that would be used to follow a leader.
TODO We should probably add a be ready to stop before argument to prevent vehicles that cannot see their |
DoubleScalar.Abs<AccelerationUnit> |
IDM.computeAcceleration(DoubleScalar.Abs<SpeedUnit> followerSpeed,
DoubleScalar.Abs<SpeedUnit> followerMaximumSpeed,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> headway,
DoubleScalar.Abs<SpeedUnit> speedLimit)
Compute the acceleration that would be used to follow a leader.
TODO We should probably add a be ready to stop before argument to prevent vehicles that cannot see their |
DoubleScalar.Abs<AccelerationUnit> |
GTUFollowingModel.computeAcceleration(DoubleScalar.Abs<SpeedUnit> followerSpeed,
DoubleScalar.Abs<SpeedUnit> followerMaximumSpeed,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> headway,
DoubleScalar.Abs<SpeedUnit> speedLimit)
Compute the acceleration that would be used to follow a leader.
TODO We should probably add a be ready to stop before argument to prevent vehicles that cannot see their |
DoubleScalar.Abs<AccelerationUnit> |
FixedAccelerationModel.computeAcceleration(DoubleScalar.Abs<SpeedUnit> followerSpeed,
DoubleScalar.Abs<SpeedUnit> followerMaximumSpeed,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> headway,
DoubleScalar.Abs<SpeedUnit> speedLimit)
Compute the acceleration that would be used to follow a leader.
TODO We should probably add a be ready to stop before argument to prevent vehicles that cannot see their |
AccelerationStep |
GTUFollowingModel.computeAcceleration(LaneBasedGTU<?> follower,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> headway,
DoubleScalar.Abs<SpeedUnit> speedLimit)
Compute the acceleration that would be used to follow a leader.
TODO We should probably add a be ready to stop before argument to prevent vehicles that cannot see their leader, or should slow down for a crossing from accelerating to unsafe speeds. |
AccelerationStep |
AbstractGTUFollowingModel.computeAcceleration(LaneBasedGTU<?> follower,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> headway,
DoubleScalar.Abs<SpeedUnit> speedLimit)
Compute the acceleration that would be used to follow a leader.
TODO We should probably add a be ready to stop before argument to prevent vehicles that cannot see their leader, or should slow down for a crossing from accelerating to unsafe speeds. |
DoubleScalar.Rel<LengthUnit> |
GTUFollowingModel.minimumHeadway(DoubleScalar.Abs<SpeedUnit> followerSpeed,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> precision,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Abs<SpeedUnit> followerMaximumSpeed)
Compute the minimum net> headway given the speed of the follower and the leader.
At the returned headway, the follower would decelerate with it's maximum comfortable deceleration. |
DoubleScalar.Rel<LengthUnit> |
AbstractGTUFollowingModel.minimumHeadway(DoubleScalar.Abs<SpeedUnit> followerSpeed,
DoubleScalar.Abs<SpeedUnit> leaderSpeed,
DoubleScalar.Rel<LengthUnit> precision,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Abs<SpeedUnit> followerMaximumSpeed)
Compute the minimum net> headway given the speed of the follower and the leader.
At the returned headway, the follower would decelerate with it's maximum comfortable deceleration. |
| Constructor and Description |
|---|
SequentialFixedAccelerationModel(DEVSSimulator<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> simulator)
Construct a SequentialFixedAccelerationModel with empty list of FixedAccelerationModel steps.
|
SequentialFixedAccelerationModel(DEVSSimulator<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> simulator,
Set<FixedAccelerationModel> steps)
Construct a SequentialFixedAccelerationModel and load it with a list of FixedAccelerationModel steps.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<TimeUnit> |
LaneBasedGTU.deltaTimeForDistance(DoubleScalar.Rel<LengthUnit> distance)
Determine the time since last evaluation when this GTU has covered the specified distance from the position of the last
evaluation time.
|
DoubleScalar.Rel<TimeUnit> |
AbstractLaneBasedGTU.deltaTimeForDistance(DoubleScalar.Rel<LengthUnit> distance)
Determine the time since last evaluation when this GTU has covered the specified distance from the position of the last
evaluation time.
|
DoubleScalar.Rel<LengthUnit> |
AbstractLaneBasedTemplateGTU.getLength() |
DoubleScalar.Rel<LengthUnit> |
AbstractLaneBasedIndividualGTU.getLength() |
DoubleScalar.Rel<LengthUnit> |
AbstractLaneBasedTemplateGTU.getWidth() |
DoubleScalar.Rel<LengthUnit> |
AbstractLaneBasedIndividualGTU.getWidth() |
DoubleScalar.Rel<LengthUnit> |
LaneBasedGTU.position(Lane lane,
RelativePosition relativePosition)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane at the current
simulation time.
|
DoubleScalar.Rel<LengthUnit> |
AbstractLaneBasedGTU.position(Lane lane,
RelativePosition relativePosition)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane at the current
simulation time.
|
DoubleScalar.Rel<LengthUnit> |
LaneBasedGTU.position(Lane lane,
RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.
|
DoubleScalar.Rel<LengthUnit> |
AbstractLaneBasedGTU.position(Lane lane,
RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal position of a point relative to this GTU, relative to the center line of the Lane.
|
DoubleScalar.Rel<LengthUnit> |
LaneBasedGTU.projectedPosition(Lane projectionLane,
RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal position that this GTU would have if it were to change to another Lane with a/the current
CrossSectionLink.
|
DoubleScalar.Rel<LengthUnit> |
AbstractLaneBasedGTU.projectedPosition(Lane projectionLane,
RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal position that this GTU would have if it were to change to another Lane with a/the current
CrossSectionLink.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Lane,DoubleScalar.Rel<LengthUnit>> |
LaneBasedGTU.positions(RelativePosition relativePosition)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered.
|
Map<Lane,DoubleScalar.Rel<LengthUnit>> |
AbstractLaneBasedGTU.positions(RelativePosition relativePosition)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered.
|
Map<Lane,DoubleScalar.Rel<LengthUnit>> |
LaneBasedGTU.positions(RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered.
|
Map<Lane,DoubleScalar.Rel<LengthUnit>> |
AbstractLaneBasedGTU.positions(RelativePosition relativePosition,
DoubleScalar.Abs<TimeUnit> when)
Return the longitudinal positions of a point relative to this GTU, relative to the center line of the Lanes in which the
vehicle is registered.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LaneBasedGTU.addLane(Lane lane,
DoubleScalar.Rel<LengthUnit> position)
insert GTU at a certain position.
|
void |
AbstractLaneBasedGTU.addLane(Lane lane,
DoubleScalar.Rel<LengthUnit> position)
insert GTU at a certain position.
|
DoubleScalar.Rel<TimeUnit> |
LaneBasedGTU.deltaTimeForDistance(DoubleScalar.Rel<LengthUnit> distance)
Determine the time since last evaluation when this GTU has covered the specified distance from the position of the last
evaluation time.
|
DoubleScalar.Rel<TimeUnit> |
AbstractLaneBasedGTU.deltaTimeForDistance(DoubleScalar.Rel<LengthUnit> distance)
Determine the time since last evaluation when this GTU has covered the specified distance from the position of the last
evaluation time.
|
HeadwayGTU |
LaneBasedGTU.headway(DoubleScalar.Rel<LengthUnit> maxDistance)
Determine which GTU in front of this GTU, or behind this GTU.
|
HeadwayGTU |
AbstractLaneBasedGTU.headway(DoubleScalar.Rel<LengthUnit> maxDistance)
Determine which GTU in front of this GTU, or behind this GTU.
|
HeadwayGTU |
LaneBasedGTU.headway(Lane lane,
DoubleScalar.Rel<LengthUnit> maxDistance)
Determine by what distance the front of this GTU is behind the rear an other GTU, or the rear of this GTU is ahead of the
front of an other GTU.
|
HeadwayGTU |
AbstractLaneBasedGTU.headway(Lane lane,
DoubleScalar.Rel<LengthUnit> maxDistance)
Determine by what distance the front of this GTU is behind the rear an other GTU, or the rear of this GTU is ahead of the
front of an other GTU.
|
DoubleScalar.Abs<TimeUnit> |
LaneBasedGTU.timeAtDistance(DoubleScalar.Rel<LengthUnit> distance)
Determine the time when this GTU will have covered the specified distance from the position of the last evaluation time.
|
DoubleScalar.Abs<TimeUnit> |
AbstractLaneBasedGTU.timeAtDistance(DoubleScalar.Rel<LengthUnit> distance)
Determine the time when this GTU will have covered the specified distance from the position of the last evaluation time.
|
| Modifier and Type | Method and Description |
|---|---|
LaneMovementStep |
LaneChangeModel.computeLaneChangeAndAcceleration(LaneBasedGTU<?> gtu,
Collection<HeadwayGTU> sameLaneTraffic,
Collection<HeadwayGTU> rightLaneTraffic,
Collection<HeadwayGTU> leftLaneTraffic,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Rel<AccelerationUnit> preferredLaneRouteIncentive,
DoubleScalar.Rel<AccelerationUnit> laneChangeThreshold,
DoubleScalar.Rel<AccelerationUnit> nonPreferredLaneRouteIncentive)
Compute the acceleration and lane change.
|
LaneMovementStep |
LaneChangeModel.computeLaneChangeAndAcceleration(LaneBasedGTU<?> gtu,
Collection<HeadwayGTU> sameLaneTraffic,
Collection<HeadwayGTU> rightLaneTraffic,
Collection<HeadwayGTU> leftLaneTraffic,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Rel<AccelerationUnit> preferredLaneRouteIncentive,
DoubleScalar.Rel<AccelerationUnit> laneChangeThreshold,
DoubleScalar.Rel<AccelerationUnit> nonPreferredLaneRouteIncentive)
Compute the acceleration and lane change.
|
LaneMovementStep |
LaneChangeModel.computeLaneChangeAndAcceleration(LaneBasedGTU<?> gtu,
Collection<HeadwayGTU> sameLaneTraffic,
Collection<HeadwayGTU> rightLaneTraffic,
Collection<HeadwayGTU> leftLaneTraffic,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Rel<AccelerationUnit> preferredLaneRouteIncentive,
DoubleScalar.Rel<AccelerationUnit> laneChangeThreshold,
DoubleScalar.Rel<AccelerationUnit> nonPreferredLaneRouteIncentive)
Compute the acceleration and lane change.
|
LaneMovementStep |
FixedLaneChangeModel.computeLaneChangeAndAcceleration(LaneBasedGTU<?> gtu,
Collection<HeadwayGTU> sameLaneTraffic,
Collection<HeadwayGTU> rightLaneTraffic,
Collection<HeadwayGTU> leftLaneTraffic,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Rel<AccelerationUnit> preferredLaneRouteIncentive,
DoubleScalar.Rel<AccelerationUnit> laneChangeThreshold,
DoubleScalar.Rel<AccelerationUnit> nonPreferredLaneRouteIncentive)
Compute the acceleration and lane change.
|
LaneMovementStep |
FixedLaneChangeModel.computeLaneChangeAndAcceleration(LaneBasedGTU<?> gtu,
Collection<HeadwayGTU> sameLaneTraffic,
Collection<HeadwayGTU> rightLaneTraffic,
Collection<HeadwayGTU> leftLaneTraffic,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Rel<AccelerationUnit> preferredLaneRouteIncentive,
DoubleScalar.Rel<AccelerationUnit> laneChangeThreshold,
DoubleScalar.Rel<AccelerationUnit> nonPreferredLaneRouteIncentive)
Compute the acceleration and lane change.
|
LaneMovementStep |
FixedLaneChangeModel.computeLaneChangeAndAcceleration(LaneBasedGTU<?> gtu,
Collection<HeadwayGTU> sameLaneTraffic,
Collection<HeadwayGTU> rightLaneTraffic,
Collection<HeadwayGTU> leftLaneTraffic,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Rel<AccelerationUnit> preferredLaneRouteIncentive,
DoubleScalar.Rel<AccelerationUnit> laneChangeThreshold,
DoubleScalar.Rel<AccelerationUnit> nonPreferredLaneRouteIncentive)
Compute the acceleration and lane change.
|
LaneMovementStep |
AbstractLaneChangeModel.computeLaneChangeAndAcceleration(LaneBasedGTU<?> gtu,
Collection<HeadwayGTU> sameLaneGTUs,
Collection<HeadwayGTU> preferredLaneGTUs,
Collection<HeadwayGTU> nonPreferredLaneGTUs,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Rel<AccelerationUnit> preferredLaneRouteIncentive,
DoubleScalar.Rel<AccelerationUnit> laneChangeThreshold,
DoubleScalar.Rel<AccelerationUnit> nonPreferredLaneRouteIncentive)
Compute the acceleration and lane change.
|
LaneMovementStep |
AbstractLaneChangeModel.computeLaneChangeAndAcceleration(LaneBasedGTU<?> gtu,
Collection<HeadwayGTU> sameLaneGTUs,
Collection<HeadwayGTU> preferredLaneGTUs,
Collection<HeadwayGTU> nonPreferredLaneGTUs,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Rel<AccelerationUnit> preferredLaneRouteIncentive,
DoubleScalar.Rel<AccelerationUnit> laneChangeThreshold,
DoubleScalar.Rel<AccelerationUnit> nonPreferredLaneRouteIncentive)
Compute the acceleration and lane change.
|
LaneMovementStep |
AbstractLaneChangeModel.computeLaneChangeAndAcceleration(LaneBasedGTU<?> gtu,
Collection<HeadwayGTU> sameLaneGTUs,
Collection<HeadwayGTU> preferredLaneGTUs,
Collection<HeadwayGTU> nonPreferredLaneGTUs,
DoubleScalar.Abs<SpeedUnit> speedLimit,
DoubleScalar.Rel<AccelerationUnit> preferredLaneRouteIncentive,
DoubleScalar.Rel<AccelerationUnit> laneChangeThreshold,
DoubleScalar.Rel<AccelerationUnit> nonPreferredLaneRouteIncentive)
Compute the acceleration and lane change.
|
static boolean |
SafeLaneChange.safe(GTU<?> referenceGTU,
GTU<?> otherGTU,
DoubleScalar.Rel<AccelerationUnit> maximumDeceleration,
DoubleScalar.Abs<SpeedUnit> speedLimit)
Determine if dangerous decelerations are incurred if a GTU changes into a lane where another GTU is driving.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<LengthUnit> |
LinkLocation.distance(LinkLocation loc)
Returns the distance to another LinkLocation.
|
DoubleScalar.Rel<LengthUnit> |
Link.getLength() |
DoubleScalar.Rel<LengthUnit> |
AbstractLink.getLength() |
DoubleScalar.Rel<LengthUnit> |
LinkLocation.getLongitudinalPosition() |
| Constructor and Description |
|---|
AbstractLink(IDL id,
N startNode,
N endNode,
DoubleScalar.Rel<LengthUnit> length)
Construct a a new link with infinite capacity.
|
AbstractLink(IDL id,
N startNode,
N endNode,
DoubleScalar.Rel<LengthUnit> length,
DoubleScalar.Abs<FrequencyUnit> capacity)
Construct a new link.
|
LinkLocation(Link<?,?> link,
DoubleScalar.Rel<LengthUnit> position) |
| Modifier and Type | Field and Description |
|---|---|
protected DoubleScalar.Rel<LengthUnit> |
XmlNetworkLaneParser.StraightTag.length
length.
|
protected DoubleScalar.Rel<LengthUnit> |
XmlNetworkLaneParser.ArcTag.radius
radius.
|
protected DoubleScalar.Rel<LengthUnit> |
XmlNetworkLaneParser.GlobalTag.width
default lane width.
|
protected DoubleScalar.Rel<LengthUnit> |
XmlNetworkLaneParser.LinkTag.width
default lane width on this link.
|
protected DoubleScalar.Rel<LengthUnit> |
XmlNetworkLaneParser.LaneTag.width
lane width.
|
| Modifier and Type | Method and Description |
|---|---|
protected DoubleScalar.Rel<LengthUnit> |
XmlNetworkLaneParser.parseLengthRel(String s) |
protected DoubleScalar.Rel<SpeedUnit> |
XmlNetworkLaneParser.parseSpeedRel(String s) |
protected DoubleScalar.Rel<TimeUnit> |
XmlNetworkLaneParser.parseTimeRel(String s) |
| Modifier and Type | Method and Description |
|---|---|
SimulatorInterface<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> |
TestXMLModel.getSimulator() |
| Modifier and Type | Method and Description |
|---|---|
void |
TestXMLModel.constructModel(SimulatorInterface<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> pSimulator) |
| Constructor and Description |
|---|
TestXMLParser(String title,
DSOLPanel<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> panel) |
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<LengthUnit> |
LinearGeometry.getLineLength() |
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<LengthUnit> |
CrossSectionElement.getLateralBoundaryPosition(LateralDirectionality lateralDirection,
double fractionalLongitudinalPosition)
Return the lateral offset from the design line of the parent Link of the Left or Right boundary of this
CrossSectionElement at the specified fractional longitudinal position.
|
DoubleScalar.Rel<LengthUnit> |
CrossSectionElement.getLateralBoundaryPosition(LateralDirectionality lateralDirection,
DoubleScalar.Rel<LengthUnit> longitudinalPosition)
Return the lateral offset from the design line of the parent Link of the Left or Right boundary of this
CrossSectionElement at the specified longitudinal position.
|
DoubleScalar.Rel<LengthUnit> |
CrossSectionElement.getLateralCenterPosition(double fractionalPosition)
Retrieve the lateral offset from the Link design line at the specified longitudinal position.
|
DoubleScalar.Rel<LengthUnit> |
CrossSectionElement.getLength()
Return the length of this CrossSectionElement as measured along the design line (which equals the center line).
|
DoubleScalar.Rel<LengthUnit> |
RoadMarkerAcross.getLongitudinalPosition() |
DoubleScalar.Rel<LengthUnit> |
CrossSectionElement.getWidth(double fractionalPosition)
Return the width of this CrossSectionElement at a specified fractional longitudinal position.
|
DoubleScalar.Rel<LengthUnit> |
CrossSectionElement.getWidth(DoubleScalar.Rel<LengthUnit> longitudinalPosition)
Return the width of this CrossSectionElement at a specified longitudinal position.
|
DoubleScalar.Rel<LengthUnit> |
Lane.position(double fraction)
Transform a fraction on the lane to a relative length (can be less than zero or larger than the lane length).
|
| Modifier and Type | Method and Description |
|---|---|
int |
Lane.addGTU(LaneBasedGTU<?> gtu,
DoubleScalar.Rel<LengthUnit> longitudinalPosition)
Add a LaneBasedGTU<?> to the list of this Lane.
|
Lane |
Lane.bestAccessibleAdjacentLane(LateralDirectionality lateralDirection,
DoubleScalar.Rel<LengthUnit> longitudinalPosition,
GTUType<?> gtuType)
Determine whether there is a lane to the left or to the right of this lane, which is accessible from this lane,
or null if no lane could be found.
|
double |
Lane.fraction(DoubleScalar.Rel<LengthUnit> position)
Transform a position on the lane (can be less than zero or larger than the lane length) to a fraction.
|
LaneBasedGTU<?> |
Lane.getGtuAfter(DoubleScalar.Rel<LengthUnit> position,
RelativePosition.TYPE relativePosition,
DoubleScalar.Abs<TimeUnit> when) |
LaneBasedGTU<?> |
Lane.getGtuBefore(DoubleScalar.Rel<LengthUnit> position,
RelativePosition.TYPE relativePosition,
DoubleScalar.Abs<TimeUnit> when) |
DoubleScalar.Rel<LengthUnit> |
CrossSectionElement.getLateralBoundaryPosition(LateralDirectionality lateralDirection,
DoubleScalar.Rel<LengthUnit> longitudinalPosition)
Return the lateral offset from the design line of the parent Link of the Left or Right boundary of this
CrossSectionElement at the specified longitudinal position.
|
DoubleScalar<LengthUnit> |
CrossSectionElement.getLateralCenterPosition(DoubleScalar.Rel<LengthUnit> longitudinalPosition)
Retrieve the lateral offset from the Link design line at the specified longitudinal position.
|
List<Sensor> |
Lane.getSensors(DoubleScalar.Rel<LengthUnit> minimumPosition,
DoubleScalar.Rel<LengthUnit> maximumPosition)
Retrieve the list of Sensors of this Lane in the specified distance range.
|
List<Sensor> |
Lane.getSensors(DoubleScalar.Rel<LengthUnit> minimumPosition,
DoubleScalar.Rel<LengthUnit> maximumPosition)
Retrieve the list of Sensors of this Lane in the specified distance range.
|
DoubleScalar.Rel<LengthUnit> |
CrossSectionElement.getWidth(DoubleScalar.Rel<LengthUnit> longitudinalPosition)
Return the width of this CrossSectionElement at a specified longitudinal position.
|
| Constructor and Description |
|---|
AbstractSensor(Lane lane,
DoubleScalar.Rel<LengthUnit> longitudinalPosition,
RelativePosition.TYPE positionType) |
Barrier(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
the StartNode towards the EndNode as the longitudinal direction.
|
Barrier(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
the StartNode towards the EndNode as the longitudinal direction.
|
Barrier(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
the StartNode towards the EndNode as the longitudinal direction.
|
CrossSectionElement(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtBegin,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the
direction from the StartNode towards the EndNode as the longitudinal direction.
|
CrossSectionElement(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtBegin,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the
direction from the StartNode towards the EndNode as the longitudinal direction.
|
CrossSectionElement(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtBegin,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the
direction from the StartNode towards the EndNode as the longitudinal direction.
|
CrossSectionElement(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtBegin,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the
direction from the StartNode towards the EndNode as the longitudinal direction.
|
CrossSectionLink(IDL id,
NodeGeotools<IDN> startNode,
NodeGeotools<IDN> endNode,
DoubleScalar.Rel<LengthUnit> length)
Construction of a link.
|
CrossSectionLink(IDL id,
NodeGeotools<IDN> startNode,
NodeGeotools<IDN> endNode,
DoubleScalar.Rel<LengthUnit> length,
DoubleScalar.Abs<FrequencyUnit> capacity)
Construction of a link.
|
Lane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality,
DoubleScalar.Abs<FrequencyUnit> capacity) |
Lane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality,
DoubleScalar.Abs<FrequencyUnit> capacity) |
Lane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality,
DoubleScalar.Abs<FrequencyUnit> capacity) |
Lane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality,
DoubleScalar.Abs<FrequencyUnit> capacity) |
LaneLocation(Lane lane,
DoubleScalar.Rel<LengthUnit> position) |
NoTrafficLane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality,
DoubleScalar.Abs<FrequencyUnit> capacity) |
NoTrafficLane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality,
DoubleScalar.Abs<FrequencyUnit> capacity) |
NoTrafficLane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality,
DoubleScalar.Abs<FrequencyUnit> capacity) |
NoTrafficLane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtEnd,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality,
DoubleScalar.Abs<FrequencyUnit> capacity) |
RoadMarkerAcross(CrossSectionElement crossSectionElement,
DoubleScalar.Rel<LengthUnit> longitudinalPosition) |
RoadMarkerAlong(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
the StartNode towards the EndNode as the longitudinal direction.
|
RoadMarkerAlong(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
the StartNode towards the EndNode as the longitudinal direction.
|
RoadMarkerAlong(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from
the StartNode towards the EndNode as the longitudinal direction.
|
Shoulder(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralPosition,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth) |
Shoulder(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralPosition,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth) |
Shoulder(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralPosition,
DoubleScalar.Rel<LengthUnit> beginWidth,
DoubleScalar.Rel<LengthUnit> endWidth) |
SinkLane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> beginWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality)
Construct a SinkLane.
|
SinkLane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> beginWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality)
Construct a SinkLane.
|
SourceLane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> beginWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality)
Construct a GeneratorLane.
|
SourceLane(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralOffsetAtStart,
DoubleScalar.Rel<LengthUnit> beginWidth,
LaneType<?> laneType,
LongitudinalDirectionality directionality)
Construct a GeneratorLane.
|
Stripe(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> width)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the
direction from the StartNode towards the EndNode as the longitudinal direction.
|
Stripe(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> width)
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the
direction from the StartNode towards the EndNode as the longitudinal direction.
|
Stripe(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> width,
Set<GTUType<?>> gtuTypes,
Stripe.Permeable permeable)
Helper constructor that immediately provides permeability for a number of GTU classes.
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from the StartNode towards the EndNode as the longitudinal direction. |
Stripe(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> width,
Set<GTUType<?>> gtuTypes,
Stripe.Permeable permeable)
Helper constructor that immediately provides permeability for a number of GTU classes.
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from the StartNode towards the EndNode as the longitudinal direction. |
Stripe(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> width,
Stripe.Permeable permeable)
Helper constructor that immediately provides permeability for all GTU classes.
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from the StartNode towards the EndNode as the longitudinal direction. |
Stripe(CrossSectionLink<?,?> parentLink,
DoubleScalar.Rel<LengthUnit> lateralCenterPosition,
DoubleScalar.Rel<LengthUnit> width,
Stripe.Permeable permeable)
Helper constructor that immediately provides permeability for all GTU classes.
Note: LEFT is seen as a positive lateral direction, RIGHT as a negative lateral direction, with the direction from the StartNode towards the EndNode as the longitudinal direction. |
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<U> |
MutableDoubleMatrix.Rel.get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
DoubleScalar.Rel<U> |
DoubleMatrix.Rel.get(int row,
int column)
Retrieve the value stored at a specified row and column as a DoubleScalar.
|
| Constructor and Description |
|---|
DoubleMatrix.Rel.Dense(DoubleScalar.Rel<U>[][] values)
Construct a new Relative Dense Immutable DoubleMatrix.
|
DoubleMatrix.Rel.Sparse(DoubleScalar.Rel<U>[][] values)
Construct a new Relative Sparse Immutable DoubleMatrix.
|
MutableDoubleMatrix.Rel.Dense(DoubleScalar.Rel<U>[][] values)
Construct a new Relative Dense MutableDoubleMatrix.
|
MutableDoubleMatrix.Rel.Sparse(DoubleScalar.Rel<U>[][] values)
Construct a new Relative Sparse MutableDoubleMatrix.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<U> |
DoubleScalar.Rel.copy()
Create a deep copy of this Value.
|
DoubleScalar.Rel<U> |
DistDiscreteDoubleScalar.Rel.draw() |
DoubleScalar.Rel<U> |
DistContinuousDoubleScalar.Rel.draw() |
DoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.immutable()
Make (immutable) DoubleScalar equivalent for any type of MutableDoubleScalar.
|
| Modifier and Type | Method and Description |
|---|---|
int |
DoubleScalar.Rel.compareTo(DoubleScalar.Rel<U> o) |
MutableDoubleScalar.Abs<U> |
MutableDoubleScalar.Abs.decrementBy(DoubleScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.decrementBy(DoubleScalar.Rel<U> decrement)
Decrement the value by the supplied value and return the result.
|
protected MutableDoubleScalar<U> |
MutableDoubleScalar.decrementByImpl(DoubleScalar.Rel<U> rel)
Decrement the value of this Relative DoubleScalar from the value of this MutableDoubleScalar.
|
static MutableDoubleScalar.Rel<SIUnit> |
DoubleScalar.divide(DoubleScalar.Rel<?> left,
DoubleScalar.Rel<?> right)
Divide two values; the result is a new instance with a different (existing or generated) SI unit.
|
static MutableDoubleScalar.Rel<SIUnit> |
DoubleScalar.divide(DoubleScalar.Rel<?> left,
DoubleScalar.Rel<?> right)
Divide two values; the result is a new instance with a different (existing or generated) SI unit.
|
MutableDoubleScalar.Abs<U> |
MutableDoubleScalar.Abs.incrementBy(DoubleScalar.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
MutableDoubleScalar.Rel<U> |
MutableDoubleScalar.Rel.incrementBy(DoubleScalar.Rel<U> increment)
Increment the value by the supplied value and return the result.
|
protected MutableDoubleScalar<U> |
MutableDoubleScalar.incrementByImpl(DoubleScalar.Rel<U> rel)
Increment the value in this MutableDoubleScalar by the value in a Relative DoubleScalar.
|
static <U extends Unit<U>> |
DoubleScalar.interpolate(DoubleScalar.Rel<U> zero,
DoubleScalar.Rel<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
DoubleScalar.interpolate(DoubleScalar.Rel<U> zero,
DoubleScalar.Rel<U> one,
double ratio)
Interpolate between or extrapolate over two values.
|
static <U extends Unit<U>> |
DoubleScalar.minus(DoubleScalar.Abs<U> left,
DoubleScalar.Rel<U> right)
Subtract a Relative value from an absolute value.
|
static <U extends Unit<U>> |
DoubleScalar.minus(DoubleScalar.Rel<U> left,
DoubleScalar.Rel<U> right)
Subtract a relative value from a relative value.
|
static <U extends Unit<U>> |
DoubleScalar.minus(DoubleScalar.Rel<U> left,
DoubleScalar.Rel<U> right)
Subtract a relative value from a relative value.
|
static MutableDoubleScalar.Rel<SIUnit> |
DoubleScalar.multiply(DoubleScalar.Rel<?> left,
DoubleScalar.Rel<?> right)
Multiply two values; the result is a new instance with a different (existing or generated) SI unit.
|
static MutableDoubleScalar.Rel<SIUnit> |
DoubleScalar.multiply(DoubleScalar.Rel<?> left,
DoubleScalar.Rel<?> right)
Multiply two values; the result is a new instance with a different (existing or generated) SI unit.
|
static <U extends Unit<U>> |
DoubleScalar.plus(DoubleScalar.Abs<U> left,
DoubleScalar.Rel<U> right)
Add a Relative value to an Absolute value.
|
static <U extends Unit<U>> |
DoubleScalar.plus(DoubleScalar.Rel<U> left,
DoubleScalar.Rel<U> right)
Add a Relative value to a Relative value.
|
static <U extends Unit<U>> |
DoubleScalar.plus(DoubleScalar.Rel<U> left,
DoubleScalar.Rel<U> right)
Add a Relative value to a Relative value.
|
| Constructor and Description |
|---|
DoubleScalar.Rel(DoubleScalar.Rel<U> value)
Construct a new Relative Immutable DoubleScalar from an existing Relative Immutable DoubleScalar.
|
MutableDoubleScalar.Rel(DoubleScalar.Rel<U> value)
Construct a new Relative MutableDoubleScalar from an existing Relative Immutable DoubleScalar.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<U> |
MutableDoubleVector.Rel.get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
DoubleScalar.Rel<U> |
DoubleVector.Rel.get(int index)
Retrieve the value stored at a specified index as a DoubleScalar.
|
| Constructor and Description |
|---|
DoubleVector.Rel.Dense(DoubleScalar.Rel<U>[] values)
Construct a new Relative Dense Immutable DoubleVector.
|
DoubleVector.Rel.Sparse(DoubleScalar.Rel<U>[] values)
Construct a new Relative Sparse Immutable DoubleVector.
|
MutableDoubleVector.Rel.Dense(DoubleScalar.Rel<U>[] values)
Construct a new Relative Dense MutableDoubleVector.
|
MutableDoubleVector.Rel.Sparse(DoubleScalar.Rel<U>[] values)
Construct a new Relative Sparse MutableDoubleVector.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<TimeUnit> |
FundamentalDiagram.getAggregationTime() |
DoubleScalar.Rel<LengthUnit> |
TrajectoryPlot.getCumulativeLength(int index)
Retrieve the cumulative length of the sampled path at the end of a path element.
|
DoubleScalar.Rel<LengthUnit> |
ContourPlot.getCumulativeLength(int index)
Retrieve the cumulative length of the sampled path at the end of a path element.
|
DoubleScalar.Rel<LengthUnit> |
FundamentalDiagram.getPosition()
Retrieve the position of the detector.
|
DoubleScalar.Rel<TimeUnit> |
TrajectoryPlot.getSampleInterval() |
| Constructor and Description |
|---|
FundamentalDiagram(String caption,
DoubleScalar.Rel<TimeUnit> aggregationTime,
Lane lane,
DoubleScalar.Rel<LengthUnit> position)
Graph a Fundamental Diagram.
|
FundamentalDiagram(String caption,
DoubleScalar.Rel<TimeUnit> aggregationTime,
Lane lane,
DoubleScalar.Rel<LengthUnit> position)
Graph a Fundamental Diagram.
|
TrajectoryPlot(String caption,
DoubleScalar.Rel<TimeUnit> sampleInterval,
List<Lane> path)
Create a new TrajectoryPlot.
|
| Modifier and Type | Method and Description |
|---|---|
static DoubleScalar.Rel<LengthUnit> |
IDMPropertySet.getS0(CompoundProperty set)
Return the static headway.
|
static DoubleScalar.Rel<TimeUnit> |
IDMPropertySet.getTSafe(CompoundProperty set)
Return the time headway.
|
| Modifier and Type | Method and Description |
|---|---|
DSOLPanel<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> |
SimpleSimulator.getPanel()
To use in a Swing application add the DSOLPanel to a JFrame.
|
DEVSSimulator<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> |
SimpleSimulator.getSimulator()
Access to the simulator is needed to create simulated objects.
|
DEVSSimulator<DoubleScalar.Abs<TimeUnit>,DoubleScalar.Rel<TimeUnit>,OTSSimTimeDouble> |
ControlPanel.getSimulator() |
| Modifier and Type | Method and Description |
|---|---|
static CompoundProperty |
IDMPropertySet.makeIDMPropertySet(String carType,
DoubleScalar.Abs<AccelerationUnit> a,
DoubleScalar.Abs<AccelerationUnit> b,
DoubleScalar.Rel<LengthUnit> s0,
DoubleScalar.Rel<TimeUnit> tSafe,
int displayPriority)
Create a CompoundProperty for the IDM or IDMPlus parameters for a specified car type.
|
static CompoundProperty |
IDMPropertySet.makeIDMPropertySet(String carType,
DoubleScalar.Abs<AccelerationUnit> a,
DoubleScalar.Abs<AccelerationUnit> b,
DoubleScalar.Rel<LengthUnit> s0,
DoubleScalar.Rel<TimeUnit> tSafe,
int displayPriority)
Create a CompoundProperty for the IDM or IDMPlus parameters for a specified car type.
|
| Constructor and Description |
|---|
SimpleSimulator(DoubleScalar.Abs<TimeUnit> startTime,
DoubleScalar.Rel<TimeUnit> warmupPeriod,
DoubleScalar.Rel<TimeUnit> runLength,
OTSModelInterface model)
Create a simulation engine without animation; the easy way.
|
SimpleSimulator(DoubleScalar.Abs<TimeUnit> startTime,
DoubleScalar.Rel<TimeUnit> warmupPeriod,
DoubleScalar.Rel<TimeUnit> runLength,
OTSModelInterface model)
Create a simulation engine without animation; the easy way.
|
SimpleSimulator(DoubleScalar.Abs<TimeUnit> startTime,
DoubleScalar.Rel<TimeUnit> warmupPeriod,
DoubleScalar.Rel<TimeUnit> runLength,
OTSModelInterface model,
Rectangle2D extent)
Create a simulation engine with animation; the easy way.
|
SimpleSimulator(DoubleScalar.Abs<TimeUnit> startTime,
DoubleScalar.Rel<TimeUnit> warmupPeriod,
DoubleScalar.Rel<TimeUnit> runLength,
OTSModelInterface model,
Rectangle2D extent)
Create a simulation engine with animation; the easy way.
|
Copyright © 2014–2015 Delft University of Technology. All rights reserved.