public class TLcdILS extends Object implements ILcdEditableILS
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
DME_PROPERTY
The DME property of the ILS type.
|
static TLcdDataProperty |
GLIDEPATH_PROPERTY
The GlidePath property of the ILS type.
|
static TLcdDataProperty |
LOCALIZER_PROPERTY
The Localizer property of the ILS type.
|
static TLcdDataProperty |
MARKERS_PROPERTY
The Markers property of the ILS type.
|
Constructor and Description |
---|
TLcdILS()
Deprecated.
|
TLcdILS(TLcdDataType aDataType)
Creates a new instance for the given type.
|
Modifier and Type | Method and Description |
---|---|
void |
addMarker(ILcdMarker aMarker)
Adds a marker to the this ILS.
|
ILcdBounds |
getBounds()
The bounds of the ILS is the smallest rectangle
containing the localizer, glide path, DME an all markers
attached to this ILS.
|
TLcdDataType |
getDataType()
Returns the type of this data object.
|
ILcdDME |
getDME()
Returns the Distance Measuring Equipment (DME) associated with this ILS.
|
ILcdGlidePath |
getGlidePath()
Returns the glide path of this ILS.
|
ILcdLocalizer |
getLocalizer()
Returns the localizer of this ILS.
|
ILcdMarker |
getMarker(int aIndex)
Returns the marker at the given index.
|
int |
getMarkerCount()
Returns the number of marker beacons associated with this ILS installation.
|
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.
|
void |
removeMarker(ILcdMarker aMarker)
Removes the given marker.
|
void |
setDME(ILcdDME aDME)
Specifies the DME of this ILS.
|
void |
setGlidePath(ILcdGlidePath aGlidePath)
Specifies the glide path of this ILS.
|
void |
setLocalizer(ILcdLocalizer aLocalizer)
Specifies the localizer of this ILS.
|
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 GLIDEPATH_PROPERTY
ILcdGLidePath
.public static final TLcdDataProperty MARKERS_PROPERTY
ILcdMarker
.public static final TLcdDataProperty LOCALIZER_PROPERTY
ILcdLocalizer
.public static final TLcdDataProperty DME_PROPERTY
ILcdDME
.@Deprecated public TLcdILS()
TLcdILS(TLcdDataType)
TLcdILS
object.public TLcdILS(TLcdDataType aDataType)
aDataType
- the data type of the returned instanceIllegalArgumentException
- if TLcdAISDataTypes.ILS
is not assignable from the
given data typeTLcdAISDataTypes.ILS
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 ILcdGlidePath getGlidePath()
ILcdILS
A glide path (or glide slope) is a transmitter that provides vertical guidance to aircraft approaching a runway.
getGlidePath
in interface ILcdILS
ILcdGlidePath
interface
or null if no glide path was specifiedpublic ILcdLocalizer getLocalizer()
ILcdILS
A localizer is a transmitter that provides lateral guidance to aircraft approaching a runway.
getLocalizer
in interface ILcdILS
ILcdLocalizer
interface
or null if no localizer was specifiedpublic ILcdMarker getMarker(int aIndex)
ILcdILS
A marker beacon is located at known distances along the final approach course of the ILS to provide position information. Marker beacons transmit a cone-shaped signal on a frequency of 75MHz uniquely coded to identify each type of beacon.
public int getMarkerCount()
ILcdILS
getMarkerCount
in interface ILcdILS
public ILcdDME getDME()
ILcdILS
public void setGlidePath(ILcdGlidePath aGlidePath)
ILcdEditableILS
setGlidePath
in interface ILcdEditableILS
aGlidePath
- the glide path transmitter used for
vertical guidanceILcdILS.getGlidePath()
public void setLocalizer(ILcdLocalizer aLocalizer)
ILcdEditableILS
setLocalizer
in interface ILcdEditableILS
aLocalizer
- the localizer transmitter used for
lateral guidanceILcdILS.getLocalizer()
public void addMarker(ILcdMarker aMarker)
ILcdEditableILS
addMarker
in interface ILcdEditableILS
aMarker
- a marker transmitter used to identify
a predetermined point along the runway approachILcdILS.getMarker(int)
public void setDME(ILcdDME aDME)
ILcdEditableILS
setDME
in interface ILcdEditableILS
aDME
- the DME providing distance information to aircraft
conducting an ILS approachILcdILS.getDME()
public void removeMarker(ILcdMarker aMarker)
ILcdEditableILS
removeMarker
in interface ILcdEditableILS
aMarker
- the marker to be removedpublic ILcdBounds getBounds()
getBounds
in interface ILcdBounded
TLcdILS
objectpublic 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.