public class TLcdFeaturedRefuelingAirspace extends TLcdRefuelingAirspace implements ILcdDefaultDisplayNameSettable
TLcdRefuelingAirspace
has all facilities to store refueling airspace related aspects.REFUELING_TRACK_PROPERTY
SEGMENTS_PROPERTY
CLOCKWISE, COUNTERCLOCKWISE, INVALID_ORIENTATION
INTERPOLATION_CIRCLE_BY_3POINTS, INTERPOLATION_CIRCLE_BY_CENTERPOINT, INTERPOLATION_CIRCULARARC_BY_3POINTS, INTERPOLATION_CIRCULARARC_BY_BULGE, INTERPOLATION_CIRCULARARC_BY_CENTERPOINT, INTERPOLATION_ELLIPTICAL, INTERPOLATION_GEODESIC, INTERPOLATION_LINEAR, INTERPOLATION_MIXED, INTERPOLATION_RHUMB
Constructor and Description |
---|
TLcdFeaturedRefuelingAirspace(int aNumberOfFeatures)
Deprecated.
|
TLcdFeaturedRefuelingAirspace(TLcdDataType aDataType)
Creates a new instance for the given type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canSetFeature(int aIndex)
Checks whether the specified feature is editable.
|
String |
getDefaultDisplayName()
Returns the
String to be used to display
the ILcdDefaultDisplayNameSettable object. |
int |
getDefaultDisplayNameIndex()
Returns the current index of the feature to be uses in the display name.
|
Object |
getFeature(int aIndex)
Returns the feature
Object at the given index. |
int |
getFeatureCount()
Returns the number of features.
|
Object |
getValue(TLcdDataProperty aProperty)
Returns the value of the given property.
|
void |
setDefaultDisplayNameIndex(int aDefaultDisplayNameIndex)
Sets the index of the feature to be used in the display name.
|
void |
setFeature(int aIndex,
Object aObject)
Sets the feature
Object at the given index. |
void |
setValue(TLcdDataProperty aProperty,
Object aValue)
Sets the value of the given property for this data object.
|
String |
toString() |
getRefuelingTrack, setRefuelingTrack
addSegment, clone, computePointSFCT, contains2D, contains2D, contains3D, contains3D, equals, getBounds, getDataType, getEndPoint, getEndTangent2D, getFocusPoint, getGeopathDiscretization, getInterpolation, getLeg, getLegCount, getLength2D, getLineSegmentIntersectionCount, getOrientation, getPoint, getPointCount, getSegment, getSegmentBySegmentNumber, getSegmentCount, getSegmentIndexForPoint, getStartPoint, getStartTangent2D, getTangent2D, getValue, hashCode, hasValue, hasValue, insertSegmentAt, invalidate, removeSegment, removeSegmentAt, setGeoPathDiscretization, setValue
finalize, getClass, notify, notifyAll, wait, wait, wait
addSegment, insertSegmentAt, removeSegment, removeSegmentAt
getSegment, getSegmentBySegmentNumber, getSegmentCount
getOrientation
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
getLeg, getLegCount
getDataType, getValue, hasValue, hasValue, setValue
computePointSFCT, getEndPoint, getEndTangent2D, getInterpolation, getLength2D, getLineSegmentIntersectionCount, getStartPoint, getStartTangent2D, getTangent2D
@Deprecated public TLcdFeaturedRefuelingAirspace(int aNumberOfFeatures)
TLcdFeaturedRefuelingAirspace(TLcdDataType)
TLcdFeaturedRefuelingAirspace
object with the
given number of features.aNumberOfFeatures
- public TLcdFeaturedRefuelingAirspace(TLcdDataType aDataType)
aDataType
- the data type of the returned instanceIllegalArgumentException
- if TLcdAISDataTypes.RefuelingAirspace
is not
assignable from the given data typeTLcdAISDataTypes.RefuelingAirspace
public Object getValue(TLcdDataProperty aProperty)
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 an IllegalArgumentException
is thrown.
getValue
in interface ILcdDataObject
getValue
in class TLcdRefuelingAirspace
aProperty
- the property for which the value is to be returnedpublic void setValue(TLcdDataProperty aProperty, Object aValue)
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 an IllegalArgumentException
.setValue
in interface ILcdDataObject
setValue
in class TLcdRefuelingAirspace
aProperty
- the property for which the value is to be setaValue
- the value to setTLcdDataType.getProperty(String)
public Object getFeature(int aIndex)
ILcdFeatured
Object
at the given index.getFeature
in interface ILcdFeatured
aIndex
- a valid feature index.Object
at the given index.ILcdFeatured.setFeature(int, java.lang.Object)
public void setFeature(int aIndex, Object aObject)
ILcdFeatured
Object
at the given index.setFeature
in interface ILcdFeatured
aIndex
- a valid feature index.aObject
- the new feature Object
.ILcdFeatured.getFeature(int)
,
ILcdFeatured.canSetFeature(int)
public int getFeatureCount()
ILcdFeatured
getFeatureCount
in interface ILcdFeatured
public boolean canSetFeature(int aIndex)
ILcdFeatured
canSetFeature
in interface ILcdFeatured
aIndex
- a valid feature index.public void setDefaultDisplayNameIndex(int aDefaultDisplayNameIndex)
ILcdDefaultDisplayNameSettable
setDefaultDisplayNameIndex
in interface ILcdDefaultDisplayNameSettable
aDefaultDisplayNameIndex
- a valid index in the list of featuresILcdDefaultDisplayNameSettable.getDefaultDisplayNameIndex()
public int getDefaultDisplayNameIndex()
ILcdDefaultDisplayNameSettable
getDefaultDisplayNameIndex
in interface ILcdDefaultDisplayNameSettable
ILcdDefaultDisplayNameSettable.setDefaultDisplayNameIndex(int)
public String getDefaultDisplayName()
ILcdDefaultDisplayNameSettable
String
to be used to display
the ILcdDefaultDisplayNameSettable
object.getDefaultDisplayName
in interface ILcdDefaultDisplayNameSettable
String
to be used to display
the ILcdDefaultDisplayNameSettable
object