| Package | Description |
|---|---|
| org.opentrafficsim.core.geometry |
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
| org.opentrafficsim.core.gtu |
GTU (Generalized Travel Unit) is the base class for cars, trains, pedestrians, etc.
|
| org.opentrafficsim.core.gtu.perception |
The perception module of a GTU is responsible for perceiving (sensing) the environment of the GTU, which includes the
locations of other GTUs.
|
| org.opentrafficsim.core.gtu.plan.strategical |
Strategical planners.
|
| org.opentrafficsim.core.gtu.plan.tactical |
Tactical planners generate operational plans that are in line with reaching the goals of the strategical plan.
|
| org.opentrafficsim.core.network |
Classes that build a network with nodes, links, and cross-sections.
|
| org.opentrafficsim.core.network.factory.xml.units |
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
| org.opentrafficsim.core.network.route |
Routes and route probabilities.
|
| org.opentrafficsim.core.object |
Static objects that the GTU might have to avoid.
|
| org.opentrafficsim.simulationengine |
Wrappers and stubs for the DSOL simulation engine.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Test2.main(String[] args) |
static void |
Test.main(String[] args) |
static void |
OTSBufferingJTS.main(String[] args) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractGTU.interruptMove()
Interrupt the move and ask for a new plan.
|
protected void |
AbstractGTU.move(DirectedPoint fromLocation)
Move from the current location according to an operational plan to a location that will bring us nearer to reaching the
location provided by the strategical planner.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Perception.perceive()
Update the perceived information and store it in a stateful manner.
|
void |
AbstractPerception.perceive()
Update the perceived information and store it in a stateful manner.
|
void |
EgoPerception.updateAll()
Updates all information in the category.
|
abstract void |
AbstractPerceptionCategory.updateAll()
Updates all information in the category.
|
| Modifier and Type | Method and Description |
|---|---|
LinkDirection |
StrategicalPlanner.nextLinkDirection(Link link,
GTUDirectionality direction,
GTUType gtuType)
Determine the next link and driving direction (with or against the design line) in a network based on a current Link we
are on.
|
LinkDirection |
StrategicalPlanner.nextLinkDirection(Node node,
Link previousLink,
GTUType gtuType)
Determine the next link and driving direction (with or against the design line) in a network based on a node and a
driving direction of the GTU.
|
Node |
StrategicalPlanner.nextNode(Link link,
GTUDirectionality direction,
GTUType gtuType)
Determine the next node in a network based on a current Link we are on.
|
Node |
StrategicalPlanner.nextNode(Node node,
Link previousLink,
GTUType gtuType)
Determine the next node in a network based on a given node.
|
| Modifier and Type | Method and Description |
|---|---|
OperationalPlan |
TacticalPlanner.generateOperationalPlan(org.djunits.value.vdouble.scalar.Time startTime,
DirectedPoint locationAtStartTime)
generate an operational plan, for now or for in the future.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OTSNode.addConnection(GTUType gtuType,
Link incomingLink,
Link outgoingLink)
Add a single connection for a GTU type to the connections map.
|
void |
OTSNode.addConnections(GTUType gtuType,
Link incomingLink,
Set<Link> outgoingLinks)
Add a set of connections for a GTU type to the connections map.
|
void |
OTSNetwork.addLink(Link link)
Register a link in the network.
|
void |
Network.addLink(Link link)
Register a link in the network.
|
void |
OTSNetwork.addNode(Node node)
Register a node in the network.
|
void |
Network.addNode(Node node)
Register a node in the network.
|
void |
OTSNetwork.addRoute(GTUType gtuType,
Route route)
Add a route to the network.
|
void |
Network.addRoute(GTUType gtuType,
Route route)
Add a route to the network.
|
OTSLink |
OTSLink.clone(Network newNetwork,
OTSSimulatorInterface newSimulator,
boolean animation)
Clone the OTSLink for e.g., copying a network.
|
CapacityOTSLink |
CapacityOTSLink.clone(Network newNetwork,
OTSSimulatorInterface newSimulator,
boolean animation)
Clone the OTSLink for e.g., copying a network.
|
OTSNetwork |
OTSNetwork.clone(String newId,
OTSSimulatorInterface newSimulator,
boolean animation)
Clone the OTSNetwork.
|
OTSNode |
OTSNode.clone1(Network newNetwork,
OTSSimulatorInterface newSimulator,
boolean animation)
Clone the OTSode for e.g., copying a network.
|
OTSNode |
OTSNode.clone2(Network newNetwork,
OTSSimulatorInterface newSimulator,
boolean animation)
Complete the cloning of the OTSode for e.g., copying a network.
|
Link |
OTSNetwork.getLink(String nodeId1,
String nodeId2)
Find a link between node1 and node2 and return it if it exists in the network.
|
Link |
Network.getLink(String nodeId1,
String nodeId2)
Find a link between node1 and node2 and return it if it exists in the network.
|
CompleteRoute |
OTSNetwork.getShortestRouteBetween(GTUType gtuType,
Node nodeFrom,
Node nodeTo)
Calculate the shortest route between two nodes in the network.
|
CompleteRoute |
Network.getShortestRouteBetween(GTUType gtuType,
Node nodeFrom,
Node nodeTo)
Calculate the shortest route between two nodes in the network.
|
CompleteRoute |
OTSNetwork.getShortestRouteBetween(GTUType gtuType,
Node nodeFrom,
Node nodeTo,
List<Node> nodesVia)
Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.
|
CompleteRoute |
Network.getShortestRouteBetween(GTUType gtuType,
Node nodeFrom,
Node nodeTo,
List<Node> nodesVia)
Calculate the shortest route between two nodes in the network, via a list of intermediate nodes.
|
Set<Link> |
OTSNode.nextLinks(GTUType gtuType,
Link prevLink)
Determine the links connecting from the previous link via this Node for the given GTU type.
|
Set<Link> |
Node.nextLinks(GTUType gtuType,
Link prevLink)
Determine the links connecting from the previous link via this Node for the given GTU type.
|
void |
OTSNetwork.removeLink(Link link)
Unregister a link from the network.
|
void |
Network.removeLink(Link link)
Unregister a link from the network.
|
void |
OTSNetwork.removeNode(Node node)
Unregister a node from the network.
|
void |
Network.removeNode(Node node)
Unregister a node from the network.
|
void |
OTSNetwork.removeRoute(GTUType gtuType,
Route route)
Remove the route from the network, e.g.
|
void |
Network.removeRoute(GTUType gtuType,
Route route)
Remove the route from the network, e.g.
|
| Constructor and Description |
|---|
CapacityOTSLink(Network newNetwork,
OTSSimulatorInterface newSimulator,
boolean animation,
CapacityOTSLink link)
Clone a link for a new network.
|
CapacityOTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
org.djunits.value.vdouble.scalar.Frequency capacity,
LongitudinalDirectionality directionality)
Construct a new link, with a directionality for all GTUs as provided.
|
CapacityOTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
org.djunits.value.vdouble.scalar.Frequency capacity,
Map<GTUType,LongitudinalDirectionality> directionalityMap)
Construct a new link.
|
OTSLink(Network newNetwork,
OTSSimulatorInterface newSimulator,
boolean animation,
OTSLink link)
Clone a link for a new network.
|
OTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
LongitudinalDirectionality directionality)
Construct a new link, with a directionality for all GTUs as provided.
|
OTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
Map<GTUType,LongitudinalDirectionality> directionalityMap)
Construct a new link.
|
OTSNode(Network network,
String id,
OTSPoint3D point)
Construction of a Node.
|
OTSNode(Network network,
String id,
OTSPoint3D point,
org.djunits.value.vdouble.scalar.Direction direction,
org.djunits.value.vdouble.scalar.Direction slope)
Construction of a Node.
|
| Modifier and Type | Method and Description |
|---|---|
static org.djunits.value.vdouble.scalar.Acceleration |
AccelerationUnits.parseAcceleration(String s) |
static String |
AccelerationUnits.parseAccelerationUnit(String s) |
static org.djunits.value.vdouble.scalar.Angle |
AngleUnits.parseAngle(String s) |
static String |
AngleUnits.parseAngleUnit(String s) |
static Color |
Colors.parseColor(String colorStr) |
static LongitudinalDirectionality |
Directions.parseDirection(String dirStr) |
static org.djunits.value.vdouble.scalar.Direction |
AngleUnits.parseDirection(String s) |
static org.djunits.value.vdouble.scalar.Duration |
TimeUnits.parseDuration(String s) |
static ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Duration,org.djunits.unit.TimeUnit> |
Distributions.parseDurationDist(String s)
Parse a relative time distribution, e.g.
|
static org.djunits.value.vdouble.scalar.Frequency |
TimeUnits.parseFrequency(String s) |
static String |
TimeUnits.parseFrequencyUnit(String s) |
static org.djunits.value.vdouble.scalar.Length |
LengthUnits.parseLength(String s) |
static ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Length,org.djunits.unit.LengthUnit> |
Distributions.parseLengthDist(String s)
Parse a relative length distribution, e.g.
|
static String |
LengthUnits.parseLengthUnit(String s) |
static org.djunits.value.vdouble.scalar.LinearDensity |
LengthUnits.parseLinearDensity(String s) |
static String |
LengthUnits.parsePerLengthUnit(String s) |
static org.djunits.value.vdouble.scalar.Position |
LengthUnits.parsePosition(String s) |
static ContinuousDistDoubleScalar.Abs<org.djunits.value.vdouble.scalar.Position,org.djunits.unit.LengthUnit> |
Distributions.parsePositionDist(String s)
Parse an absolute length distribution, e.g.
|
static org.djunits.value.vdouble.scalar.Speed |
SpeedUnits.parseSpeed(String s) |
static ContinuousDistDoubleScalar.Rel<org.djunits.value.vdouble.scalar.Speed,org.djunits.unit.SpeedUnit> |
Distributions.parseSpeedDist(String s)
Parse a relative speed distribution, e.g.
|
static String |
SpeedUnits.parseSpeedUnit(String s) |
static org.djunits.value.vdouble.scalar.Time |
TimeUnits.parseTime(String s) |
static ContinuousDistDoubleScalar.Abs<org.djunits.value.vdouble.scalar.Time,org.djunits.unit.TimeUnit> |
Distributions.parseTimeDist(String s)
Parse an absolute time distribution, e.g.
|
static String |
TimeUnits.parseTimeUnit(String s) |
| Modifier and Type | Method and Description |
|---|---|
void |
Route.addNode(Node node)
Add a node to the end of the node list.
|
void |
CompleteRoute.addNode(Node node)
Add a node to the end of the node list.
|
Route |
Route.clone(Network newNetwork,
OTSSimulatorInterface newSimulator,
boolean animation)
Clone the Route.
|
CompleteRoute |
CompleteRoute.clone(Network newNetwork,
OTSSimulatorInterface newSimulator,
boolean animation)
Clone the Route.
|
Node |
Route.destinationNode() |
Node |
Route.getNode(int i) |
Node |
Route.originNode() |
| Constructor and Description |
|---|
CompleteRoute(String id,
GTUType gtuType,
List<Node> nodes)
Create a route based on an initial list of nodes.
|
| Modifier and Type | Method and Description |
|---|---|
StaticObject |
StaticObject.clone(Network newNetwork,
OTSSimulatorInterface newSimulator,
boolean animation)
Clone the StaticObject for e.g., copying a network.
|
| Modifier and Type | Method and Description |
|---|---|
SimpleSimulatorInterface |
WrappableAnimation.buildAnimator(org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Duration warmupPeriod,
org.djunits.value.vdouble.scalar.Duration runLength,
List<org.opentrafficsim.base.modelproperties.Property<?>> properties,
Rectangle rect,
boolean exitOnClose)
Build the animation.
|
SimpleSimulatorInterface |
WrappableSimulation.buildSimulator(org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Duration warmupPeriod,
org.djunits.value.vdouble.scalar.Duration runLength,
ArrayList<org.opentrafficsim.base.modelproperties.AbstractProperty<?>> properties)
Build the simulation.
|
SimpleSimulatorInterface |
WrappableAnimation.rebuildSimulator(Rectangle rect)
Restart (rebuild) the simulation.
|
SimpleSimulatorInterface |
AbstractWrappableAnimation.rebuildSimulator(Rectangle rect)
Restart (rebuild) the simulation.
|
Copyright © 2014–2017 Delft University of Technology. All rights reserved.