hades.models.complexgates
Class GenericCGate

java.lang.Object
  extended byhades.simulator.SimObject
      extended byhades.models.complexgates.GenericCGate
All Implemented Interfaces:
java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable
Direct Known Subclasses:
AOI21, AOI22, AOI31, AOI32, AOI33, OAI21, OAI22, OAI31, OAI32, OAI33

public class GenericCGate
extends SimObject
implements Simulatable, ContextToolTip, java.io.Serializable

GenericCGate: abstract base class for CMOS complexgates. This class provides the delay parameter, configure stuff, etc. Signals of the derived classes are expected to be StdLogic1164 objects.

See Also:
Serialized Form

Field Summary
protected  double t_delay
           
 
Fields inherited from class hades.simulator.SimObject
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible
 
Constructor Summary
GenericCGate()
           
 
Method Summary
 void configure()
          create and display a 'ConfigDialog' to set the parameters for a SimObject.
 void elaborate(java.lang.Object arg)
          elaborate: just store a reference to the current simulator
 double getDelay()
           
 java.lang.String getToolTip(java.awt.Point position, long millis)
          construct a (short) tool tip message for a complex gate with instance name, class name, propagation delay.
 boolean initialize(java.lang.String s)
          initialize a GenericCGate or subclass from a String that contains the integer version id and optionally the propagation delay of the gate , in seconds e.g.
 void scheduleEvent(Signal signal, double time, StdLogic1164 value, Port port)
           
 void scheduleEventAfter(Signal signal, double delay, StdLogic1164 value, Port port)
           
 void scheduleOutputValueAfter(Port port, StdLogic1164 value, double delay)
           
 void setDelay(double t)
           
 void setDelay(java.lang.String s)
           
 void write(java.io.PrintWriter ps)
           
 
Methods inherited from class hades.simulator.SimObject
constructDynamicSymbol, copy, evaluate, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hades.simulator.Simulatable
evaluate, message
 

Field Detail

t_delay

protected double t_delay
Constructor Detail

GenericCGate

public GenericCGate()
Method Detail

getDelay

public double getDelay()

setDelay

public void setDelay(double t)

setDelay

public void setDelay(java.lang.String s)

configure

public void configure()
Description copied from class: SimObject
create and display a 'ConfigDialog' to set the parameters for a SimObject. The default ConfigDialog for the base class (SimObject) itself is empty except for the 'instance name' of the SimObject.

Overrides:
configure in class SimObject

initialize

public boolean initialize(java.lang.String s)
initialize a GenericCGate or subclass from a String that contains the integer version id and optionally the propagation delay of the gate , in seconds e.g. '1001' or '1001 6.3E-9'.

Overrides:
initialize in class SimObject

write

public void write(java.io.PrintWriter ps)
Overrides:
write in class SimObject

elaborate

public void elaborate(java.lang.Object arg)
elaborate: just store a reference to the current simulator

Specified by:
elaborate in interface Simulatable
Overrides:
elaborate in class SimObject

scheduleEvent

public void scheduleEvent(Signal signal,
                          double time,
                          StdLogic1164 value,
                          Port port)

scheduleEventAfter

public void scheduleEventAfter(Signal signal,
                               double delay,
                               StdLogic1164 value,
                               Port port)

scheduleOutputValueAfter

public void scheduleOutputValueAfter(Port port,
                                     StdLogic1164 value,
                                     double delay)

getToolTip

public java.lang.String getToolTip(java.awt.Point position,
                                   long millis)
construct a (short) tool tip message for a complex gate with instance name, class name, propagation delay.

Specified by:
getToolTip in interface ContextToolTip
Overrides:
getToolTip in class SimObject