|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectperipherals.SevenSegmentDisplay
public class SevenSegmentDisplay
This class is created in order to keep the information of a single “7-Segment Display”.
Field Summary | |
---|---|
boolean[] |
bits
SSD Data |
Constructor Summary | |
---|---|
SevenSegmentDisplay(int ssId)
Constructor with default values. |
|
SevenSegmentDisplay(int ssId,
Register ssData,
boolean isEnabled)
Main constructor of the SevenSegmentDisplay class. |
Method Summary | |
---|---|
int |
getSsId()
|
boolean |
isEnabled()
|
byte |
readData()
A SSD doesn't have a register to hold its data. |
void |
setEnabled(boolean isEnabled)
|
void |
setSsId(int ssId)
|
void |
update()
This methods alters the corresponding SSD element in the virtual card. |
void |
writeData(byte ssData)
A SSD 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[] bits
Constructor Detail |
---|
public SevenSegmentDisplay(int ssId)
ssId
- instance-unique idpublic SevenSegmentDisplay(int ssId, Register ssData, boolean isEnabled)
ssId
- instance-unique idssData
- initial data to be loadedisEnabled
- status of seven segment displayMethod Detail |
---|
public void update()
public boolean isEnabled()
public void setEnabled(boolean isEnabled)
isEnabled
- the isEnabled to setpublic byte readData()
public void writeData(byte ssData)
ssData
- the ssData to setpublic int getSsId()
public void setSsId(int ssId)
ssId
- the ssId to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |