public class StaticRouteProfile extends RouteProfile
RouteProfiledesigned to represent a static
ProfileSegmentwhich 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
RouteProfileand a custom
ProfileSegmentdefining the height and speed along the path. However, note that if the
get) is not consistent with the
set) it will throw an exception.
|Modifier and Type||Class and Description|
|Constructor and Description|
Construct a new instance.
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|
Creates an instance of
Gets the custom profile geometry corresponding to the surface geometry of the procedure to which this profile is attached.
Sets the custom profile geometry corresponding to the surface geometry of the procedure to which this profile is attached.
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.StaticConfigurableProfilebased on the given
surfacePath- The surface path corresponding to the custom profile.
IllegalStateException- Thrown if the profile and surface geometries are inconsistent.