uavsim.computers
Class ADFComputer

java.lang.Object
  extended by uavsim.computers.A_NavigationComputer
      extended by uavsim.computers.ADFComputer

public class ADFComputer
extends A_NavigationComputer

Defines a navigation computer that links an ADF (automatic direction finder) NDB (nondirectional beacon) station, receiver, and instrument.

Author:
Dan Tappan [23.10.11]

Field Summary
private  AutomaticDirectionFinder _adfInstrument
          the ADF instrument
private  ADFReceiver _adfReceiver
          the ADF receiver
 
Fields inherited from class uavsim.computers.A_NavigationComputer
_chart
 
Constructor Summary
ADFComputer(NavigationChart chart, ADFReceiver adfReceiver, AutomaticDirectionFinder adfInstrument)
          Creates an ADF computer.
 
Method Summary
 AutomaticDirectionFinder getADFInstrument()
          Gets the ADF instrument.
 ADFReceiver getADFReceiver()
          Gets the ADF receiver.
 java.lang.String toString()
          
 void update(SevenDOFDescriptor sevenDOFDescriptor)
          Updates the instrument based on the computed navigation information.
 
Methods inherited from class uavsim.computers.A_NavigationComputer
getNavigationChart, refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_adfInstrument

private final AutomaticDirectionFinder _adfInstrument
the ADF instrument


_adfReceiver

private final ADFReceiver _adfReceiver
the ADF receiver

Constructor Detail

ADFComputer

public ADFComputer(NavigationChart chart,
                   ADFReceiver adfReceiver,
                   AutomaticDirectionFinder adfInstrument)
Creates an ADF computer.

Parameters:
chart - - the navigation chart
adfReceiver - - the ADF receiver
adfInstrument - - the ADF instrument
Method Detail

getADFInstrument

public AutomaticDirectionFinder getADFInstrument()
Gets the ADF instrument.

Returns:
the instrument

getADFReceiver

public ADFReceiver getADFReceiver()
Gets the ADF receiver.

Returns:
the receiver

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

update

public void update(SevenDOFDescriptor sevenDOFDescriptor)
Updates the instrument based on the computed navigation information.

Specified by:
update in class A_NavigationComputer
Parameters:
sevenDOFDescriptor - - the UAV 7-DOF descriptor