hades.models.io
Class SevenSegment

java.lang.Object
  extended byhades.simulator.SimObject
      extended byhades.models.io.SevenSegment
All Implemented Interfaces:
java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable
Direct Known Subclasses:
HexDisplay, HexDisplaySmall

public class SevenSegment
extends SimObject
implements Simulatable

SevenSegment - a simple subclass of SimObject that models an red Seven-segment display.

See Also:
Serialized Form

Field Summary
protected  java.awt.Color dark_gray
           
protected  FigCompound display
           
protected  java.awt.Color medium_gray
           
protected  ColoredPolyline[] segments
           
protected  StdLogic1164 value_U
           
 
Fields inherited from class hades.simulator.SimObject
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible
 
Constructor Summary
SevenSegment()
          SevenSegment(): simple constructor
 
Method Summary
 void elaborate(java.lang.Object arg)
          elaborate(): This method is called by the simulation engine to initialize the simulation object.
 void evaluate(java.lang.Object arg)
          evaluate(): called by the simulation engine on all events that concern this object.
 void setSymbol(Symbol s)
           
 java.lang.String toString()
          toString() - the usual info method
 
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

segments

protected ColoredPolyline[] segments

display

protected FigCompound display

dark_gray

protected java.awt.Color dark_gray

medium_gray

protected java.awt.Color medium_gray

value_U

protected StdLogic1164 value_U
Constructor Detail

SevenSegment

public SevenSegment()
SevenSegment(): simple constructor

Method Detail

setSymbol

public void setSymbol(Symbol s)
Overrides:
setSymbol in class SimObject

elaborate

public void elaborate(java.lang.Object arg)
elaborate(): This method is called by the simulation engine to initialize the simulation object.

Specified by:
elaborate in interface Simulatable
Overrides:
elaborate in class SimObject
Parameters:
arg - This parameter is ignored by SevenSegment

evaluate

public void evaluate(java.lang.Object arg)
evaluate(): called by the simulation engine on all events that concern this object. The object is responsible for updating its internal state and for scheduling all pending output events.

Specified by:
evaluate in interface Simulatable
Overrides:
evaluate in class SimObject
Parameters:
arg - An arbitrary and unused object

toString

public java.lang.String toString()
toString() - the usual info method

Overrides:
toString in class SimObject