|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hades.signals.Signal hades.models.ruge.IntegerSignal
IntegerSignal - a class that models an Signal that transports Integer values
Field Summary | |
java.lang.Integer |
defaultValue
|
Fields inherited from class hades.signals.Signal |
debug, design, DFS, driverValues, EA, glowMode, isRoot, label, lastChangeTime, lastValue, name, portPositionTable, probe, probeSymbol, receivers, segments, senders, simulator, solderDots, st, VA, value, vertexTable, VI, visible, visited |
Constructor Summary | |
IntegerSignal()
|
|
IntegerSignal(java.lang.String name)
|
|
IntegerSignal(java.lang.String name,
Port[] senders,
Port[] receivers)
|
Method Summary | |
void |
addSegment(WireSegment ws)
add a new segment to this Signal. |
void |
animate()
called after the value of this Signal changed. |
void |
elaborate(java.lang.Object arg)
elaborate(): called at the start of the simulation to initialize this signal. |
void |
evaluate(java.lang.Object arg)
evaluate |
java.awt.Color |
getColor()
get the color to be used for drawing the WireSegments and SolderDots for this Signal during animation. |
static Signal |
getDefaultValue()
|
void |
handleGlowMode()
do whatever is necessary to update our graphical representation when the glow mode state changed... |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.Integer defaultValue
Constructor Detail |
public IntegerSignal()
public IntegerSignal(java.lang.String name)
public IntegerSignal(java.lang.String name, Port[] senders, Port[] receivers)
Method Detail |
public void addSegment(WireSegment ws)
Signal
public void addSegment( WireSegment ws ) { super.addSegment( ws ); ws.getAttributes().lineWidth = 160; }
addSegment
in class Signal
public static Signal getDefaultValue()
public void elaborate(java.lang.Object arg)
elaborate
in interface Simulatable
elaborate
in class Signal
public void evaluate(java.lang.Object arg)
evaluate
in interface Simulatable
evaluate
in class Signal
arg
- An object with the new value for this signal.public java.awt.Color getColor()
getColor
in interface ColorSource
getColor
in class Signal
public void handleGlowMode()
handleGlowMode
in class Signal
public void animate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |