public class ConstantHeightProfile extends HoldingPatternProfile
surface path
.Constructor and Description |
---|
ConstantHeightProfile()
Create a new instance.
|
ConstantHeightProfile(double speed,
double maxAcceleration,
double maxDeceleration,
double height,
RouteHeightReference heightReference)
Create a new instance with the given speed and height.
|
ConstantHeightProfile(double speed,
double maxAcceleration,
double maxDeceleration,
double height,
TerrainProvider heightReference)
Create a new instance with the given speed and height.
|
ConstantHeightProfile(double speed,
double height,
RouteHeightReference heightReference)
Create a new instance with the given speed and height.
|
ConstantHeightProfile(double speed,
double height,
TerrainProvider heightReference)
Create a new instance with the given speed and height.
|
Modifier and Type | Method and Description |
---|---|
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. |
boolean |
getAllowVariationInHeight()
Gets a value indicating whether to allow any variation in the height of the profile or whether
to maintain a constant height.
|
boolean |
getAllowVariationInSpeed()
Gets a value indicating whether to allow any variation in speed along the profile or whether
to maintain a constant speed.
|
double |
getHeight()
Gets the constant target height above the reference surface of the surface path, in meters.
|
TerrainProvider |
getHeightReferenceSurface()
Gets the reference surface above which the height is defined.
|
int |
getMinimumRevolutionsFromTime(Duration minimumTime,
SurfaceSegment initialSegment,
SurfaceSegment finalSegment,
SurfaceSegment oneRevolutionSegment)
Get the minimum number of revolutions required to spend a minimum time in a holding procedure.
|
double |
getSpeed()
Gets the target speed along the path, in meters per second.
|
double |
getThrustAcceleration()
Gets the value of the acceleration to use when increasing the speed, in meters per second squared.
|
double |
getThrustDeceleration()
Gets the value of the acceleration to use when decreasing the speed, in meters per second squared.
|
void |
setAllowVariationInHeight(boolean value)
Sets a value indicating whether to allow any variation in the height of the profile or whether
to maintain a constant height.
|
void |
setAllowVariationInSpeed(boolean value)
Sets a value indicating whether to allow any variation in speed along the profile or whether
to maintain a constant speed.
|
void |
setHeight(double value)
Sets the constant target height above the reference surface of the surface path, in meters.
|
void |
setHeightReferenceSurface(TerrainProvider value)
Sets the reference surface above which the height is defined.
|
void |
setSpeed(double value)
Sets the target speed along the path, in meters per second.
|
void |
setThrustAcceleration(double value)
Sets the value of the acceleration to use when increasing the speed, in meters per second squared.
|
void |
setThrustDeceleration(double value)
Sets the value of the acceleration to use when decreasing the speed, in meters per second squared.
|
public ConstantHeightProfile()
public ConstantHeightProfile(double speed, double height, TerrainProvider heightReference)
AllowVariationInSpeed
(get
/ set
) and AllowVariationInHeight
(get
/ set
)
properties return false).speed
- The target total speed at which to travel along the surface path.height
- The constant height above the reference surface of the surface path.heightReference
- The reference surface above which the profile is defined.public ConstantHeightProfile(double speed, double height, @Nonnull RouteHeightReference heightReference)
AllowVariationInSpeed
(get
/ set
) and AllowVariationInHeight
(get
/ set
)
properties return false).speed
- The target total speed at which to travel along the surface path.height
- The constant height above the reference surface of the surface path.heightReference
- The reference surface above which the profile is defined.public ConstantHeightProfile(double speed, double maxAcceleration, double maxDeceleration, double height, @Nonnull RouteHeightReference heightReference)
AllowVariationInSpeed
(get
/ set
) and AllowVariationInHeight
(get
/ set
)
properties return true).speed
- The target total speed at which to travel along the surface path.maxAcceleration
- The maximum acceleration to use over the course of the profile.maxDeceleration
- The maximum deceleration to use over the course of the profile.height
- The constant height above the reference surface of the surface path.heightReference
- The reference surface above which the profile is defined.public ConstantHeightProfile(double speed, double maxAcceleration, double maxDeceleration, double height, TerrainProvider heightReference)
AllowVariationInSpeed
(get
/ set
) and AllowVariationInHeight
(get
/ set
)
properties return true).speed
- The target total speed at which to travel along the surface path.maxAcceleration
- The maximum acceleration to use over the course of the profile.maxDeceleration
- The maximum deceleration to use over the course of the profile.height
- The constant height above the reference surface of the surface path.heightReference
- The reference surface above which the profile is defined.public final double getHeight()
AllowVariationInHeight
(get
/ set
) is set to true, the RoutePropagator
will
try to match the height as closely as possible, but will allow changes if necessary.public final void setHeight(double value)
AllowVariationInHeight
(get
/ set
) is set to true, the RoutePropagator
will
try to match the height as closely as possible, but will allow changes if necessary.public final double getThrustAcceleration()
public final void setThrustAcceleration(double value)
public final double getThrustDeceleration()
public final void setThrustDeceleration(double value)
public final double getSpeed()
AllowVariationInSpeed
(get
/ set
) is set to true, the RoutePropagator
will
try to match the speed as closely as possible, but will allow changes if necessary.public final void setSpeed(double value)
AllowVariationInSpeed
(get
/ set
) is set to true, the RoutePropagator
will
try to match the speed as closely as possible, but will allow changes if necessary.public final boolean getAllowVariationInSpeed()
public final void setAllowVariationInSpeed(boolean value)
public final boolean getAllowVariationInHeight()
public final void setAllowVariationInHeight(boolean value)
public final TerrainProvider getHeightReferenceSurface()
public final void setHeightReferenceSurface(TerrainProvider value)
public ConfigurableProfile createConfigurableProfile(SurfaceSegment surfacePath)
RoutePropagator
can
use to configure this profile in relation to all other profiles along the route.createConfigurableProfile
in class RouteProfile
surfacePath
- The surface path over which the profile is defined.RoutePropagator
to
configure the route.public int getMinimumRevolutionsFromTime(@Nonnull Duration minimumTime, SurfaceSegment initialSegment, SurfaceSegment finalSegment, SurfaceSegment oneRevolutionSegment)
getMinimumRevolutionsFromTime
in class HoldingPatternProfile
minimumTime
- Minimum time to spend in the holding pattern.initialSegment
- The initial segment required to enter into the hold.finalSegment
- The final segment required to exit the hold.oneRevolutionSegment
- The segment signifying one revolution around the hold.