edu.nau.cs.scu
Class Antenna

java.lang.Object
  extended by edu.nau.cs.scu.Antenna

public class Antenna
extends java.lang.Object

This class represents one of the antenna on the device. All this class does is keep track of whether or not the antenna is selected and allow for the selection or deselection of the antenna. Quite frankly, you could achieve the same effect with a simple boolean but this solution is more organized and would allow for easy expansion of the antenna simulation if this is ever desired at a later date.

Author:
Bernard Jzexoia Avery

Constructor Summary
Antenna()
          initialize the antenna as unselected
 
Method Summary
 void deselect()
          Deselect this antenna
 void select()
          Select this antenna
 boolean status()
          Return the selected Status of the antenna.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Antenna

public Antenna()
initialize the antenna as unselected

Method Detail

select

public void select()
Select this antenna


deselect

public void deselect()
Deselect this antenna


status

public boolean status()
Return the selected Status of the antenna.

Returns:
True if the antenna is selected, false if it is not.