|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.io.SevenSegment
hades.models.io.HexDisplay
HexDisplay - a simple subclass of SimObject that models a red seven-segment display with built-in decoder, used as a Hex-display 0 .. 9 A .. F.
Field Summary | |
(package private) int |
index
|
Fields inherited from class hades.models.io.SevenSegment |
dark_gray, display, medium_gray, segments, value_U |
Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
HexDisplay()
HexDisplay(): construct a four-input Hex seven-segment Hex display. |
Method Summary | |
void |
elaborate(java.lang.Object arg)
elaborate: check whether the display is already visible and update our symbol. |
void |
evaluate(java.lang.Object arg)
evaluate: just update our display. |
void |
setSymbol(Symbol s)
|
java.lang.String |
toString()
toString: generate a description with class name, full instance name and the current Hex input value. |
Methods inherited from class hades.simulator.SimObject |
configure, constructDynamicSymbol, copy, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, getVersionId, initialize, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setVersionId, setVisible, tearDown, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface hades.simulator.Simulatable |
message |
Field Detail |
int index
Constructor Detail |
public HexDisplay()
Method Detail |
public void setSymbol(Symbol s)
setSymbol
in class SevenSegment
public void elaborate(java.lang.Object arg)
elaborate
in interface Simulatable
elaborate
in class SevenSegment
arg
- This parameter is ignored by SevenSegmentpublic void evaluate(java.lang.Object arg)
evaluate
in interface Simulatable
evaluate
in class SevenSegment
arg
- An arbitrary and unused objectpublic java.lang.String toString()
toString
in class SevenSegment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |