public class StaticRouteProfile extends RouteProfile
RouteProfile designed to represent a static ProfileSegment which
does not allow configuration during the generation of the route. This is intended to facilitate
customization of the height and speed profiles in a given procedure. By using a SurfaceCurveProcedure
with this RouteProfile and a custom ProfileSegment defining the height
and speed along the path. However, note that if the ProfileSegment's TotalTime (get)
is not consistent with the SurfaceSegment's SurfaceDistance (get / set) it
will throw an exception.| Modifier and Type | Class and Description |
|---|---|
static class |
StaticRouteProfile.StaticConfigurableProfile
A helper class which takes a
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 |
|---|
StaticRouteProfile()
Construct a new instance.
|
StaticRouteProfile(ProfileSegment customSegment)
Construct a new instance based on the given profile segment corresponding to the
surface geometry to which it is attached.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigurableProfile |
createConfigurableProfile(SurfaceSegment surfacePath)
Creates an instance of
StaticRouteProfile.StaticConfigurableProfile based on the given |
ProfileSegment |
getCustomSegment()
Gets the custom profile geometry corresponding to the surface geometry of
the procedure to which this profile is attached.
|
void |
setCustomSegment(ProfileSegment value)
Sets the custom profile geometry corresponding to the surface geometry of
the procedure to which this profile is attached.
|
public StaticRouteProfile()
public StaticRouteProfile(ProfileSegment customSegment)
customSegment - The custom profile geometry.public final ProfileSegment getCustomSegment()
public final void setCustomSegment(ProfileSegment value)
public ConfigurableProfile createConfigurableProfile(SurfaceSegment surfacePath)
StaticRouteProfile.StaticConfigurableProfile based on the givencreateConfigurableProfile in class RouteProfilesurfacePath - The surface path corresponding to the custom profile.IllegalStateException - Thrown if the profile and surface geometries are inconsistent.