|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthades.simulator.SimObject
hades.models.io.AsciiDisplay
AsciiDisplay - a simple subclass of SimObject that models a red 20-segment display, used as a ASCII-display 0 .. 9 A .. Z ... The display decodes the ASCII values from 32 to 96, other input values will result in a dark display.
| Field Summary | |
protected java.awt.Color |
dark_gray
|
int |
DEFAULT
|
protected FigCompound |
display
|
(package private) int |
index
|
protected java.awt.Color |
medium_gray
|
protected ColoredPolyline[] |
segments
|
protected StdLogic1164 |
undefined
|
| Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
| Constructor Summary | |
AsciiDisplay()
AsciiDisplay: construct a new ASCII display |
|
| Method Summary | |
void |
elaborate(java.lang.Object arg)
elaborate: this just calls show() to initialize our symbol. |
void |
evaluate(java.lang.Object arg)
evaluate: update our symbol to show any new value. |
void |
setSymbol(Symbol s)
setSymbol: set a new symbol and initialize it |
java.lang.String |
toString()
toString: generate a String with class name, full instance name, and current ASCII 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 |
| Field Detail |
int index
public final int DEFAULT
protected ColoredPolyline[] segments
protected FigCompound display
protected java.awt.Color dark_gray
protected java.awt.Color medium_gray
protected StdLogic1164 undefined
| Constructor Detail |
public AsciiDisplay()
| Method Detail |
public void setSymbol(Symbol s)
setSymbol in class SimObjectpublic void elaborate(java.lang.Object arg)
elaborate in interface Simulatableelaborate in class SimObjectpublic void evaluate(java.lang.Object arg)
evaluate in interface Simulatableevaluate in class SimObjectarg - an arbitrary object argumentpublic java.lang.String toString()
toString in class SimObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||