com.ferrettronics.event
Class Ft629Event

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.ferrettronics.event.Ft629Event

public class Ft629Event
extends java.util.EventObject

The FT629Event class is an event about the state of the FT629 chip.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Ft629Event(java.lang.Object src, boolean[] s)
          Create an Ft639Event.
 
Method Summary
 boolean getSwitch(int index)
          Get the status of a switch.
 boolean[] getSwitches()
          Get the status of all switches.
 java.lang.String toString()
          Get the string representation of the event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ft629Event

public Ft629Event(java.lang.Object src,
                  boolean[] s)
Create an Ft639Event.
Parameters:
src - The source of the event.
s - An array of booleans representing state of FT629 switches.
Method Detail

getSwitch

public boolean getSwitch(int index)
Get the status of a switch. Indexed from 0.
Parameters:
index - Index of switch to check.
Returns:
true if on, false if off.

getSwitches

public boolean[] getSwitches()
Get the status of all switches.
Returns:
Array of booleans specifying switch states.

toString

public java.lang.String toString()
Get the string representation of the event.
Overrides:
toString in class java.util.EventObject
Returns:
string