Class TLcdProcedureLeg
- All Implemented Interfaces:
ILcdEditableProcedureLeg,ILcdProcedureLeg,ILcdDataObject
- Direct Known Subclasses:
TLcdFeaturedProcedureLeg
ILcdEditableProcedureLeg.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.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.doubleSpecifies the minimal altitude to be flown during this leg.doubleSpecifies the maximal altitude to be flown during this leg.For RF legs only, returns the center of the turn arc.doubleThe course to be flown during this leg, if applicable.Returns the type of this data object.doubleSpecifies the distance for which this leg is to be flown, if applicable.doubleSpecifies 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.doublegetRho()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, ...).intdoublegetTheta()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.booleanhasValue(TLcdDataProperty aProperty) Indicates whether this data object has a value for the given property.booleanIndicates whether this data object has a value for the given property.voidsetAltitudeDescription(TLcdProcedureLegAltitudeDescription aAltitudeDescription) Sets the altitude description of this leg.voidsetAltitudeLower(double aAltitudeLower) Sets the minimal altitude for this leg.voidsetAltitudeUpper(double aAltitudeUpper) Sets the maximal altitude for this leg.voidsetArcCentreFix(ILcdPoint aArcCentreFix) For RF legs, sets the center point of the turn arc.voidsetCourse(double aCourse) Sets the course to be flown during this leg, if applicable.voidsetDistance(double aDistance) Sets the distance for which this leg should be flown, if applicable.voidsetDuration(double aDuration) Sets the amount of time for which this leg should be flown, if applicable.voidSets the fix associated with this leg.voidsetFixOverflyType(TLcdProcedureLegFixOverflyType aFixOverflyType) Sets whether this leg should end with a fly-over or a fly-by.voidsetIAPFixRole(TLcdProcedureLegIAPFixRole aIAPFixRole) Sets the role of a fix in initial approach procedures (IAP).voidsetOriginalAltitudeLower(ILcdISO19103Measure aOriginalAltitudeLower) Sets the minimal altitude for this leg.voidsetOriginalAltitudeUpper(ILcdISO19103Measure aOriginalAltitudeUpper) Sets the maximal altitude for this leg.voidsetRecommendedNavaid(ILcdPoint aRecommendedNavaid) Sets the secondary navaid for AF, CD, CR legs.voidsetRho(double aRho) (Not used)voidsetRouteType(TLcdProcedureLegRouteType aRouteType) Sets the route type of this leg (e.g. in transition, common route, ...).voidsetSequenceNumber(int aSequenceNumber) Sets the sequence number of this leg.voidsetTheta(double aTheta) Sets the radial from the recommended navaid to the leg terminator.voidsetTransitionIdentifier(String aTransitionIdentifier) Sets the transition identifier of this leg.voidsetTurnDirectionType(TLcdProcedureLegTurnDirectionType aTurnDirectionType) Sets the direction in which the aircraft should turn when flying this leg.voidsetType(TLcdProcedureLegType aType) Sets the type of this leg.voidsetValue(TLcdDataProperty aProperty, Object aValue) Sets the value of the given property for this data object.voidConvenience 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.ProcedureLegis 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.ProcedureLegis not assignable from the given data type- Since:
- 10.1
- See Also:
-
-
Method Details
-
getDataType
Description copied from interface:ILcdDataObjectReturns the type of this data object. This can never benull.- Specified by:
getDataTypein interfaceILcdDataObject- Returns:
- the type of this data object
-
getValue
Description copied from interface:ILcdDataObjectReturns 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 typeor in one of its super types. Otherwise anIllegalArgumentExceptionis thrown.- Specified by:
getValuein 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:ILcdDataObjectConvenience 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:
getValuein 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:ILcdDataObjectSets 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 typeor 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:
setValuein interfaceILcdDataObject- Parameters:
aProperty- the property for which the value is to be setaValue- the value to set- See Also:
-
setValue
Description copied from interface:ILcdDataObjectConvenience 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:
setValuein 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:ILcdDataObjectIndicates whether this data object has a value for the given property.aPropertyis from theright data type, and this instance has a value for it: returnstrueaPropertyis from theright data type, and this instance has no value for it: returnsfalseaPropertyis not from theright data type: not allowed, you will get IllegalArgumentExceptionaPropertyisnull: not allowed, you will get NullPointerException
- Specified by:
hasValuein interfaceILcdDataObject- Parameters:
aProperty- the property for which to return whether a value is present or not.- Returns:
trueif this data object has a value for the given property,falseotherwise.
-
hasValue
Description copied from interface:ILcdDataObjectIndicates whether this data object has a value for the given property.
SeeILcdDataObject.hasValue(TLcdDataProperty)for more information.- Specified by:
hasValuein interfaceILcdDataObject- Parameters:
aPropertyName- the name of the property for which to return whether a value is present or not.- Returns:
trueif this data object has a value for the property with the given name,falseotherwise.
-
getSequenceNumber
public int getSequenceNumber()- Specified by:
getSequenceNumberin interfaceILcdProcedureLeg- Returns:
- The sequence number of this leg.
-
setSequenceNumber
public void setSequenceNumber(int aSequenceNumber) Description copied from interface:ILcdEditableProcedureLegSets the sequence number of this leg.- Specified by:
setSequenceNumberin interfaceILcdEditableProcedureLeg- Parameters:
aSequenceNumber-
-
getTransitionIdentifier
Description copied from interface:ILcdProcedureLegReturns the transition identifier of this leg.- Specified by:
getTransitionIdentifierin interfaceILcdProcedureLeg- Returns:
- the transition identifier of this leg.
-
setTransitionIdentifier
Description copied from interface:ILcdEditableProcedureLegSets the transition identifier of this leg.- Specified by:
setTransitionIdentifierin interfaceILcdEditableProcedureLeg- Parameters:
aTransitionIdentifier- the transition identifier of this leg.
-
getRouteType
Description copied from interface:ILcdProcedureLegReturns the route type of this leg (e.g. in transition, common route, out transition, ...).- Specified by:
getRouteTypein interfaceILcdProcedureLeg
-
setRouteType
Description copied from interface:ILcdEditableProcedureLegSets the route type of this leg (e.g. in transition, common route, ...).- Specified by:
setRouteTypein interfaceILcdEditableProcedureLeg- Parameters:
aRouteType-
-
getType
- Specified by:
getTypein interfaceILcdProcedureLeg- Returns:
- Returns the type of this leg.
-
setType
Description copied from interface:ILcdEditableProcedureLegSets the type of this leg.- Specified by:
setTypein interfaceILcdEditableProcedureLeg- Parameters:
aType-
-
getFix
- Specified by:
getFixin interfaceILcdProcedureLeg- Returns:
- The fix associated with this leg.
-
setFix
Description copied from interface:ILcdEditableProcedureLegSets the fix associated with this leg.- Specified by:
setFixin interfaceILcdEditableProcedureLeg- Parameters:
aFix-
-
getFixOverflyType
Description copied from interface:ILcdProcedureLegSpecifies whether the this procedure leg ends with a fly-over or a fly-by.- Specified by:
getFixOverflyTypein interfaceILcdProcedureLeg
-
setFixOverflyType
Description copied from interface:ILcdEditableProcedureLegSets whether this leg should end with a fly-over or a fly-by.- Specified by:
setFixOverflyTypein interfaceILcdEditableProcedureLeg- Parameters:
aFixOverflyType-
-
getTurnDirectionType
Description copied from interface:ILcdProcedureLegSpecifies the direction in which the aircraft must turn while flying this procedure leg.- Specified by:
getTurnDirectionTypein interfaceILcdProcedureLeg
-
setTurnDirectionType
Description copied from interface:ILcdEditableProcedureLegSets the direction in which the aircraft should turn when flying this leg.- Specified by:
setTurnDirectionTypein interfaceILcdEditableProcedureLeg- Parameters:
aTurnDirectionType-
-
getArcCentreFix
Description copied from interface:ILcdProcedureLegFor RF legs only, returns the center of the turn arc.- Specified by:
getArcCentreFixin interfaceILcdProcedureLeg
-
setArcCentreFix
Description copied from interface:ILcdEditableProcedureLegFor RF legs, sets the center point of the turn arc.- Specified by:
setArcCentreFixin interfaceILcdEditableProcedureLeg- Parameters:
aArcCentreFix-
-
getRho
public double getRho()Description copied from interface:ILcdProcedureLegThe distance between the leg terminator and the recommended navaid. (Not used).- Specified by:
getRhoin interfaceILcdProcedureLeg- Returns:
- a distance in meters.
-
setRho
public void setRho(double aRho) Description copied from interface:ILcdEditableProcedureLeg(Not used)- Specified by:
setRhoin interfaceILcdEditableProcedureLeg- Parameters:
aRho-
-
getTheta
public double getTheta()Description copied from interface:ILcdProcedureLegThe 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:
getThetain interfaceILcdProcedureLeg- Returns:
- a radial in degrees.
-
setTheta
public void setTheta(double aTheta) Description copied from interface:ILcdEditableProcedureLegSets the radial from the recommended navaid to the leg terminator. The radial must be a true bearing, not a magnetic one.- Specified by:
setThetain interfaceILcdEditableProcedureLeg- Parameters:
aTheta- a radial in degrees.
-
getCourse
public double getCourse()Description copied from interface:ILcdProcedureLegThe course to be flown during this leg, if applicable. The course must be a true bearing, not a magnetic one.- Specified by:
getCoursein interfaceILcdProcedureLeg- Returns:
- a course in degrees.
-
setCourse
public void setCourse(double aCourse) Description copied from interface:ILcdEditableProcedureLegSets the course to be flown during this leg, if applicable. The course must be a true bearing, not a magnetic one.- Specified by:
setCoursein interfaceILcdEditableProcedureLeg- Parameters:
aCourse- a course in degrees.
-
getDistance
public double getDistance()Description copied from interface:ILcdProcedureLegSpecifies the distance for which this leg is to be flown, if applicable.- Specified by:
getDistancein interfaceILcdProcedureLeg- Returns:
- a distance in meters.
-
setDistance
public void setDistance(double aDistance) Description copied from interface:ILcdEditableProcedureLegSets the distance for which this leg should be flown, if applicable.- Specified by:
setDistancein interfaceILcdEditableProcedureLeg- Parameters:
aDistance- a distance in meters.
-
getDuration
public double getDuration()Description copied from interface:ILcdProcedureLegSpecifies the amount of time this leg is to be flown, if applicable.- Specified by:
getDurationin interfaceILcdProcedureLeg- Returns:
- a duration in seconds.
-
setDuration
public void setDuration(double aDuration) Description copied from interface:ILcdEditableProcedureLegSets the amount of time for which this leg should be flown, if applicable.- Specified by:
setDurationin interfaceILcdEditableProcedureLeg- Parameters:
aDuration- a duration in seconds.
-
getAltitudeDescription
Description copied from interface:ILcdProcedureLegSpecifies how the upper and lower altitudes of this leg are to be interpreted.- Specified by:
getAltitudeDescriptionin interfaceILcdProcedureLeg
-
setAltitudeDescription
Description copied from interface:ILcdEditableProcedureLegSets the altitude description of this leg.- Specified by:
setAltitudeDescriptionin interfaceILcdEditableProcedureLeg- Parameters:
aAltitudeDescription-
-
getAltitudeUpper
public double getAltitudeUpper()Description copied from interface:ILcdProcedureLegSpecifies the maximal altitude to be flown during this leg. The actual altitude that will be calculated depends on the return value ofgetAltitudeDescription()- Specified by:
getAltitudeUpperin interfaceILcdProcedureLeg- Returns:
- an altitude in meters.
-
setAltitudeUpper
public void setAltitudeUpper(double aAltitudeUpper) Description copied from interface:ILcdEditableProcedureLegSets the maximal altitude for this leg.- Specified by:
setAltitudeUpperin interfaceILcdEditableProcedureLeg- Parameters:
aAltitudeUpper- an altitude in meters.
-
getAltitudeLower
public double getAltitudeLower()Description copied from interface:ILcdProcedureLegSpecifies the minimal altitude to be flown during this leg. The actual altitude that will be calculated depends on the return value ofgetAltitudeDescription()- Specified by:
getAltitudeLowerin interfaceILcdProcedureLeg- Returns:
- an altitude in meters.
-
setAltitudeLower
public void setAltitudeLower(double aAltitudeLower) Description copied from interface:ILcdEditableProcedureLegSets the minimal altitude for this leg.- Specified by:
setAltitudeLowerin interfaceILcdEditableProcedureLeg- Parameters:
aAltitudeLower- an altitude in meters.
-
getOriginalAltitudeUpper
Description copied from interface:ILcdProcedureLegSpecifies 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:
getOriginalAltitudeUpperin interfaceILcdProcedureLeg- Returns:
- a
ILcdISO19103Measurewhich contains the value and unit of measure
-
setOriginalAltitudeUpper
Description copied from interface:ILcdEditableProcedureLegSets the maximal altitude for this leg.- Specified by:
setOriginalAltitudeUpperin interfaceILcdEditableProcedureLeg- Parameters:
aOriginalAltitudeUpper- aILcdISO19103Measurewhich contains the value and unit of measure of the altitude
-
getOriginalAltitudeLower
Description copied from interface:ILcdProcedureLegSpecifies 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:
getOriginalAltitudeLowerin interfaceILcdProcedureLeg- Returns:
- a
ILcdISO19103Measurewhich contains the value and unit of measure
-
setOriginalAltitudeLower
Description copied from interface:ILcdEditableProcedureLegSets the minimal altitude for this leg.- Specified by:
setOriginalAltitudeLowerin interfaceILcdEditableProcedureLeg- Parameters:
aOriginalAltitudeLower- aILcdISO19103Measurewhich contains the value and unit of measure of the altitude
-
getIAPFixRole
Description copied from interface:ILcdProcedureLegReturns the role of a fix in initial approach procedures (IAP).- Specified by:
getIAPFixRolein 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:ILcdEditableProcedureLegSets the role of a fix in initial approach procedures (IAP).- Specified by:
setIAPFixRolein interfaceILcdEditableProcedureLeg- Parameters:
aIAPFixRole-
-
toString
-
TLcdProcedureLeg(TLcdDataType)