public class LandingProcedure extends RouteProcedure
Modifier and Type | Class and Description |
---|---|
static class |
LandingProcedure.ConfigurationData
An enumeration indicating the status of configuring the surface procedure.
|
Modifier | Constructor and Description |
---|---|
|
LandingProcedure()
Create a new instance.
|
|
LandingProcedure(Cartographic runwayStartPosition,
double runwayHeading,
double rollDistance,
double startHeight,
double stopHeight,
double glideSlopeAngle,
ProfileDynamics profileDynamics,
double speedOnApproach,
double finalSpeed,
double turningRadiusOnApproach)
Create a landing procedure based on the given parameters with respect to the surface of the
Earth (get ). |
|
LandingProcedure(Cartographic runwayStartPosition,
double runwayHeading,
double rollDistance,
ProfileDynamics profileDynamics,
double initialHeightAboveRunway,
double finalHeightAboveRunway,
double speedOnApproach,
double finalSpeed,
double turningRadius)
Create a landing procedure based on the given parameters with respect to the surface of the
Earth (get ). |
protected |
LandingProcedure(LandingProcedure existingInstance,
CopyContext context)
Initializes a new instance as a copy of an existing instance.
|
|
LandingProcedure(TerrainProvider terrainReference,
Cartographic runwayStartPosition,
double runwayHeading,
double rollDistance,
double startHeight,
double stopHeight,
double glideSlopeAngle,
ProfileDynamics profileDynamics,
double speedOnApproach,
double finalSpeed,
double turningRadiusOnApproach)
Create a landing procedure based on the given parameters with respect to a terrain surface.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkForSameDefinition(LandingProcedure other)
Checks to determine if another instance has the same definition as this instance and
returns
true if it does. |
protected boolean |
checkForSameDefinition(RouteProcedure 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.
|
ConfigurableProfile |
createConfigurableProfile(SurfaceSegment surfacePath)
Create a profile based on the given settings that the
RoutePropagator can
use to configure this profile in relation to all other profiles along the route. |
double |
getDescentAngle()
Gets the angle of the glide slope for the landing, in radians.
|
ProfileDynamics |
getDynamics()
Gets the platform dynamics that define the pitch up and push over accelerations
to use for the landing descent.
|
double |
getFinalHeightAboveRunway()
Gets the final constant offset above the runway, in meters.
|
double |
getFinalSpeed()
Gets the final target speed at which the platform travels after rolling to a stop at the
end of the landing, in meters per second.
|
double |
getInitialHeightAboveRunway()
Gets the height above the runway at which the platform approaches the landing, in meters.
|
double |
getRollDistance()
Gets the distance along the runway it takes to go from
the landing speed to the final speed, in meters.
|
double |
getRunwayHeading()
Gets the heading of the runway with respect to north, in radians.
|
TerrainProvider |
getRunwayReferenceSurface()
Gets the terrain reference surface to use to define the heights and the surface of the runway.
|
Cartographic |
getRunwayStartPosition()
Gets the geodetic starting point of the runway.
|
double |
getSpeedOnApproach()
Gets the target speed at which to approach the landing maneuver, in meters per second.
|
ConfigurableSurfaceProcedure |
getSurfacePath()
Get an object that will allow configuration of the surface geometry as it
connects with other procedures.
|
double |
getTurningRadiusAfterLanding()
Gets the final turning radius at which to turn toward the next procedure after landing, in meters.
|
double |
getTurningRadiusOnApproach()
Gets the horizontal turning radius at which to turn when approaching the glide
plane for landing, in meters.
|
void |
setDescentAngle(double value)
Sets the angle of the glide slope for the landing, in radians.
|
void |
setDynamics(ProfileDynamics value)
Sets the platform dynamics that define the pitch up and push over accelerations
to use for the landing descent.
|
void |
setFinalHeightAboveRunway(double value)
Sets the final constant offset above the runway, in meters.
|
void |
setFinalSpeed(double value)
Sets the final target speed at which the platform travels after rolling to a stop at the
end of the landing, in meters per second.
|
void |
setInitialHeightAboveRunway(double value)
Sets the height above the runway at which the platform approaches the landing, in meters.
|
void |
setRollDistance(double value)
Sets the distance along the runway it takes to go from
the landing speed to the final speed, in meters.
|
void |
setRunwayHeading(double value)
Sets the heading of the runway with respect to north, in radians.
|
void |
setRunwayReferenceSurface(TerrainProvider value)
Sets the terrain reference surface to use to define the heights and the surface of the runway.
|
void |
setRunwayStartPosition(Cartographic value)
Sets the geodetic starting point of the runway.
|
void |
setSpeedOnApproach(double value)
Sets the target speed at which to approach the landing maneuver, in meters per second.
|
void |
setTurningRadiusAfterLanding(double value)
Sets the final turning radius at which to turn toward the next procedure after landing, in meters.
|
void |
setTurningRadiusOnApproach(double value)
Sets the horizontal turning radius at which to turn when approaching the glide
plane for landing, in meters.
|
checkForSameDefinition
checkForSameDefinition
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 LandingProcedure()
public LandingProcedure(TerrainProvider terrainReference, @Nonnull Cartographic runwayStartPosition, double runwayHeading, double rollDistance, double startHeight, double stopHeight, double glideSlopeAngle, ProfileDynamics profileDynamics, double speedOnApproach, double finalSpeed, double turningRadiusOnApproach)
terrainReference
- The terrain reference surface for the runway.runwayStartPosition
- The start position of the runway, including the height offset of the
runway above the terrain reference surface.runwayHeading
- The heading of the runway with respect to north, in radians.rollDistance
- The distance along the runway that the platform needs to reach the final speed, in meters.startHeight
- The height above the runway at which the platform approaches the landing, in meters.
This represents the height of the center of mass (or center of a 3D model) with respect to the terrain and runway
offset specified by the height of the runwayStartPosition
.stopHeight
- The final constant offset above the runway, in meters. This represents the height
of the center of mass (or center of a 3D model) with respect to the terrain and runway offset specified by
the height of the runwayStartPosition
.glideSlopeAngle
- The angle at which to glide during descent, in radians. (This will override the
descent behavior in the profileDynamics
).profileDynamics
- The platform dynamics specifying the push over and pitch up accelerations.speedOnApproach
- The speed at which the platform arrives when approaching the landing, in meters per second.finalSpeed
- The final speed of the platform after rolling to a stop on the runway, in meters per second.turningRadiusOnApproach
- The horizontal turning radius to use when approaching the glide plane for landing, in meters.public LandingProcedure(@Nonnull Cartographic runwayStartPosition, double runwayHeading, double rollDistance, double startHeight, double stopHeight, double glideSlopeAngle, ProfileDynamics profileDynamics, double speedOnApproach, double finalSpeed, double turningRadiusOnApproach)
Earth
(get
). If MeanSeaLevel
(get
/ set
)
is available on the definition of Earth in the CalculationContext
,
the specified heights will be with respect to sea level.runwayStartPosition
- The start position of the runway.runwayHeading
- The heading of the runway with respect to north, in radians.rollDistance
- The distance along the runway that the platform needs to reach the final speed, in meters.startHeight
- The height above the runway at which the platform approaches the landing, in meters.
This represents the height of the center of mass (or center of a 3D model) with respect to the terrain and runway
offset specified by the height of the runwayStartPosition
.stopHeight
- The final constant offset above the runway, in meters. This represents the height
of the center of mass (or center of a 3D model) with respect to the terrain and runway offset specified by
the height of the runwayStartPosition
.glideSlopeAngle
- The angle at which to glide during descent, in radians. (This will override the
descent behavior in the profileDynamics
).profileDynamics
- The platform dynamics specifying the push over and pitch up accelerations.speedOnApproach
- The speed at which the platform arrives when approaching the landing, in meters per second.finalSpeed
- The final speed of the platform after rolling to a stop on the runway, in meters per second.turningRadiusOnApproach
- The horizontal turning radius to use when approaching the glide plane for landing, in meters.public LandingProcedure(@Nonnull Cartographic runwayStartPosition, double runwayHeading, double rollDistance, ProfileDynamics profileDynamics, double initialHeightAboveRunway, double finalHeightAboveRunway, double speedOnApproach, double finalSpeed, double turningRadius)
Earth
(get
). If MeanSeaLevel
(get
/ set
)
is available on the definition of Earth in the CalculationContext
,
the specified heights will be with respect to sea level.runwayStartPosition
- The start position of the runway, including the height above the runway at which to end, in meters.runwayHeading
- The heading of the runway with respect to north, in radians.rollDistance
- The distance along the runway that the platform needs to reach the final speed, in meters.profileDynamics
- The platform dynamics specifying the push over and pitch up accelerations as well as the
glide angle based on the vertical ascent and horizontal approach speed.initialHeightAboveRunway
- The height above the runway at which the platform approaches the landing, in meters.
This represents the height of the center of mass (or center of a 3D model) with respect to the terrain and runway
offset specified by the height of the runwayStartPosition
.finalHeightAboveRunway
- The final constant offset above the runway, in meters. This represents the height
of the center of mass (or center of a 3D model) with respect to the terrain and runway offset specified by
the height of the runwayStartPosition
.speedOnApproach
- The initial speed of the platform as it approaches to land, in meters per second.finalSpeed
- The speed at the end of the rollDistance
at which the platform takes off,
in meters per second.turningRadius
- The horizontal radius at which to turn toward the next procedure, in meters.protected LandingProcedure(@Nonnull LandingProcedure existingInstance, @Nonnull CopyContext context)
See ICloneWithContext.clone(CopyContext)
for more information about how to implement this constructor
in a derived class.
existingInstance
- The existing instance to copy.context
- A CopyContext
that controls the depth of the copy.ArgumentNullException
- Thrown when existingInstance
or context
is null
.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(RouteProcedure 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 RouteProcedure
other
- The other instance to compare to this one.true
if the two objects are defined equivalently; otherwise false
.protected boolean checkForSameDefinition(LandingProcedure 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)
.other
- The other instance to compare to this one.true
if the two objects are defined equivalently; otherwise false
.protected int computeCurrentDefinitionHashCode()
LandingProcedure.checkForSameDefinition(agi.foundation.routedesign.RouteProcedure)
method.computeCurrentDefinitionHashCode
in class RouteProcedure
public final ProfileDynamics getDynamics()
public final void setDynamics(ProfileDynamics value)
public final double getDescentAngle()
public final void setDescentAngle(double value)
public final double getSpeedOnApproach()
public final void setSpeedOnApproach(double value)
public final double getFinalSpeed()
public final void setFinalSpeed(double value)
public final TerrainProvider getRunwayReferenceSurface()
public final void setRunwayReferenceSurface(TerrainProvider value)
@Nonnull public final Cartographic getRunwayStartPosition()
public final void setRunwayStartPosition(@Nonnull Cartographic value)
public final double getRunwayHeading()
public final void setRunwayHeading(double value)
public final double getInitialHeightAboveRunway()
RunwayReferenceSurface
(get
/ set
) and runway offset specified by the height of the
RunwayStartPosition
(get
/ set
).public final void setInitialHeightAboveRunway(double value)
RunwayReferenceSurface
(get
/ set
) and runway offset specified by the height of the
RunwayStartPosition
(get
/ set
).public final double getFinalHeightAboveRunway()
public final void setFinalHeightAboveRunway(double value)
public final double getTurningRadiusOnApproach()
public final void setTurningRadiusOnApproach(double value)
public final double getTurningRadiusAfterLanding()
public final void setTurningRadiusAfterLanding(double value)
public final double getRollDistance()
public final void setRollDistance(double value)
public ConfigurableSurfaceProcedure getSurfacePath()
This is used by the RoutePropagator
to ensure smooth connection
between procedures.
getSurfacePath
in class RouteProcedure
public ConfigurableProfile createConfigurableProfile(SurfaceSegment surfacePath)
RoutePropagator
can
use to configure this profile in relation to all other profiles along the route.createConfigurableProfile
in class RouteSegment
surfacePath
- The surface path over which the profile is defined.RoutePropagator
to
configure the route.