peripherals
Class LEDArray

java.lang.Object
  extended by peripherals.Peripheral
      extended by peripherals.LEDArray

public class LEDArray
extends Peripheral

This class is created in order to keep the information of eight “7LED”s. The class is inherited from the Peripheral class.

Since:
22.04.2007
Author:
maho

Field Summary
 
Fields inherited from class peripherals.Peripheral
id, isEnabled, KEY_PAD, LED_ARRAY, pic, POTENTIOMETER, SEVEN_SEGMENT_DISPLAY_ARRAY
 
Constructor Summary
LEDArray(PIC pic)
          Constructor which initializes 8 LED objects with default settings.
LEDArray(PIC pic, boolean isEnabled)
          Main constructor of LEDArray class.
 
Method Summary
 LEDPanel getLedPanel()
          This method returns the visual represantation of the LED array.
 void update()
          This abstract method communicates with the virtual card and makes necessary changes on it.
 
Methods inherited from class peripherals.Peripheral
getId, getPic, isEnabled, setEnabled, setId, setPic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LEDArray

public LEDArray(PIC pic)
Constructor which initializes 8 LED objects with default settings.

Since:
22.04.2007

LEDArray

public LEDArray(PIC pic,
                boolean isEnabled)
Main constructor of LEDArray class.

Parameters:
isEnabled - status of LEDArray
Since:
22.04.2007
Method Detail

update

public void update()
Description copied from class: Peripheral
This abstract method communicates with the virtual card and makes necessary changes on it.

Specified by:
update in class Peripheral

getLedPanel

public LEDPanel getLedPanel()
This method returns the visual represantation of the LED array.

Returns:
KeyPadPanel