public final class StandardTransitionProfileSegment extends ProfileSegment
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkForSameDefinition(ProfileSegment other)
Checks to determine if another instance has the same definition as this instance and
returns
true if it does. |
Object |
clone(CopyContext context)
Clones this object using the specified context.
|
protected int |
computeCurrentDefinitionHashCode()
Computes a hash code based on the current properties of this object.
|
static StandardTransitionProfileSegment |
getConstrainedInclinedSegment(double h0,
double hf,
double a0,
double af,
double v0,
double vf,
double g0,
double gf,
double sf,
TerrainProvider heightReference)
Get a segment without specifying the intermediate flight path angle.
|
static StandardTransitionProfileSegment |
getDegenerateSegment(double height,
double heightRate,
double horizontalSpeed,
TerrainProvider heightReference)
Creates a segment which represents an instantaneous height and height rate for degenerate surface geometry.
|
double |
getFinalAngle()
Gets the final flight path angle with respect to the reference surface, in radians.
|
Duration |
getFinalDuration()
Gets the time it takes for the segment to transition from the inclined slope
to the final conditions.
|
double |
getFinalHeight()
Gets the final height above the reference surface, in meters.
|
double |
getFinalHeightRate()
Gets the final vertical velocity, in meters per second.
|
double |
getFinalSurfaceSpeed()
Gets the value for the horizontal surface speed at the start of the profile, in meters per second.
|
double |
getHeight(Duration time)
Get the value for the height above the
TerrainProvider height reference
specified by the StandardTransitionProfileSegment.getHeightReference(agi.foundation.time.Duration) method at the given time. |
Motion1<Double> |
getHeight(Duration time,
int order)
Get the value for the height above the
TerrainProvider height reference
specified by the StandardTransitionProfileSegment.getHeightReference(agi.foundation.time.Duration) method at the given time. |
TerrainProvider |
getHeightReference(Duration time)
Get the
TerrainProvider height reference for the profile height at the given time. |
double |
getInitialAngle()
Gets the initial flight path angle with respect to the reference surface, in radians.
|
Duration |
getInitialDuration()
Gets the time it takes for the segment to transition from the initial conditions
to the inclined slope.
|
double |
getInitialHeight()
Gets the initial height above the reference surface, in meters.
|
double |
getInitialHeightRate()
Gets the initial vertical velocity, in meters per second.
|
double |
getInitialSurfaceSpeed()
Gets the value for the horizontal surface speed at the start of the profile, in meters per second.
|
double |
getIntermediateAccelerationAlongSlope()
Gets the total acceleration along the climb or descent plane measured positive
along the direction of motion, in meters per second squared.
|
Duration |
getIntermediateDuration()
Gets the time it takes for the segment to transition along the inclined slope
while ascending or descending.
|
double |
getIntermediateHorizontalAcceleration()
Gets the horizontal acceleration during the climb or descent measured positive
along the direction of motion, in meters per second squared.
|
double |
getIntermediateHorizontalRate()
Gets the horizontal velocity during the climb or descent, in meters per second.
|
double |
getIntermediateInclineAngle()
Gets the intermediate flight path angle with respect to the corresponding reference surface, in radians.
|
double |
getIntermediateVerticalAcceleration()
Gets the vertical acceleration during the climb or descent measured positive
along the direction of motion, in meters per second squared.
|
double |
getIntermediateVerticalRate()
Gets the vertical velocity during the climb or descent, in meters per second.
|
double |
getMaximumIntermediateVerticalRate()
Gets the maximum rate of change of the height, in meters per second,
when transitioning from one height to the next.
|
static StandardTransitionProfileSegment |
getSegmentAtAngle(double startHeight,
double stopHeight,
double initialAngle,
double finalAngle,
double inclineAngle,
double initialHorizontalSpeed,
double finalHorizontalSpeed,
TerrainProvider heightReference,
ProfileDynamics dynamics)
Creates an inclined profile segment with an incline at a given flight path angle.
|
static StandardTransitionProfileSegment |
getSegmentAtAngleWithoutFinalHeight(double startHeight,
double initialAngle,
double finalAngle,
double inclineAngle,
double initialHorizontalSpeed,
double finalHorizontalSpeed,
double surfaceDistance,
TerrainProvider heightReference,
ProfileDynamics dynamics)
Creates an inclined profile segment with an incline at a given flight path angle.
|
static StandardTransitionProfileSegment |
getSegmentAtAngleWithoutInitialHeight(double finalHeight,
double initialAngle,
double finalAngle,
double inclineAngle,
double initialHorizontalSpeed,
double finalHorizontalSpeed,
double surfaceDistance,
TerrainProvider heightReference,
ProfileDynamics dynamics)
Creates an inclined profile segment with an incline at a given flight path angle.
|
static StandardTransitionProfileSegment |
getSegmentUsingSurfaceSpeed(double startHeight,
double startRate,
double stopHeight,
double stopRate,
double initialHorizontalSpeed,
double finalHorizontalSpeed,
double surfaceDistance,
TerrainProvider heightReference,
ProfileDynamics dynamics)
Creates an inclined profile segment where the intermediate flight path angle is defined
by the initial and final height along with the vehicle dynamics.
|
static StandardTransitionProfileSegment |
getSegmentWithoutFinalConditions(double startHeight,
double initialAngle,
double finalAngle,
double heightRate,
double initialHorizontalSpeed,
double targetFinalHorizontalSpeed,
double surfaceDistance,
TerrainProvider heightReference,
ProfileDynamics dynamics)
Creates an inclined profile segment with an incline at a given flight path angle.
|
static StandardTransitionProfileSegment |
getSegmentWithoutFinalConditions(double startHeight,
double initialAngle,
double heightRate,
double initialHorizontalSpeed,
double targetFinalHorizontalSpeed,
double surfaceDistance,
TerrainProvider heightReference,
ProfileDynamics dynamics)
Creates an inclined profile segment with an incline at a given flight path angle.
|
static StandardTransitionProfileSegment |
getSegmentWithPrescribedAcceleration(double startHeight,
double startRate,
double stopHeight,
double stopRate,
double initialHorizontalSpeed,
double thrustAcceleration,
double surfaceDistance,
TerrainProvider heightReference,
ProfileDynamics dynamics)
Creates an inclined profile segment where the intermediate flight path angle is defined
by the initial and final height and the thrust acceleration determines the final speed.
|
static StandardTransitionProfileSegment |
getSegmentWithPrescribedAcceleration(double startHeight,
double startRate,
double stopHeight,
double initialHorizontalSpeed,
double thrustAcceleration,
double surfaceDistance,
TerrainProvider heightReference,
ProfileDynamics dynamics)
Creates an inclined profile segment where the intermediate flight path angle is defined
by the initial and final height and the thrust acceleration determines the final speed.
|
static StandardTransitionProfileSegment |
getStraightSegment(double startHeight,
double stopHeight,
double initialHorizontalSpeed,
double targetFinalHorizontalSpeed,
double maxThrustAcceleration,
double surfaceDistance,
TerrainProvider heightReference)
Creates a straight line from the initial height to the final height without any pitching maneuvers,
with the additional constraint that the thrust acceleration along the slope can't exceed a specified value.
|
static StandardTransitionProfileSegment |
getStraightSegment(double startHeight,
double stopHeight,
double initialHorizontalSpeed,
double finalHorizontalSpeed,
double surfaceDistance,
TerrainProvider heightReference)
Creates a straight line from the initial height to the final height without any pitching maneuvers.
|
static StandardTransitionProfileSegment |
getStraightSegmentWithPrescribedAcceleration(double startHeight,
double stopHeight,
double initialHorizontalSpeed,
double acceleration,
double surfaceDistance,
TerrainProvider heightReference)
Creates a straight line from the initial height to the final height without any pitching maneuvers
but also applies the acceleration to determine the final speed.
|
double |
getSurfaceMotion(Duration time)
Get the value for the arc length along the surface path, in meters.
|
Motion1<Double> |
getSurfaceMotion(Duration time,
int order)
Get the value for the arc length and its derivatives along the surface path, in meters and seconds.
|
double |
getTotalDistance()
Gets the total horizontal distance traverse by the profile segment, in meters.
|
Duration |
getTotalDuration()
Gets the total time it takes for the segment to complete the transition from
the initial conditions through an ascent or descent maneuver and then to connect
with the final conditions.
|
Duration |
getTotalTime()
Gets the total time elapsed over the course of this segment.
|
Duration |
getTotalTime(double arcLength)
Get the time required to travel the specified arc length.
|
static boolean |
isValidIncline(double startHeight,
double startRate,
double stopHeight,
double stopRate,
double startHorizontalSpeed,
double stopHorizontalSpeed,
double surfaceDistance,
ProfileDynamics dynamics)
Checks to see whether the given incline is feasible without violating the boundary conditions and dynamics.
|
checkForSameDefinition, isSameDefinition
areSameDefinition, areSameDefinition, areSameDefinition, areSameDefinition, areSameDefinition, collectionItemsAreSameDefinition, collectionItemsAreSameDefinition, collectionItemsAreSameDefinition, dictionaryItemsAreSameDefinition, enumerateDependencies, freeze, freezeAggregatedObjects, getCollectionHashCode, getCollectionHashCode, getCollectionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDefinitionHashCode, getDictionaryHashCode, getIsFrozen, isSameDefinition, throwIfFrozen
public static boolean isValidIncline(double startHeight, double startRate, double stopHeight, double stopRate, double startHorizontalSpeed, double stopHorizontalSpeed, double surfaceDistance, ProfileDynamics dynamics)
startHeight
- The initial height, in meters.startRate
- The initial vertical velocity, in meters per second.stopHeight
- The final height, in meters.stopRate
- The final vertical velocity, in meters per second.startHorizontalSpeed
- The initial horizontal velocity, in meters per second.stopHorizontalSpeed
- The final horizontal velocity, in meters per second.surfaceDistance
- The total horizontal distance along the surface path, in meters.dynamics
- The dynamical properties along the profile, including the vertical acceleration values, the
maximum and minimum values for the ascent and descent rates, and the thrust acceleration and deceleration.public static StandardTransitionProfileSegment getSegmentAtAngle(double startHeight, double stopHeight, double initialAngle, double finalAngle, double inclineAngle, double initialHorizontalSpeed, double finalHorizontalSpeed, TerrainProvider heightReference, ProfileDynamics dynamics)
startHeight
- The initial height, in meters.stopHeight
- The final height, in meters.initialAngle
- The initial flight path angle, in radians.finalAngle
- The final flight path angle, in radians.inclineAngle
- The flight path angle along the incline, in radians.initialHorizontalSpeed
- The initial horizontal velocity, in meters per second.finalHorizontalSpeed
- The final horizontal velocity, in meters per second.heightReference
- The reference surface above which to define the height.dynamics
- The dynamical properties along the profile, including the vertical acceleration values and
the thrust acceleration and deceleration.@Nullable public static StandardTransitionProfileSegment getSegmentAtAngleWithoutFinalHeight(double startHeight, double initialAngle, double finalAngle, double inclineAngle, double initialHorizontalSpeed, double finalHorizontalSpeed, double surfaceDistance, TerrainProvider heightReference, ProfileDynamics dynamics)
startHeight
- The initial height, in meters.initialAngle
- The initial flight path angle, in radians.finalAngle
- The final flight path angle, in radians.inclineAngle
- The flight path angle along the incline, in radians.initialHorizontalSpeed
- The initial horizontal velocity, in meters per second.finalHorizontalSpeed
- The final horizontal velocity, in meters per second.surfaceDistance
- The total horizontal distance along the surface, in meters.heightReference
- The reference surface above which to define the height.dynamics
- The dynamical properties along the profile, including the vertical acceleration values and
the thrust acceleration and deceleration.@Nullable public static StandardTransitionProfileSegment getSegmentAtAngleWithoutInitialHeight(double finalHeight, double initialAngle, double finalAngle, double inclineAngle, double initialHorizontalSpeed, double finalHorizontalSpeed, double surfaceDistance, TerrainProvider heightReference, ProfileDynamics dynamics)
finalHeight
- The final height, in meters.initialAngle
- The initial flight path angle, in radians.finalAngle
- The final flight path angle, in radians.inclineAngle
- The flight path angle along the incline, in radians.initialHorizontalSpeed
- The initial horizontal velocity, in meters per second.finalHorizontalSpeed
- The final horizontal velocity, in meters per second.surfaceDistance
- The total horizontal distance along the surface, in meters.heightReference
- The reference surface above which to define the height.dynamics
- The dynamical properties along the profile, including the vertical acceleration values and
the thrust acceleration and deceleration.@Nullable public static StandardTransitionProfileSegment getSegmentWithoutFinalConditions(double startHeight, double initialAngle, double heightRate, double initialHorizontalSpeed, double targetFinalHorizontalSpeed, double surfaceDistance, TerrainProvider heightReference, ProfileDynamics dynamics)
heightRate
. There is no final pitch maneuver so
the final angle is the same as the intermediate angle.startHeight
- The initial height, in meters.initialAngle
- The initial flight path angle, in radians.heightRate
- The intermediate rate of change of the height, in meters per second.initialHorizontalSpeed
- The initial horizontal velocity, in meters per second.targetFinalHorizontalSpeed
- The target final horizontal velocity, in meters per second.
This determines whether to accelerate or decelerate during the segment.surfaceDistance
- The total horizontal distance along the surface, in meters.heightReference
- The reference surface above which to define the height.dynamics
- The dynamical properties along the profile, including the vertical acceleration values and
the thrust acceleration and deceleration.@Nullable public static StandardTransitionProfileSegment getSegmentWithoutFinalConditions(double startHeight, double initialAngle, double finalAngle, double heightRate, double initialHorizontalSpeed, double targetFinalHorizontalSpeed, double surfaceDistance, TerrainProvider heightReference, ProfileDynamics dynamics)
heightRate
.startHeight
- The initial height, in meters.initialAngle
- The initial flight path angle, in radians.finalAngle
- The final flight path angle, in radians.heightRate
- The intermediate rate of change of the height, in meters per second.initialHorizontalSpeed
- The initial horizontal velocity, in meters per second.targetFinalHorizontalSpeed
- The target final horizontal velocity, in meters per second.
This determines whether to accelerate or decelerate during the segment.surfaceDistance
- The total horizontal distance along the surface, in meters.heightReference
- The reference surface above which to define the height.dynamics
- The dynamical properties along the profile, including the vertical acceleration values and
the thrust acceleration and deceleration.public static StandardTransitionProfileSegment getSegmentUsingSurfaceSpeed(double startHeight, double startRate, double stopHeight, double stopRate, double initialHorizontalSpeed, double finalHorizontalSpeed, double surfaceDistance, TerrainProvider heightReference, ProfileDynamics dynamics)
startHeight
- The initial height, in meters.startRate
- The initial vertical velocity, in meters per second.stopHeight
- The final height, in meters.stopRate
- The final vertical velocity, in meters per second.initialHorizontalSpeed
- The initial horizontal velocity, in meters per second.finalHorizontalSpeed
- The final horizontal velocity, in meters per second.surfaceDistance
- The total horizontal distance along the surface, in meters.heightReference
- The reference surface above which to define the height.dynamics
- The dynamical properties along the profile, including the vertical acceleration values and
the thrust acceleration and deceleration.public static StandardTransitionProfileSegment getSegmentWithPrescribedAcceleration(double startHeight, double startRate, double stopHeight, double stopRate, double initialHorizontalSpeed, double thrustAcceleration, double surfaceDistance, TerrainProvider heightReference, ProfileDynamics dynamics)
startHeight
- The initial height, in meters.startRate
- The initial vertical velocity, in meters per second.stopHeight
- The final height, in meters.stopRate
- The final vertical velocity, in meters per second.initialHorizontalSpeed
- The initial horizontal velocity, in meters per second.thrustAcceleration
- The acceleration along the flight path angle, in meters per second squared.surfaceDistance
- The total horizontal distance along the surface, in meters.heightReference
- The reference surface above which to define the height.dynamics
- The dynamical properties along the profile, including the vertical acceleration values.
The acceleration and deceleration specified here are overridden by the specified
thrustAcceleration
in this case.public static StandardTransitionProfileSegment getSegmentWithPrescribedAcceleration(double startHeight, double startRate, double stopHeight, double initialHorizontalSpeed, double thrustAcceleration, double surfaceDistance, TerrainProvider heightReference, ProfileDynamics dynamics)
startHeight
- The initial height, in meters.startRate
- The initial vertical velocity, in meters per second.stopHeight
- The final height, in meters.initialHorizontalSpeed
- The initial horizontal velocity, in meters per second.thrustAcceleration
- The acceleration along the flight path angle, in meters per second squared.surfaceDistance
- The total horizontal distance along the surface, in meters.heightReference
- The reference surface above which to define the height.dynamics
- The dynamical properties along the profile, including the vertical acceleration values.
The acceleration and deceleration specified here are overridden by the specified
thrustAcceleration
in this case.@Nullable public static StandardTransitionProfileSegment getStraightSegmentWithPrescribedAcceleration(double startHeight, double stopHeight, double initialHorizontalSpeed, double acceleration, double surfaceDistance, TerrainProvider heightReference)
startHeight
- The initial height, in meters.stopHeight
- The final height, in meters.initialHorizontalSpeed
- The initial horizontal velocity, in meters per second.acceleration
- The acceleration along the flight path angle, in meters per second squared.surfaceDistance
- The total horizontal distance along the surface, in meters.heightReference
- The reference surface above which to define the height.@Nullable public static StandardTransitionProfileSegment getStraightSegment(double startHeight, double stopHeight, double initialHorizontalSpeed, double finalHorizontalSpeed, double surfaceDistance, TerrainProvider heightReference)
startHeight
- The initial height, in meters.stopHeight
- The final height, in meters.initialHorizontalSpeed
- The initial horizontal speed, in meters per second.finalHorizontalSpeed
- The final horizontal speed, in meters per second.surfaceDistance
- The total distance along the surface, in meters.heightReference
- The reference surface above which to define the height.@Nullable public static StandardTransitionProfileSegment getStraightSegment(double startHeight, double stopHeight, double initialHorizontalSpeed, double targetFinalHorizontalSpeed, double maxThrustAcceleration, double surfaceDistance, TerrainProvider heightReference)
startHeight
- The initial height, in meters.stopHeight
- The final height, in meters.initialHorizontalSpeed
- The initial horizontal speed, in meters per second.targetFinalHorizontalSpeed
- The final horizontal speed, in meters per second.maxThrustAcceleration
- The maximum thrust acceleration along the slope, in meters per second squared.surfaceDistance
- The total distance along the surface, in meters.heightReference
- The reference surface above which to define the height.@Nonnull public static StandardTransitionProfileSegment getDegenerateSegment(double height, double heightRate, double horizontalSpeed, TerrainProvider heightReference)
height
- The height, in meters.heightRate
- The rate of change of the height, in meters per second.horizontalSpeed
- The horizontal speed, in meters per second.heightReference
- The reference surface above which to define the height.public static StandardTransitionProfileSegment getConstrainedInclinedSegment(double h0, double hf, double a0, double af, double v0, double vf, double g0, double gf, double sf, TerrainProvider heightReference)
h0
- The initial height, in meters.hf
- The final height, in meters.a0
- The initial pitch acceleration, in meters per second squared.af
- The final pitch acceleration, in meters per second squaredv0
- The initial total speed, in meters per second.vf
- The final total speed, in meters per second.g0
- The initial flight path angle, in radians.gf
- The final flight path angle, in radians.sf
- The total arc length along the surface, in meters.heightReference
- The reference surface above which to define the height.public Object clone(CopyContext context)
This method should be implemented to call a copy constructor on the class of the
object being cloned. The copy constructor should take the CopyContext
as a parameter
in addition to the existing instance to copy. The copy constructor should first call
CopyContext.addObjectMapping(T, T)
to identify the newly constructed instance
as a copy of the existing instance. It should then copy all fields, using
CopyContext.updateReference(T)
to copy any reference fields.
A typical implementation of ICloneWithContext
:
public static class MyClass implements ICloneWithContext {
public MyClass(MyClass existingInstance, CopyContext context) {
context.addObjectMapping(existingInstance, this);
someReference = context.updateReference(existingInstance.someReference);
}
@Override
public final Object clone(CopyContext context) {
return new MyClass(this, context);
}
private Object someReference;
}
In general, all fields that are reference types should be copied with a call to
CopyContext.updateReference(T)
. There are a couple of exceptions:
If one of these exceptions applies, the CopyContext
should be given an opportunity
to update the reference before the reference is copied explicitly. Use
CopyContext.updateReference(T)
to update the reference. If CopyContext.updateReference(T)
returns
the original object, indicating that the context does not have a replacement registered,
then copy the object manually by invoking a Clone method, a copy constructor, or by manually
constructing a new instance and copying the values.
alwaysCopy = context.updateReference(existingInstance.alwaysCopy);
if (existingInstance.alwaysCopy != null && alwaysCopy == existingInstance.alwaysCopy) {
alwaysCopy = (AlwaysCopy) existingInstance.alwaysCopy.clone(context);
}
If you are implementing an evaluator (a class that implements IEvaluator
), the
IEvaluator.updateEvaluatorReferences(agi.foundation.infrastructure.CopyContext)
method shares some responsibilities with the
copy context constructor. Code duplication can be avoided by doing the following:
CopyContext.updateReference(T)
. You should still call CopyContext.updateReference(T)
on any references to
non-evaluators.
IEvaluator.updateEvaluatorReferences(agi.foundation.infrastructure.CopyContext)
as the last line in the constructor and pass it the
same CopyContext
passed to the constructor.
IEvaluator.updateEvaluatorReferences(agi.foundation.infrastructure.CopyContext)
as normal. See the reference documentation for
IEvaluator.updateEvaluatorReferences(agi.foundation.infrastructure.CopyContext)
for more information on implementing that method.
public MyClass(MyClass existingInstance, CopyContext context) {
super(existingInstance, context);
someReference = context.updateReference(existingInstance.someReference);
evaluatorReference = existingInstance.evaluatorReference;
updateEvaluatorReferences(context);
}
@Override
public void updateEvaluatorReferences(CopyContext context) {
evaluatorReference = context.updateReference(evaluatorReference);
}
@Override
public Object clone(CopyContext context) {
return new MyClass(this, context);
}
private Object someReference;
private IEvaluator evaluatorReference;
clone
in interface ICloneWithContext
clone
in class DefinitionalObject
context
- The context to use to perform the copy.protected final boolean checkForSameDefinition(ProfileSegment other)
true
if it does. Derived classes MUST override this method and check
all new fields introduced by the derived class for definitional equivalence. It is NOT necessary
to check base class fields because the base class will already have done that. When overriding this method,
you should NOT call the base implementation because it will return false
for all derived-class instances.
Derived classes should check the type of other
to preserve the symmetric nature of IEquatableDefinition.isSameDefinition(java.lang.Object)
.checkForSameDefinition
in class ProfileSegment
other
- The other instance to compare to this one.true
if the two objects are defined equivalently; otherwise false
.protected int computeCurrentDefinitionHashCode()
StandardTransitionProfileSegment.checkForSameDefinition(agi.foundation.routedesign.advanced.ProfileSegment)
method.computeCurrentDefinitionHashCode
in class ProfileSegment
public double getHeight(@Nonnull Duration time)
TerrainProvider
height reference
specified by the StandardTransitionProfileSegment.getHeightReference(agi.foundation.time.Duration)
method at the given time.getHeight
in class ProfileSegment
time
- The time elapsed since the beginning of this segment.@Nonnull public Motion1<Double> getHeight(@Nonnull Duration time, int order)
TerrainProvider
height reference
specified by the StandardTransitionProfileSegment.getHeightReference(agi.foundation.time.Duration)
method at the given time.getHeight
in class ProfileSegment
time
- The time elapsed since the beginning of this segment.order
- The requested order of the height where zero is the height and
higher orders specify the number of derivatives. Depending on the type of profile
and underlying geometry, the resulting order may not match the requested order.public double getSurfaceMotion(@Nonnull Duration time)
getSurfaceMotion
in class ProfileSegment
time
- The time elapsed since the beginning of this segment.@Nonnull public Motion1<Double> getSurfaceMotion(@Nonnull Duration time, int order)
getSurfaceMotion
in class ProfileSegment
time
- The time elapsed since the beginning of this segment.order
- The requested order of the arc length where zero is the arc length and
higher orders specify the number of derivatives. Depending on the type of profile
and underlying geometry, the resulting order may not match the requested order.@Nonnull public Duration getTotalTime()
getTotalTime
in class ProfileSegment
public TerrainProvider getHeightReference(@Nonnull Duration time)
TerrainProvider
height reference for the profile height at the given time.getHeightReference
in class ProfileSegment
time
- The elapsed time since the beginning of this segment.@Nonnull public Duration getTotalTime(double arcLength)
getTotalTime
in class ProfileSegment
arcLength
- The arc length to travel, in meters.public final double getTotalDistance()
public final double getIntermediateInclineAngle()
public final double getIntermediateVerticalRate()
public final double getMaximumIntermediateVerticalRate()
IntermediateVerticalAcceleration
(get
)
is zero, then this is the same as the IntermediateVerticalRate
(get
). Otherwise, the
value depends on the acceleration and whether the segment is accelerating or decelerating.public final double getIntermediateHorizontalRate()
public final double getIntermediateVerticalAcceleration()
public final double getIntermediateHorizontalAcceleration()
public final double getIntermediateAccelerationAlongSlope()
@Nonnull public final Duration getInitialDuration()
@Nonnull public final Duration getIntermediateDuration()
@Nonnull public final Duration getFinalDuration()
@Nonnull public final Duration getTotalDuration()
public final double getInitialHeight()
public final double getFinalHeight()
public final double getInitialHeightRate()
public final double getFinalHeightRate()
public final double getInitialAngle()
public final double getFinalAngle()
public final double getInitialSurfaceSpeed()
public final double getFinalSurfaceSpeed()