| 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.plan.operational |
Operational plans describe a path through the world with a speed profile that a GTU intends to follow.
|
| org.opentrafficsim.core.network |
Classes that build a network with nodes, links, and cross-sections.
|
| org.opentrafficsim.core.network.animation |
Animation for Links, Lanes, Nodes.
|
| org.opentrafficsim.core.object |
Static objects that the GTU might have to avoid.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OTSShape
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands.
|
| Modifier and Type | Method and Description |
|---|---|
static OTSLine3D |
Bezier.bezier(int numPoints,
OTSPoint3D... points)
Construct a Bézier curve of degree n.
|
static OTSLine3D |
Bezier.bezier(OTSPoint3D... points)
Construct a Bézier curve of degree n.
|
static OTSLine3D |
Clothoid.clothoid(OTSPoint3D start,
org.djunits.value.vdouble.scalar.Direction startDirection,
double startCurvature,
double endCurvature,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length endElevation,
int numSegments)
Approximate a clothoid.
|
static OTSLine3D |
Clothoid.clothoid(OTSPoint3D start,
org.djunits.value.vdouble.scalar.Direction startDirection,
double endCurvature,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length endElevation,
int numSegments)
Approximate a clothoid with curvature 0 at start.
|
static OTSLine3D |
Clothoid.clothoid(OTSPoint3D start,
org.djunits.value.vdouble.scalar.Direction startDirection,
org.djunits.value.vdouble.scalar.LinearDensity endCurvature,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length endElevation,
int numSegments)
Approximate a clothoid with curvature 0 at start.
|
static OTSLine3D |
Clothoid.clothoid(OTSPoint3D start,
org.djunits.value.vdouble.scalar.Direction startDirection,
org.djunits.value.vdouble.scalar.LinearDensity startCurvature,
org.djunits.value.vdouble.scalar.LinearDensity endCurvature,
org.djunits.value.vdouble.scalar.Length length,
org.djunits.value.vdouble.scalar.Length endElevation,
int numSegments)
Approximate a clothoid.
|
static OTSLine3D |
OTSLine3D.concatenate(double toleranceSI,
OTSLine3D... lines)
Concatenate several OTSLine3D instances.
|
static OTSLine3D |
OTSLine3D.concatenate(OTSLine3D... lines)
Concatenate several OTSLine3D instances.
|
static OTSLine3D |
OTSLine3D.createAndCleanOTSLine3D(List<OTSPoint3D> pointList)
Create an OTSLine3D, while cleaning repeating successive points.
|
static OTSLine3D |
OTSLine3D.createAndCleanOTSLine3D(OTSPoint3D[] points)
Create an OTSLine3D, while cleaning repeating successive points.
|
static OTSLine3D |
Bezier.cubic(DirectedPoint start,
DirectedPoint end)
Construct a cubic Bézier curve from start to end with two generated control points at half the distance between
start and end.
|
static OTSLine3D |
Bezier.cubic(int numPoints,
DirectedPoint start,
DirectedPoint end)
Construct a cubic Bézier curve from start to end with two generated control points at half the distance between
start and end.
|
static OTSLine3D |
Bezier.cubic(int numPoints,
OTSPoint3D start,
OTSPoint3D control1,
OTSPoint3D control2,
OTSPoint3D end)
Construct a cubic Bézier curve from start to end with two control points.
|
OTSLine3D |
OTSLine3D.extract(double start,
double end)
Create a new OTSLine3D that covers a sub-section of this OTSLine3D.
|
OTSLine3D |
OTSLine3D.extract(org.djunits.value.vdouble.scalar.Length start,
org.djunits.value.vdouble.scalar.Length end)
Create a new OTSLine3D that covers a sub-section of this OTSLine3D.
|
OTSLine3D |
OTSLine3D.extractFractional(double start,
double end)
Construct a new OTSLine3D covering the indicated fraction of this OTSLine3D.
|
OTSLine3D |
OTSLine3D.noiseFilteredLine(double noiseLevel)
Construct a line that is equal to this line except for segments that are shorter than the noiseLevel.
|
OTSLine3D |
OTSLine3D.noiseFilterRamerDouglasPeuker(double epsilon,
boolean useHorizontalDistance)
Clean up a list of points that describe a polyLine by removing points that lie within epsilon distance of a more
straightened version of the line.
|
static OTSLine3D |
OTSBufferingJTS.offsetGeometryOLD(OTSLine3D referenceLine,
double offset)
Generate a Geometry that has a fixed offset from a reference Geometry.
|
OTSLine3D |
OTSLine3D.offsetLine(double offset)
Construct parallel line.
TODO Let the Z-component of the result follow the Z-values of the reference line. |
OTSLine3D |
OTSLine3D.offsetLine(double[] relativeFractions,
double[] offsets)
Create a line at linearly varying offset from this line.
|
OTSLine3D |
OTSLine3D.offsetLine(double offsetAtStart,
double offsetAtEnd)
Create a line at linearly varying offset from this line.
|
static OTSLine3D |
OTSOffsetLinePK.offsetLine(OTSLine3D referenceLine,
double offset)
Construct an offset line.
|
static OTSLine3D |
OTSBufferingJTS.offsetLine(OTSLine3D referenceLine,
double offset)
Construct parallel line without.
|
static OTSLine3D |
OTSBufferingAV.offsetLine(OTSLine3D line,
double offset)
Construct an offset line.
|
static OTSLine3D |
OTSBufferingJTS.offsetLine(OTSLine3D referenceLine,
double offsetAtStart,
double offsetAtEnd)
Create a line at linearly varying offset from a reference line.
|
OTSLine3D |
OTSLine3D.reverse()
Construct a new OTSLine3D with all points of this OTSLine3D in reverse order.
|
OTSLine3D |
OTSLine3D.truncate(double lengthSI)
Truncate a line at the given length (less than the length of the line, and larger than zero) and return a new line.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Test.checkAll(OTSLine3D reference,
double offset)
Apply all offset methods and check the results.
|
static boolean |
Test.checkOffsetLine(OTSLine3D referenceLine,
double offset,
OTSLine3D.OffsetMethod offsetMethod)
Check the offsetLine method.
|
OTSPoint3D |
OTSPoint3D.closestPointOnLine(OTSLine3D line)
Return the closest point on an OTSLine3D.
|
OTSPoint3D |
OTSPoint3D.closestPointOnLine2D(OTSLine3D line)
Return the closest point on an OTSLine3D.
|
static OTSLine3D |
OTSLine3D.concatenate(double toleranceSI,
OTSLine3D... lines)
Concatenate several OTSLine3D instances.
|
static OTSLine3D |
OTSLine3D.concatenate(OTSLine3D... lines)
Concatenate several OTSLine3D instances.
|
static OTSLine3D |
OTSBufferingJTS.offsetGeometryOLD(OTSLine3D referenceLine,
double offset)
Generate a Geometry that has a fixed offset from a reference Geometry.
|
static OTSLine3D |
OTSOffsetLinePK.offsetLine(OTSLine3D referenceLine,
double offset)
Construct an offset line.
|
static OTSLine3D |
OTSBufferingJTS.offsetLine(OTSLine3D referenceLine,
double offset)
Construct parallel line without.
|
static OTSLine3D |
OTSBufferingAV.offsetLine(OTSLine3D line,
double offset)
Construct an offset line.
|
static OTSLine3D |
OTSBufferingJTS.offsetLine(OTSLine3D referenceLine,
double offsetAtStart,
double offsetAtEnd)
Create a line at linearly varying offset from a reference line.
|
static String |
OTSGeometryUtil.printCoordinates(String prefix,
OTSLine3D line,
String separator)
Print an array of coordinates on the console.
|
static String |
Test.timeLimitedCheckOffsetLine(OTSLine3D reference,
double offset,
OTSLine3D.OffsetMethod offsetMethod,
int timeLimitMillis) |
| Constructor and Description |
|---|
MyCallable(OTSLine3D referenceLine,
double offset,
OTSLine3D.OffsetMethod offsetMethod)
Construct a MyCallable object.
|
| Modifier and Type | Method and Description |
|---|---|
OTSLine3D |
OperationalPlan.getPath()
Return the path that will be traveled.
|
| Modifier and Type | Method and Description |
|---|---|
static OperationalPlan |
OperationalPlanBuilder.buildConstantSpeedPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed speed)
Build a plan with a path and a given speed.
|
static OperationalPlan |
OperationalPlanBuilder.buildGradualAccelerationPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Speed endSpeed)
Build a plan with a path and a given start speed to reach a provided end speed, exactly at the end of the curve.
|
static OperationalPlan |
OperationalPlanBuilder.buildGradualAccelerationPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Speed endSpeed,
org.djunits.value.vdouble.scalar.Acceleration maxAcceleration,
org.djunits.value.vdouble.scalar.Acceleration maxDeceleration)
Build a plan with a path and a given start speed to try to reach a provided end speed, exactly at the end of the curve.
|
static OperationalPlan |
OperationalPlanBuilder.buildMaximumAccelerationPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Speed endSpeed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Acceleration deceleration)
Build a plan with a path and a given start speed to try to reach a provided end speed.
|
static OperationalPlan |
OperationalPlanBuilder.buildStopPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Acceleration deceleration)
Build a plan with a path and a given start speed to try to come to a stop with a given deceleration.
|
| Constructor and Description |
|---|
OperationalPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
List<OperationalPlan.Segment> operationalPlanSegmentList)
Construct an operational plan.
|
| Modifier and Type | Method and Description |
|---|---|
OTSLine3D |
OTSLink.getDesignLine() |
OTSLine3D |
Link.getDesignLine() |
| Constructor and Description |
|---|
CapacityOTSLink(Network network,
String id,
OTSNode startNode,
OTSNode 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,
OTSNode startNode,
OTSNode endNode,
LinkType linkType,
OTSLine3D designLine,
org.djunits.value.vdouble.scalar.Frequency capacity,
Map<GTUType,LongitudinalDirectionality> directionalityMap)
Construct a new link.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
PaintLine.paintLine(Graphics2D graphics,
Color color,
double width,
DirectedPoint referencePoint,
OTSLine3D line)
Paint line.
|
static void |
PaintPolygons.paintMultiPolygon(Graphics2D graphics,
Color color,
DirectedPoint referencePoint,
OTSLine3D line,
boolean fill)
Paint (fill) a polygon or a series of polygons.
|
| Modifier and Type | Method and Description |
|---|---|
OTSLine3D |
StaticObject.getGeometry() |
OTSLine3D |
ObjectInterface.getGeometry() |
| Constructor and Description |
|---|
StaticObject(OTSLine3D geometry) |
StaticObject(OTSLine3D geometry,
org.djunits.value.vdouble.scalar.Length height) |
Copyright © 2014–2016 Delft University of Technology. All rights reserved.