Class TLcdProcedureLeg
- All Implemented Interfaces:
ILcdEditableProcedureLeg
,ILcdProcedureLeg
,ILcdDataObject
- Direct Known Subclasses:
TLcdFeaturedProcedureLeg
ILcdEditableProcedureLeg
.-
Constructor Summary
ConstructorDescriptionDeprecated.Copy constructorTLcdProcedureLeg
(TLcdDataType aDataType) Creates a new instance for the given type.TLcdProcedureLeg
(TLcdDataType aDataType, String aLegType) Creates a new instance for the given type and leg type.TLcdProcedureLeg
(String aLegType) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies how the upper and lower altitudes of this leg are to be interpreted.double
Specifies the minimal altitude to be flown during this leg.double
Specifies the maximal altitude to be flown during this leg.For RF legs only, returns the center of the turn arc.double
The course to be flown during this leg, if applicable.Returns the type of this data object.double
Specifies the distance for which this leg is to be flown, if applicable.double
Specifies the amount of time this leg is to be flown, if applicable.getFix()
Specifies whether the this procedure leg ends with a fly-over or a fly-by.Returns the role of a fix in initial approach procedures (IAP).Specifies the minimal altitude to be flown during this leg.Specifies the maximal altitude to be flown during this leg.An auxiliary navaid for AF, CD, CR legs.double
getRho()
The distance between the leg terminator and the recommended navaid.Returns the route type of this leg (e.g. in transition, common route, out transition, ...).int
double
getTheta()
The radial from the recommended navaid to the leg terminator, for AF and CR leg types.Returns the transition identifier of this leg.Specifies the direction in which the aircraft must turn while flying this procedure leg.getType()
getValue
(TLcdDataProperty aProperty) Returns the value of the given property.Convenience method that returns the value of the property with the given name.boolean
hasValue
(TLcdDataProperty aProperty) Indicates whether this data object has a value for the given property.boolean
Indicates whether this data object has a value for the given property.void
setAltitudeDescription
(TLcdProcedureLegAltitudeDescription aAltitudeDescription) Sets the altitude description of this leg.void
setAltitudeLower
(double aAltitudeLower) Sets the minimal altitude for this leg.void
setAltitudeUpper
(double aAltitudeUpper) Sets the maximal altitude for this leg.void
setArcCentreFix
(ILcdPoint aArcCentreFix) For RF legs, sets the center point of the turn arc.void
setCourse
(double aCourse) Sets the course to be flown during this leg, if applicable.void
setDistance
(double aDistance) Sets the distance for which this leg should be flown, if applicable.void
setDuration
(double aDuration) Sets the amount of time for which this leg should be flown, if applicable.void
Sets the fix associated with this leg.void
setFixOverflyType
(TLcdProcedureLegFixOverflyType aFixOverflyType) Sets whether this leg should end with a fly-over or a fly-by.void
setIAPFixRole
(TLcdProcedureLegIAPFixRole aIAPFixRole) Sets the role of a fix in initial approach procedures (IAP).void
setOriginalAltitudeLower
(ILcdISO19103Measure aOriginalAltitudeLower) Sets the minimal altitude for this leg.void
setOriginalAltitudeUpper
(ILcdISO19103Measure aOriginalAltitudeUpper) Sets the maximal altitude for this leg.void
setRecommendedNavaid
(ILcdPoint aRecommendedNavaid) Sets the secondary navaid for AF, CD, CR legs.void
setRho
(double aRho) (Not used)void
setRouteType
(TLcdProcedureLegRouteType aRouteType) Sets the route type of this leg (e.g. in transition, common route, ...).void
setSequenceNumber
(int aSequenceNumber) Sets the sequence number of this leg.void
setTheta
(double aTheta) Sets the radial from the recommended navaid to the leg terminator.void
setTransitionIdentifier
(String aTransitionIdentifier) Sets the transition identifier of this leg.void
setTurnDirectionType
(TLcdProcedureLegTurnDirectionType aTurnDirectionType) Sets the direction in which the aircraft should turn when flying this leg.void
setType
(TLcdProcedureLegType aType) Sets the type of this leg.void
setValue
(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.void
Convenience method that sets the value of the property with the given name.toString()
-
Constructor Details
-
TLcdProcedureLeg
Deprecated. -
TLcdProcedureLeg
Copy constructor- Parameters:
aLeg
- The leg to copy
-
TLcdProcedureLeg
Deprecated. -
TLcdProcedureLeg
Creates a new instance for the given type.- Parameters:
aDataType
- the data type of the returned instance- Throws:
IllegalArgumentException
- ifTLcdAISDataTypes.ProcedureLeg
is not assignable from the given data type- Since:
- 10.1
- See Also:
-
TLcdProcedureLeg
Creates a new instance for the given type and leg type.- Parameters:
aDataType
- the data type of the returned instanceaLegType
- the type of ARINC leg to create.- Throws:
IllegalArgumentException
- ifTLcdAISDataTypes.ProcedureLeg
is not assignable from the given data type- Since:
- 10.1
- See Also:
-
-
Method Details
-
getDataType
Description copied from interface:ILcdDataObject
Returns the type of this data object. This can never benull
.- Specified by:
getDataType
in interfaceILcdDataObject
- Returns:
- the type of this data object
-
getValue
Description copied from interface:ILcdDataObject
Returns the value of the given property.
If the property is a collection, the returned value will never be null. If the property has not been set, an empty collection of the appropriate type will be returned (Set, List or Map).
The property must not be null, and must be declared in the
data object's type
or in one of its super types. Otherwise anIllegalArgumentException
is thrown.- Specified by:
getValue
in interfaceILcdDataObject
- Parameters:
aProperty
- the property for which the value is to be returned- Returns:
- the value of the given property for this data object
-
getValue
Description copied from interface:ILcdDataObject
Convenience method that returns the value of the property with the given name.
If more than one property exists with the given name, the most specific property should be used (this is the property defined by the most specialized type in this object's data type hierarchy). SeeILcdDataObject.getValue(TLcdDataProperty)
for more information.- Specified by:
getValue
in interfaceILcdDataObject
- Parameters:
aPropertyName
- the name of the property of which the value is to be returned- Returns:
- the value of the property with the given name
- See Also:
-
setValue
Description copied from interface:ILcdDataObject
Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's type
or in one of its super types. In other words, getDataType().getProperties().contains( aProperty ) should always be true. Otherwise, the implementation should throw anIllegalArgumentException
.- Specified by:
setValue
in interfaceILcdDataObject
- Parameters:
aProperty
- the property for which the value is to be setaValue
- the value to set- See Also:
-
setValue
Description copied from interface:ILcdDataObject
Convenience method that sets the value of the property with the given name.
If more than one property exists with the given name, the most specific property should be used (this is the property defined by the most specialized type in this object's data type hierarchy). SeeILcdDataObject.setValue(TLcdDataProperty, Object)
for more information.- Specified by:
setValue
in interfaceILcdDataObject
- Parameters:
aPropertyName
- the name of the property of which the value is to be setaValue
- the value to set
-
hasValue
Description copied from interface:ILcdDataObject
Indicates whether this data object has a value for the given property.aProperty
is from theright data type
, and this instance has a value for it: returnstrue
aProperty
is from theright data type
, and this instance has no value for it: returnsfalse
aProperty
is not from theright data type
: not allowed, you will get IllegalArgumentExceptionaProperty
isnull
: not allowed, you will get NullPointerException
- Specified by:
hasValue
in interfaceILcdDataObject
- Parameters:
aProperty
- the property for which to return whether a value is present or not.- Returns:
true
if this data object has a value for the given property,false
otherwise.
-
hasValue
Description copied from interface:ILcdDataObject
Indicates whether this data object has a value for the given property.
SeeILcdDataObject.hasValue(TLcdDataProperty)
for more information.- Specified by:
hasValue
in interfaceILcdDataObject
- Parameters:
aPropertyName
- the name of the property for which to return whether a value is present or not.- Returns:
true
if this data object has a value for the property with the given name,false
otherwise.
-
getSequenceNumber
public int getSequenceNumber()- Specified by:
getSequenceNumber
in interfaceILcdProcedureLeg
- Returns:
- The sequence number of this leg.
-
setSequenceNumber
public void setSequenceNumber(int aSequenceNumber) Description copied from interface:ILcdEditableProcedureLeg
Sets the sequence number of this leg.- Specified by:
setSequenceNumber
in interfaceILcdEditableProcedureLeg
- Parameters:
aSequenceNumber
-
-
getTransitionIdentifier
Description copied from interface:ILcdProcedureLeg
Returns the transition identifier of this leg.- Specified by:
getTransitionIdentifier
in interfaceILcdProcedureLeg
- Returns:
- the transition identifier of this leg.
-
setTransitionIdentifier
Description copied from interface:ILcdEditableProcedureLeg
Sets the transition identifier of this leg.- Specified by:
setTransitionIdentifier
in interfaceILcdEditableProcedureLeg
- Parameters:
aTransitionIdentifier
- the transition identifier of this leg.
-
getRouteType
Description copied from interface:ILcdProcedureLeg
Returns the route type of this leg (e.g. in transition, common route, out transition, ...).- Specified by:
getRouteType
in interfaceILcdProcedureLeg
-
setRouteType
Description copied from interface:ILcdEditableProcedureLeg
Sets the route type of this leg (e.g. in transition, common route, ...).- Specified by:
setRouteType
in interfaceILcdEditableProcedureLeg
- Parameters:
aRouteType
-
-
getType
- Specified by:
getType
in interfaceILcdProcedureLeg
- Returns:
- Returns the type of this leg.
-
setType
Description copied from interface:ILcdEditableProcedureLeg
Sets the type of this leg.- Specified by:
setType
in interfaceILcdEditableProcedureLeg
- Parameters:
aType
-
-
getFix
- Specified by:
getFix
in interfaceILcdProcedureLeg
- Returns:
- The fix associated with this leg.
-
setFix
Description copied from interface:ILcdEditableProcedureLeg
Sets the fix associated with this leg.- Specified by:
setFix
in interfaceILcdEditableProcedureLeg
- Parameters:
aFix
-
-
getFixOverflyType
Description copied from interface:ILcdProcedureLeg
Specifies whether the this procedure leg ends with a fly-over or a fly-by.- Specified by:
getFixOverflyType
in interfaceILcdProcedureLeg
-
setFixOverflyType
Description copied from interface:ILcdEditableProcedureLeg
Sets whether this leg should end with a fly-over or a fly-by.- Specified by:
setFixOverflyType
in interfaceILcdEditableProcedureLeg
- Parameters:
aFixOverflyType
-
-
getTurnDirectionType
Description copied from interface:ILcdProcedureLeg
Specifies the direction in which the aircraft must turn while flying this procedure leg.- Specified by:
getTurnDirectionType
in interfaceILcdProcedureLeg
-
setTurnDirectionType
Description copied from interface:ILcdEditableProcedureLeg
Sets the direction in which the aircraft should turn when flying this leg.- Specified by:
setTurnDirectionType
in interfaceILcdEditableProcedureLeg
- Parameters:
aTurnDirectionType
-
-
getArcCentreFix
Description copied from interface:ILcdProcedureLeg
For RF legs only, returns the center of the turn arc.- Specified by:
getArcCentreFix
in interfaceILcdProcedureLeg
-
setArcCentreFix
Description copied from interface:ILcdEditableProcedureLeg
For RF legs, sets the center point of the turn arc.- Specified by:
setArcCentreFix
in interfaceILcdEditableProcedureLeg
- Parameters:
aArcCentreFix
-
-
getRho
public double getRho()Description copied from interface:ILcdProcedureLeg
The distance between the leg terminator and the recommended navaid. (Not used).- Specified by:
getRho
in interfaceILcdProcedureLeg
- Returns:
- a distance in meters.
-
setRho
public void setRho(double aRho) Description copied from interface:ILcdEditableProcedureLeg
(Not used)- Specified by:
setRho
in interfaceILcdEditableProcedureLeg
- Parameters:
aRho
-
-
getTheta
public double getTheta()Description copied from interface:ILcdProcedureLeg
The radial from the recommended navaid to the leg terminator, for AF and CR leg types. The radial must be a true bearing, not a magnetic one.- Specified by:
getTheta
in interfaceILcdProcedureLeg
- Returns:
- a radial in degrees.
-
setTheta
public void setTheta(double aTheta) Description copied from interface:ILcdEditableProcedureLeg
Sets the radial from the recommended navaid to the leg terminator. The radial must be a true bearing, not a magnetic one.- Specified by:
setTheta
in interfaceILcdEditableProcedureLeg
- Parameters:
aTheta
- a radial in degrees.
-
getCourse
public double getCourse()Description copied from interface:ILcdProcedureLeg
The course to be flown during this leg, if applicable. The course must be a true bearing, not a magnetic one.- Specified by:
getCourse
in interfaceILcdProcedureLeg
- Returns:
- a course in degrees.
-
setCourse
public void setCourse(double aCourse) Description copied from interface:ILcdEditableProcedureLeg
Sets the course to be flown during this leg, if applicable. The course must be a true bearing, not a magnetic one.- Specified by:
setCourse
in interfaceILcdEditableProcedureLeg
- Parameters:
aCourse
- a course in degrees.
-
getDistance
public double getDistance()Description copied from interface:ILcdProcedureLeg
Specifies the distance for which this leg is to be flown, if applicable.- Specified by:
getDistance
in interfaceILcdProcedureLeg
- Returns:
- a distance in meters.
-
setDistance
public void setDistance(double aDistance) Description copied from interface:ILcdEditableProcedureLeg
Sets the distance for which this leg should be flown, if applicable.- Specified by:
setDistance
in interfaceILcdEditableProcedureLeg
- Parameters:
aDistance
- a distance in meters.
-
getDuration
public double getDuration()Description copied from interface:ILcdProcedureLeg
Specifies the amount of time this leg is to be flown, if applicable.- Specified by:
getDuration
in interfaceILcdProcedureLeg
- Returns:
- a duration in seconds.
-
setDuration
public void setDuration(double aDuration) Description copied from interface:ILcdEditableProcedureLeg
Sets the amount of time for which this leg should be flown, if applicable.- Specified by:
setDuration
in interfaceILcdEditableProcedureLeg
- Parameters:
aDuration
- a duration in seconds.
-
getAltitudeDescription
Description copied from interface:ILcdProcedureLeg
Specifies how the upper and lower altitudes of this leg are to be interpreted.- Specified by:
getAltitudeDescription
in interfaceILcdProcedureLeg
-
setAltitudeDescription
Description copied from interface:ILcdEditableProcedureLeg
Sets the altitude description of this leg.- Specified by:
setAltitudeDescription
in interfaceILcdEditableProcedureLeg
- Parameters:
aAltitudeDescription
-
-
getAltitudeUpper
public double getAltitudeUpper()Description copied from interface:ILcdProcedureLeg
Specifies the maximal altitude to be flown during this leg. The actual altitude that will be calculated depends on the return value ofgetAltitudeDescription()
- Specified by:
getAltitudeUpper
in interfaceILcdProcedureLeg
- Returns:
- an altitude in meters.
-
setAltitudeUpper
public void setAltitudeUpper(double aAltitudeUpper) Description copied from interface:ILcdEditableProcedureLeg
Sets the maximal altitude for this leg.- Specified by:
setAltitudeUpper
in interfaceILcdEditableProcedureLeg
- Parameters:
aAltitudeUpper
- an altitude in meters.
-
getAltitudeLower
public double getAltitudeLower()Description copied from interface:ILcdProcedureLeg
Specifies the minimal altitude to be flown during this leg. The actual altitude that will be calculated depends on the return value ofgetAltitudeDescription()
- Specified by:
getAltitudeLower
in interfaceILcdProcedureLeg
- Returns:
- an altitude in meters.
-
setAltitudeLower
public void setAltitudeLower(double aAltitudeLower) Description copied from interface:ILcdEditableProcedureLeg
Sets the minimal altitude for this leg.- Specified by:
setAltitudeLower
in interfaceILcdEditableProcedureLeg
- Parameters:
aAltitudeLower
- an altitude in meters.
-
getOriginalAltitudeUpper
Description copied from interface:ILcdProcedureLeg
Specifies the maximal altitude to be flown during this leg. The actual altitude that will be calculated depends on the return value ofgetAltitudeDescription()
.This method is similar to
ILcdProcedureLeg.getAltitudeUpper()
, since they both return the upper altitude. The difference is thatILcdProcedureLeg.getAltitudeUpper()
always returns the altitude in meters, while this method returns the value and unit of measure of the altitude as it was stored in the source file.- Specified by:
getOriginalAltitudeUpper
in interfaceILcdProcedureLeg
- Returns:
- a
ILcdISO19103Measure
which contains the value and unit of measure
-
setOriginalAltitudeUpper
Description copied from interface:ILcdEditableProcedureLeg
Sets the maximal altitude for this leg.- Specified by:
setOriginalAltitudeUpper
in interfaceILcdEditableProcedureLeg
- Parameters:
aOriginalAltitudeUpper
- aILcdISO19103Measure
which contains the value and unit of measure of the altitude
-
getOriginalAltitudeLower
Description copied from interface:ILcdProcedureLeg
Specifies the minimal altitude to be flown during this leg. The actual altitude that will be calculated depends on the return value ofgetAltitudeDescription()
.This method is similar to
ILcdProcedureLeg.getAltitudeLower()
, since they both return the lower altitude. The difference is thatILcdProcedureLeg.getAltitudeLower()
always returns the altitude in meters, while this method returns the value and unit of measure of the altitude as it was stored in the source file.- Specified by:
getOriginalAltitudeLower
in interfaceILcdProcedureLeg
- Returns:
- a
ILcdISO19103Measure
which contains the value and unit of measure
-
setOriginalAltitudeLower
Description copied from interface:ILcdEditableProcedureLeg
Sets the minimal altitude for this leg.- Specified by:
setOriginalAltitudeLower
in interfaceILcdEditableProcedureLeg
- Parameters:
aOriginalAltitudeLower
- aILcdISO19103Measure
which contains the value and unit of measure of the altitude
-
getIAPFixRole
Description copied from interface:ILcdProcedureLeg
Returns the role of a fix in initial approach procedures (IAP).- Specified by:
getIAPFixRole
in interfaceILcdProcedureLeg
- Returns:
- the IAP fix role, which will be null in SID en STAR procedures, and can also be null in IAPs.
-
setIAPFixRole
Description copied from interface:ILcdEditableProcedureLeg
Sets the role of a fix in initial approach procedures (IAP).- Specified by:
setIAPFixRole
in interfaceILcdEditableProcedureLeg
- Parameters:
aIAPFixRole
-
-
toString
-
TLcdProcedureLeg(TLcdDataType)