Package | Description |
---|---|
org.opentrafficsim.core.definitions |
The definitions package contains the core definitions that can be used to interpret the Network and the PerceivableContext.
|
org.opentrafficsim.core.network |
Classes that build a network with nodes, links, and cross-sections.
|
Modifier and Type | Method and Description |
---|---|
LinkType |
Definitions.getLinkType(LinkType.DEFAULTS linkEnum)
Retrieve a defined default LinkType based on its enum.
|
LinkType |
Definitions.getLinkType(String linkId)
Retrieve a defined LinkType based on its id.
|
Modifier and Type | Method and Description |
---|---|
ImmutableMap<String,LinkType> |
Definitions.getLinkTypes()
Retrieve a safe copy of the map of defined LinkTypes in this network.
|
Modifier and Type | Method and Description |
---|---|
void |
Definitions.addLinkType(LinkType linkType)
Add a Link type to the map.
|
Modifier and Type | Method and Description |
---|---|
LinkType |
OTSLink.getLinkType() |
LinkType |
LinkDirection.getLinkType() |
LinkType |
Link.getLinkType() |
LinkType |
OTSNetwork.getLinkType(LinkType.DEFAULTS linkEnum)
Retrieve a defined default LinkType based on its enum.
|
LinkType |
OTSNetwork.getLinkType(String linkId)
Retrieve a defined LinkType based on its id.
|
LinkType |
LinkType.reverse()
Returns a link type with directionality reversed.
|
Modifier and Type | Method and Description |
---|---|
GTUCompatibility<LinkType> |
LinkType.getCompatibility() |
ImmutableMap<String,LinkType> |
OTSNetwork.getLinkTypes()
Retrieve a safe copy of the map of defined LinkTypes in this network.
|
Modifier and Type | Method and Description |
---|---|
void |
OTSNetwork.addLinkType(LinkType linkType)
Add a Link type to the map.
|
Constructor and Description |
---|
CapacityOTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
OTSSimulatorInterface simulator,
Frequency capacity)
Construct a new link.
|
LinkType(String id,
LinkType parent,
GTUCompatibility<LinkType> compatibility,
Network network)
Create a new Link type with compatibility set.
|
OTSLink(Network network,
String id,
Node startNode,
Node endNode,
LinkType linkType,
OTSLine3D designLine,
OTSSimulatorInterface simulator)
Construct a new link.
|
Constructor and Description |
---|
LinkType(String id,
LinkType parent,
GTUCompatibility<LinkType> compatibility,
Network network)
Create a new Link type with compatibility set.
|
Copyright © 2014–2019 Delft University of Technology. All rights reserved.