Package com.luciad.ais.model.procedure
Class TLcdProcedure
java.lang.Object
com.luciad.ais.model.procedure.TLcdProcedure
- All Implemented Interfaces:
ILcdEditableProcedure,ILcdProcedure,ILcdDataObject
- Direct Known Subclasses:
TLcdFeaturedProcedure,TLcdHolding
An implementation of
ILcdEditableProcedure.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyThe Aerodrome property of the procedure type.static final TLcdDataPropertyThe Designator property of the procedure type.static final TLcdDataPropertyThe Legs property of the procedure type.static final TLcdDataPropertyThe Type property of the procedure type. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.TLcdProcedure(TLcdDataType aDataType) Creates a new instance for the given type. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLeg(ILcdProcedureLeg aLeg) Adds a leg to this procedure.Creates a copy of this procedure which implementsILcdEditableProcedure.Returns the type of this data object.getLeg(int aIndex) intgetType()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.voidinsertSegmentAt(ILcdProcedureLeg aLeg, int aIndex) Inserts the given leg into the procedure at the specified index.booleanremoveLeg(ILcdProcedureLeg aLeg) Removes the specified leg from this procedure.voidsetAerodrome(ILcdAerodrome aAerodrome) Sets theILcdAerodromeassociated with this procedure.voidsetDesignator(String aDesignator) Sets the unique identifier of this procedure to the given string.voidsetType(TLcdProcedureType aType) Sets the type of this procedure.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.
-
Field Details
-
DESIGNATOR_PROPERTY
The Designator property of the procedure type. Values of this property are of typeString. -
LEGS_PROPERTY
The Legs property of the procedure type. Values of this property are Lists of objects of typeILcdProcedureLeg. -
AERODROME_PROPERTY
The Aerodrome property of the procedure type. Values of this property are of typeILcdAerodrome. -
TYPE_PROPERTY
The Type property of the procedure type. Values of this property are of typeTLcdProcedureType.
-
-
Constructor Details
-
TLcdProcedure
Deprecated. -
TLcdProcedure
Creates a new instance for the given type.- Parameters:
aDataType- the data type of the returned instance- Throws:
IllegalArgumentException- ifTLcdAISDataTypes.Procedureis 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.
-
getDesignator
- Specified by:
getDesignatorin interfaceILcdProcedure- Returns:
- The unique identifier of this procedure.
-
setDesignator
Description copied from interface:ILcdEditableProcedureSets the unique identifier of this procedure to the given string.- Specified by:
setDesignatorin interfaceILcdEditableProcedure- Parameters:
aDesignator- the unique identifier of this procedure to the given string.
-
getType
- Specified by:
getTypein interfaceILcdProcedure- Returns:
- The type of this procedure (SID, STAR, IAP)
-
setType
Description copied from interface:ILcdEditableProcedureSets the type of this procedure.- Specified by:
setTypein interfaceILcdEditableProcedure- Parameters:
aType- Either SID, STAR or IAP.
-
getLegCount
public int getLegCount()- Specified by:
getLegCountin interfaceILcdProcedure- Returns:
- The number of legs in this procedure.
-
getLeg
- Specified by:
getLegin interfaceILcdProcedure- Parameters:
aIndex-- Returns:
- The
ILcdProcedureLegat the given index. - Throws:
IndexOutOfBoundsException
-
addLeg
Description copied from interface:ILcdEditableProcedureAdds a leg to this procedure.- Specified by:
addLegin interfaceILcdEditableProcedure- Parameters:
aLeg- the leg to be added.
-
removeLeg
Description copied from interface:ILcdEditableProcedureRemoves the specified leg from this procedure.- Specified by:
removeLegin interfaceILcdEditableProcedure- Parameters:
aLeg- the leg to be removed.- Returns:
- true if the leg was successfully removed.
-
insertSegmentAt
Description copied from interface:ILcdEditableProcedureInserts the given leg into the procedure at the specified index.- Specified by:
insertSegmentAtin interfaceILcdEditableProcedure- Parameters:
aLeg- the leg to be added.aIndex- the index at which to insert the new leg.
-
getAerodrome
- Specified by:
getAerodromein interfaceILcdProcedure- Returns:
- The
ILcdAerodromeassociated with this procedure.
-
setAerodrome
Description copied from interface:ILcdEditableProcedureSets theILcdAerodromeassociated with this procedure.- Specified by:
setAerodromein interfaceILcdEditableProcedure- Parameters:
aAerodrome- theILcdAerodromeassociated with this procedure.
-
cloneAsEditableProcedure
Description copied from interface:ILcdProcedureCreates a copy of this procedure which implementsILcdEditableProcedure. The copy may be a shallow one. This method is used to assemble new procedures out of legs from existing ones.- Specified by:
cloneAsEditableProcedurein interfaceILcdProcedure- Returns:
- An
ILcdEditableProcedure.
-
TLcdProcedure(TLcdDataType)