|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectperipherals.LED
public class LED
This class is created in order to keep the information of a single LED.
Field Summary | |
---|---|
boolean |
bit
LED data |
Constructor Summary | |
---|---|
LED(int ledId)
Constructor with default values. |
|
LED(int ledId,
Register ledData,
boolean isEnabled)
Main constructor of the LED class. |
Method Summary | |
---|---|
int |
getLedId()
|
boolean |
isEnabled()
|
byte |
readData()
A LED doesn't have a register to hold its data. |
void |
setEnabled(boolean isEnabled)
|
void |
setLedId(int ledId)
|
void |
update()
This methods alters the corresponding LED element in the virtual card. |
void |
writeData(byte ledData)
A LED doesn't have a register to hold its data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean bit
Constructor Detail |
---|
public LED(int ledId)
ledId
- instance-unique idpublic LED(int ledId, Register ledData, boolean isEnabled)
ledId
- instance-unique idledData
- initial data to be loadedisEnabled
- status of LEDMethod Detail |
---|
public void update()
public boolean isEnabled()
public void setEnabled(boolean isEnabled)
isEnabled
- the isEnabled to setpublic byte readData()
public void writeData(byte ledData)
ledData
- the ssData to setpublic int getLedId()
public void setLedId(int ledId)
ledId
- the ledId to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |