public abstract class ConfigurableConnection extends Object
RouteProcedures
together.Modifier | Constructor and Description |
---|---|
protected |
ConfigurableConnection()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
configure(List<ConfigurableConnection> connections,
int currentIndex)
Configure this connection based on its index in the given list of all connections in the route.
|
double |
getComputationalWeight()
Get the computational weight associated with configuring this connection
with the previous and next procedure.
|
abstract SurfaceProcedureConnectionDependency |
getDependency()
Get the dependency for the connection indicating whether the previous or next connection
should be configured before this one.
|
abstract SurfaceConfigurationResult |
getEntryToNextConfiguration()
Gets the result of configuring the entry into the next procedure.
|
abstract SurfaceConfigurationResult |
getExitFromPreviousConfiguration()
Gets the result of configuring the exit from the previous procedure.
|
abstract double |
getFinalHeading()
Gets the final heading of the connection, in radians.
|
abstract Cartographic |
getFinalPoint()
Gets the final point of the connection segment.
|
abstract double |
getHeading(double s)
Get the heading at an arbitrary point along the connection, in radians.
|
abstract double |
getInitialHeading()
Gets the initial heading of the connection, in radians.
|
abstract Cartographic |
getInitialPoint()
Gets the initial point of the connection segment.
|
abstract boolean |
getIsValid()
Gets a value indicating whether this is a valid connection to the previous and next procedures.
|
abstract Cartographic |
getPoint(double s)
Get the surface point along the connection at the given arc length.
|
abstract double |
getSurfaceDistance()
Gets the total distance traversed by this connection from start to finish, in meters.
|
abstract SurfaceSegment |
getSurfaceSegment()
Create the surface geometry for the given connection.
|
abstract Ellipsoid |
getSurfaceShape()
Gets the shape of the reference surface upon which the surface geometry is defined.
|
abstract void |
setIsValid(boolean value)
Sets a value indicating whether this is a valid connection to the previous and next procedures.
|
abstract void |
setPoints(Cartographic start,
Cartographic stop)
Set the initial and final points of the connection segment.
|
abstract void |
setStart(Cartographic start)
Set the initial point of the connection segment.
|
abstract void |
setStop(Cartographic stop)
Set the final point of the connection segment.
|
protected ConfigurableConnection()
public double getComputationalWeight()
public abstract SurfaceSegment getSurfaceSegment()
@Nonnull public abstract SurfaceProcedureConnectionDependency getDependency()
public abstract void configure(List<ConfigurableConnection> connections, int currentIndex)
connections
- The list of all connections in the route.currentIndex
- The index where this connection occurs in the list of connections
.public abstract SurfaceConfigurationResult getEntryToNextConfiguration()
public abstract SurfaceConfigurationResult getExitFromPreviousConfiguration()
public abstract void setPoints(@Nonnull Cartographic start, @Nonnull Cartographic stop)
start
- The initial point of the connection.stop
- The final point of the connection.public abstract void setStart(@Nonnull Cartographic start)
start
- The initial point of the connection.public abstract void setStop(@Nonnull Cartographic stop)
stop
- The final point of the connection.public abstract boolean getIsValid()
public abstract void setIsValid(boolean value)
public abstract double getHeading(double s)
s
- The arc length parameter along the connection, in meters.@Nonnull public abstract Cartographic getPoint(double s)
s
- The arc length parameter along the connection, in meters.public abstract double getInitialHeading()
public abstract double getFinalHeading()
public abstract double getSurfaceDistance()
@Nonnull public abstract Cartographic getInitialPoint()
@Nonnull public abstract Cartographic getFinalPoint()
public abstract Ellipsoid getSurfaceShape()