uavsim.navigationmodel
Class ILSAssembly

java.lang.Object
  extended by uavsim.navigationmodel.A_ChartElement
      extended by uavsim.navigationmodel.A_ChartElementTuneable<VOR_ILS_DME_Frequency>
          extended by uavsim.navigationmodel.ILSAssembly

public class ILSAssembly
extends A_ChartElementTuneable<VOR_ILS_DME_Frequency>

Defines an assembly of ILS subcomponents: localizer (with implied DME), glideslope, and inner, middle, and outer markers.

These subcomponents should not be added to a chart directly because they are processed only as members of this assembly.

Author:
Dan Tappan [28.10.11]

Field Summary
private  Glideslope _glideslope
          the glideslope
private  Localizer _localizer
          the localizer
private  InnerMarker _markerInner
          the inner marker
private  MiddleMarker _markerMiddle
          the middle marker
private  OuterMarker _markerOuter
          the outer marker
private static Scaler NAUTICAL_MILES_PER_MINUTE
          the number of nautical miles in a minute of latitude
 
Fields inherited from class uavsim.navigationmodel.A_ChartElementTuneable
_designator, _frequency
 
Fields inherited from class uavsim.navigationmodel.A_ChartElement
_anchor, _coordinate, _id
 
Constructor Summary
ILSAssembly(java.lang.String id, java.lang.String designator, VOR_ILS_DME_Frequency frequency, CoordinateWorld3D origin, AngleNavigational azimuth, Radius radiusMarkerInner, Radius radiusMarkerMiddle, Radius radiusMarkerOuter)
          Builds the subcomponents of an ILS assembly.
 
Method Summary
 java.awt.Color getColor()
          Gets the color of the glyph.
 Glideslope getGlideslope()
          Gets the glideslope.
 Localizer getLocalizer()
          Gets the localizer.
 InnerMarker getMarkerInner()
          Gets the inner marker.
 MiddleMarker getMarkerMiddle()
          Gets the middle marker.
 OuterMarker getMarkerOuter()
          Gets the outer marker.
 void render(java.awt.Graphics2D graphics, I_WorldMappable mapper, boolean areDetailsVisible)
          Renders the glyph.
 java.lang.String toString()
          
 
Methods inherited from class uavsim.navigationmodel.A_ChartElementTuneable
getDesignator, getFrequency, hasFrequency
 
Methods inherited from class uavsim.navigationmodel.A_ChartElement
areDetailsVisible, getCoordinate, getID, renderLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_glideslope

private final Glideslope _glideslope
the glideslope


_localizer

private final Localizer _localizer
the localizer


_markerInner

private final InnerMarker _markerInner
the inner marker


_markerMiddle

private final MiddleMarker _markerMiddle
the middle marker


_markerOuter

private final OuterMarker _markerOuter
the outer marker


NAUTICAL_MILES_PER_MINUTE

private static final Scaler NAUTICAL_MILES_PER_MINUTE
the number of nautical miles in a minute of latitude

Constructor Detail

ILSAssembly

public ILSAssembly(java.lang.String id,
                   java.lang.String designator,
                   VOR_ILS_DME_Frequency frequency,
                   CoordinateWorld3D origin,
                   AngleNavigational azimuth,
                   Radius radiusMarkerInner,
                   Radius radiusMarkerMiddle,
                   Radius radiusMarkerOuter)
Builds the subcomponents of an ILS assembly. Subcomponent IDs take the suffix /loc, /gs, /im, /mm, or /om.

Parameters:
id - - the unique element identifier and base ID for the subcomponents
designator - - the station designator of the localizer and glideslope
frequency - - the station frequency of this unit and all its subcomponents
azimuth - - the azimuth of the localizer and glideslope
origin - - the coordinate of the localizer and glideslope
radiusMarkerInner - - the radius to the inner marker in nautical miles
radiusMarkerMiddle - - the radius to the middle marker in nautical miles
radiusMarkerOuter - - the radius to the outer marker in nautical miles
Method Detail

getColor

public java.awt.Color getColor()
Gets the color of the glyph. This always returns black because the ILS unit does not have its own rendering.

Specified by:
getColor in class A_ChartElement
Returns:
the color

getGlideslope

public Glideslope getGlideslope()
Gets the glideslope.

Returns:
the glideslope

getLocalizer

public Localizer getLocalizer()
Gets the localizer.

Returns:
the localizer

getMarkerInner

public InnerMarker getMarkerInner()
Gets the inner marker.

Returns:
the inner marker

getMarkerMiddle

public MiddleMarker getMarkerMiddle()
Gets the middle marker.

Returns:
the middle marker

getMarkerOuter

public OuterMarker getMarkerOuter()
Gets the outer marker.

Returns:
the outer marker

render

public void render(java.awt.Graphics2D graphics,
                   I_WorldMappable mapper,
                   boolean areDetailsVisible)
Renders the glyph. Renders the subcomponents.

Overrides:
render in class A_ChartElement
Parameters:
graphics - - the graphics context
mapper - - the mapper that translates screen and world coordinates
areDetailsVisible - - whether low-level details that would clutter the display should be rendered

toString

public java.lang.String toString()

Overrides:
toString in class A_ChartElementTuneable<VOR_ILS_DME_Frequency>