public class TLcdRunwayDirection extends Object implements ILcdEditableRunwayDirection
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
ARRESTING_GEAR_PROPERTY
The arresting gear property of the runway direction.
|
static TLcdDataProperty |
DISPLACED_THRESHOLD_POINT_PROPERTY
The displaced threshold point property of the runway direction.
|
static TLcdDataProperty |
ILS_PROPERTY
The ILS property of the runway direction.
|
static TLcdDataProperty |
RUNWAY_PROPERTY
The runway property of the runway direction.
|
Constructor and Description |
---|
TLcdRunwayDirection()
Deprecated.
|
TLcdRunwayDirection(TLcdDataType aDataType)
Creates a new instance for the given type.
|
TLcdRunwayDirection(TLcdRunwayDirection aRunwayDirection)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a clone of this
TLcdRunwayDirection object. |
ILcdArrestingGear |
getArrestingGear()
Returns the arresting gear.
|
TLcdDataType |
getDataType()
Returns the type of this data object.
|
ILcdPoint |
getDisplacedThresholdPoint()
Returns the threshold point of this runway direction.
|
ILcdILS |
getILS()
returns the ILS of this runway direction.
|
ILcdRunway |
getRunway()
Returns the runway to which this direction belongs.
|
Object |
getValue(String aPropertyName)
Convenience method that returns the value of the property with the given name.
|
Object |
getValue(TLcdDataProperty aProperty)
Returns the value of the given property.
|
boolean |
hasValue(String aPropertyName)
Indicates whether this data object has a value for the given property.
|
boolean |
hasValue(TLcdDataProperty aProperty)
Indicates whether this data object has a value for the given property.
|
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setArrestingGear(ILcdArrestingGear aArrestingGear)
Specifies the arresting gear of this runway direction.
|
void |
setDisplacedThresholdPoint(ILcdPoint aThresholdPoint)
Specifies the threshold point of this runway direction.
|
void |
setHasArrestingGear(boolean aHasArrestingGear)
Specifies whether this runway direction has an
arresting gear or not.
|
void |
setHasDisplacedThresholdPoint(boolean aHasDisplacedThresholdPoint)
Specifies whether this runway direction has
a displaced threshold or not.
|
void |
setILS(ILcdILS aILS)
Specifies an ILS for this runway direction.
|
void |
setRunway(ILcdRunway aRunway)
Specifies the runway to which this direction belongs.
|
static void |
setTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setValue(String aPropertyName,
Object aValue)
Convenience method that sets the value of the property with the given name.
|
void |
setValue(TLcdDataProperty aProperty,
Object aValue)
Sets the value of the given property for this data object.
|
public static final TLcdDataProperty DISPLACED_THRESHOLD_POINT_PROPERTY
ILcdPoint
.public static final TLcdDataProperty ARRESTING_GEAR_PROPERTY
ILcdArrestingGear
.public static final TLcdDataProperty ILS_PROPERTY
ILcdILS
.public static final TLcdDataProperty RUNWAY_PROPERTY
ILcdRunway
.@Deprecated public TLcdRunwayDirection()
TLcdRunwayDirection(TLcdDataType)
TLcdUnknownDataTypes.UNKNOWN_TYPE
as type.public TLcdRunwayDirection(TLcdRunwayDirection aRunwayDirection)
aRunwayDirection
- the runwayDirection to be copied into a new objectpublic TLcdRunwayDirection(TLcdDataType aDataType)
aDataType
- the data type of the returned instanceIllegalArgumentException
- if TLcdAISDataTypes.RunwayDirection
is not
assignable from the given data typeTLcdAISDataTypes.RunwayDirection
public ILcdPoint getDisplacedThresholdPoint()
ILcdRunwayDirection
getDisplacedThresholdPoint
in interface ILcdRunwayDirection
public ILcdArrestingGear getArrestingGear()
ILcdRunwayDirection
getArrestingGear
in interface ILcdRunwayDirection
public ILcdILS getILS()
ILcdRunwayDirection
getILS
in interface ILcdRunwayDirection
public ILcdRunway getRunway()
ILcdRunwayDirection
getRunway
in interface ILcdRunwayDirection
public void setHasDisplacedThresholdPoint(boolean aHasDisplacedThresholdPoint)
ILcdEditableRunwayDirection
setHasDisplacedThresholdPoint
in interface ILcdEditableRunwayDirection
aHasDisplacedThresholdPoint
- a boolean indicating whether this runway direction has a
displaced threshold or notpublic void setDisplacedThresholdPoint(ILcdPoint aThresholdPoint)
ILcdEditableRunwayDirection
setDisplacedThresholdPoint
in interface ILcdEditableRunwayDirection
aThresholdPoint
- the threshold point of this runway directionpublic void setHasArrestingGear(boolean aHasArrestingGear)
ILcdEditableRunwayDirection
setHasArrestingGear
in interface ILcdEditableRunwayDirection
aHasArrestingGear
- a boolean indicating whether this runway direction has a
arresting gear or notpublic void setArrestingGear(ILcdArrestingGear aArrestingGear)
ILcdEditableRunwayDirection
setArrestingGear
in interface ILcdEditableRunwayDirection
aArrestingGear
- an ILcdArrestingGear
object
for the runway directionpublic void setILS(ILcdILS aILS)
ILcdEditableRunwayDirection
setILS
in interface ILcdEditableRunwayDirection
aILS
- an ILcdILS
object for the runway directionpublic void setRunway(ILcdRunway aRunway)
ILcdEditableRunwayDirection
This is a required attribute.
setRunway
in interface ILcdEditableRunwayDirection
aRunway
- the runway to which this direction belongspublic Object clone()
TLcdRunwayDirection
object.
Note: the features of the new object are a shallow clone of the features of
this object.clone
in interface ILcdRunwayDirection
clone
in class Object
TLcdRunwayDirection
object.public TLcdDataType getDataType()
ILcdDataObject
null
.getDataType
in interface ILcdDataObject
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
aProperty
- the property for which the value is to be returnedpublic Object getValue(String aPropertyName)
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.getValue
in interface ILcdDataObject
aPropertyName
- the name of the property of which the value is to be returnedTLcdDataType.getProperty(String)
public 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
aProperty
- the property for which the value is to be setaValue
- the value to setTLcdDataType.getProperty(String)
public void setValue(String aPropertyName, Object aValue)
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.setValue
in interface ILcdDataObject
aPropertyName
- the name of the property of which the value is to be setaValue
- the value to setpublic boolean isTraceOn()
true
if tracing is enabled for this class.public static void setTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public boolean hasValue(TLcdDataProperty aProperty)
ILcdDataObject
aProperty
is from the right data type
, and this instance has a value for it: returns true
aProperty
is from the right data type
, and this instance has no value for it: returns false
aProperty
is not from the right data type
: not allowed, you will get IllegalArgumentExceptionaProperty
is null
: not allowed, you will get NullPointerExceptionhasValue
in interface ILcdDataObject
aProperty
- the property for which to return whether a value is present or not.true
if this data object has a value for the given property, false
otherwise.public boolean hasValue(String aPropertyName)
ILcdDataObject
ILcdDataObject.hasValue(TLcdDataProperty)
for more information.hasValue
in interface ILcdDataObject
aPropertyName
- the name of the property for which to return whether a value is present
or not.true
if this data object has a value for the property with the given name,
false
otherwise.