uavsim.navigationmodel
Class NavigationChart

java.lang.Object
  extended by uavsim.navigationmodel.NavigationChart

public class NavigationChart
extends java.lang.Object

Defines a collection of navigation chart elements.

Author:
Dan Tappan [18.07.11]

Field Summary
private  java.util.List<A_ChartElement> _elements
          the elements
 
Constructor Summary
NavigationChart()
           
 
Method Summary
 void addElement(A_ChartElement element)
          Adds an element.
<_FREQUENCY_ extends A_Frequency<_FREQUENCY_>>
A_ChartElementTuneable<_FREQUENCY_>
getElement(_FREQUENCY_ frequency)
          Gets a tuneable element.
 A_ChartElement getElement(java.lang.String id)
          Gets an element.
private
<_FREQUENCY_ extends A_Frequency<_FREQUENCY_>>
A_ChartElementTuneable<_FREQUENCY_>
getElement2(_FREQUENCY_ frequency)
          Gets a tuneable element.
 java.util.List<A_ChartElement> getElements()
          Gets the elements.
<_FREQUENCY_ extends A_Frequency<_FREQUENCY_>>
boolean
hasElement(_FREQUENCY_ frequency)
          Returns whether there is a tuneable element on a frequency.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_elements

private final java.util.List<A_ChartElement> _elements
the elements

Constructor Detail

NavigationChart

public NavigationChart()
Method Detail

addElement

public void addElement(A_ChartElement element)
Adds an element.

Parameters:
element - - the element

getElement

public <_FREQUENCY_ extends A_Frequency<_FREQUENCY_>> A_ChartElementTuneable<_FREQUENCY_> getElement(_FREQUENCY_ frequency)
Gets a tuneable element.

Type Parameters:
_FREQUENCY_ - - the frequency type
Parameters:
frequency - - the element frequency
Returns:
the element

getElement

public A_ChartElement getElement(java.lang.String id)
Gets an element.

Parameters:
id - - the element identifier
Returns:
the element

getElement2

private <_FREQUENCY_ extends A_Frequency<_FREQUENCY_>> A_ChartElementTuneable<_FREQUENCY_> getElement2(_FREQUENCY_ frequency)
Gets a tuneable element.

Type Parameters:
_FREQUENCY_ - - the frequency type
Parameters:
frequency - - the element frequency
Returns:
the element, or null if there is not one

getElements

public java.util.List<A_ChartElement> getElements()
Gets the elements.

Returns:
the elements as an unmodifiable list

hasElement

public <_FREQUENCY_ extends A_Frequency<_FREQUENCY_>> boolean hasElement(_FREQUENCY_ frequency)
Returns whether there is a tuneable element on a frequency.

Type Parameters:
_FREQUENCY_ - - the frequency type
Parameters:
frequency - - the element frequency
Returns:
the state

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object