public static class StaticRouteProfile.StaticConfigurableProfile extends ConfigurableProfile
ProfileSegment
and a SurfaceSegment
which correspond to each other and indicates to the route design system to disallow any modification
of the user's geometry.Constructor and Description |
---|
StaticConfigurableProfile(ProfileSegment segment,
SurfaceSegment path)
Create a new instance based on the specified predefined geometry.
|
Modifier and Type | Method and Description |
---|---|
ProfileConfigurationResult |
configureProfiles(ConfigurableProfile previous,
ConfigurableProfile next,
ITrackCalculationProgress tracker)
Configure this profile in relation to the previous and next profile to make sure than
they each connect continuously.
|
void |
freezeFinalConditions()
Called by the
RoutePropagator to indicate to the profile that
it should not let other profiles update its final boundary conditions. |
void |
freezeInitialConditions()
Called by the
RoutePropagator to indicate to the profile that
it should not let other profiles update its initial boundary conditions. |
boolean |
getAllowModificationOfFinalHeight()
Gets a value indicating whether to allow other profiles to modify
the final height of this profile in order to ensure continuity.
|
boolean |
getAllowModificationOfFinalHeightRate()
Gets a value indicating whether to allow other profiles to modify
the final height rate of this profile in order to ensure continuity.
|
boolean |
getAllowModificationOfFinalSpeed()
Gets a value indicating whether to allow other profiles to modify
the final speed of this profile in order to ensure continuity.
|
boolean |
getAllowModificationOfInitialHeight()
Gets a value indicating whether to allow other profiles to modify
the initial height of this profile in order to ensure continuity.
|
boolean |
getAllowModificationOfInitialHeightRate()
Gets a value indicating whether to allow other profiles to modify
the initial height rate of this profile in order to ensure continuity.
|
boolean |
getAllowModificationOfInitialSpeed()
Gets a value indicating whether to allow other profiles to modify
the initial speed of this profile in order to ensure continuity.
|
double |
getFinalHeight()
Gets the final height of this profile above the reference surface.
|
double |
getFinalHeightRate()
Gets the final height rate for this profile.
|
ProfileSpeed |
getFinalSpeed()
Gets the final speed for this profile.
|
TerrainProvider |
getHeightReferenceSurface()
Gets the reference terrain surface from which the height is measured.
|
double |
getInitialHeight()
Gets the initial height of this profile above the reference surface.
|
double |
getInitialHeightRate()
Gets the initial height rate for this profile.
|
ProfileSpeed |
getInitialSpeed()
Gets the initial speed for this profile.
|
ProfileSegment |
getProfileSegment()
Get the time dynamic geometry of the profile after configuration.
|
double |
getTargetFinalHeight()
Gets the final height that this profile will attempt to target.
|
double |
getTargetFinalHeightRate()
Gets the final height rate that this profile will attempt to target.
|
ProfileSpeed |
getTargetFinalSpeed()
Gets the final speed that this profile will attempt to target.
|
double |
getTargetInitialHeight()
Gets the initial height that this profile will attempt to target.
|
double |
getTargetInitialHeightRate()
Gets the initial height rate that this profile will attempt to target.
|
ProfileSpeed |
getTargetInitialSpeed()
Gets the initial speed that this profile will attempt to target.
|
void |
setFinalHeight(double value)
Sets the final height of this profile above the reference surface.
|
void |
setFinalHeightRate(double value)
Sets the final height rate for this profile.
|
void |
setFinalSpeed(ProfileSpeed value)
Sets the final speed for this profile.
|
void |
setInitialHeight(double value)
Sets the initial height of this profile above the reference surface.
|
void |
setInitialHeightRate(double value)
Sets the initial height rate for this profile.
|
void |
setInitialSpeed(ProfileSpeed value)
Sets the initial speed for this profile.
|
getProfileComputationalWeight
public StaticConfigurableProfile(ProfileSegment segment, SurfaceSegment path)
segment
- The profile geometry.path
- The surface path geometrypublic ProfileSegment getProfileSegment()
getProfileSegment
in class ConfigurableProfile
public ProfileConfigurationResult configureProfiles(ConfigurableProfile previous, ConfigurableProfile next, ITrackCalculationProgress tracker)
configureProfiles
in class ConfigurableProfile
previous
- The previous profile to configure.next
- The next profile to configure.tracker
- A progress tracker to track the progress of the route configuration, or null
.public double getInitialHeight()
getInitialHeight
in class ConfigurableProfile
public void setInitialHeight(double value)
setInitialHeight
in class ConfigurableProfile
public double getFinalHeight()
getFinalHeight
in class ConfigurableProfile
public void setFinalHeight(double value)
setFinalHeight
in class ConfigurableProfile
public double getTargetInitialHeight()
getTargetInitialHeight
in class ConfigurableProfile
public double getTargetFinalHeight()
getTargetFinalHeight
in class ConfigurableProfile
public TerrainProvider getHeightReferenceSurface()
getHeightReferenceSurface
in class ConfigurableProfile
public boolean getAllowModificationOfInitialHeight()
getAllowModificationOfInitialHeight
in class ConfigurableProfile
public boolean getAllowModificationOfFinalHeight()
getAllowModificationOfFinalHeight
in class ConfigurableProfile
public ProfileSpeed getInitialSpeed()
getInitialSpeed
in class ConfigurableProfile
public void setInitialSpeed(ProfileSpeed value)
setInitialSpeed
in class ConfigurableProfile
public ProfileSpeed getFinalSpeed()
getFinalSpeed
in class ConfigurableProfile
public void setFinalSpeed(ProfileSpeed value)
setFinalSpeed
in class ConfigurableProfile
public ProfileSpeed getTargetInitialSpeed()
getTargetInitialSpeed
in class ConfigurableProfile
public ProfileSpeed getTargetFinalSpeed()
getTargetFinalSpeed
in class ConfigurableProfile
public boolean getAllowModificationOfInitialSpeed()
getAllowModificationOfInitialSpeed
in class ConfigurableProfile
public boolean getAllowModificationOfFinalSpeed()
getAllowModificationOfFinalSpeed
in class ConfigurableProfile
public double getInitialHeightRate()
getInitialHeightRate
in class ConfigurableProfile
public void setInitialHeightRate(double value)
setInitialHeightRate
in class ConfigurableProfile
public double getFinalHeightRate()
getFinalHeightRate
in class ConfigurableProfile
public void setFinalHeightRate(double value)
setFinalHeightRate
in class ConfigurableProfile
public double getTargetInitialHeightRate()
getTargetInitialHeightRate
in class ConfigurableProfile
public double getTargetFinalHeightRate()
getTargetFinalHeightRate
in class ConfigurableProfile
public boolean getAllowModificationOfInitialHeightRate()
getAllowModificationOfInitialHeightRate
in class ConfigurableProfile
public boolean getAllowModificationOfFinalHeightRate()
getAllowModificationOfFinalHeightRate
in class ConfigurableProfile
public void freezeInitialConditions()
RoutePropagator
to indicate to the profile that
it should not let other profiles update its initial boundary conditions.freezeInitialConditions
in class ConfigurableProfile
public void freezeFinalConditions()
RoutePropagator
to indicate to the profile that
it should not let other profiles update its final boundary conditions.freezeFinalConditions
in class ConfigurableProfile