hades.models.mcs4
Class i4004

java.lang.Object
  extended byhades.simulator.SimObject
      extended byhades.models.mcs4.AbstractIntel4000
          extended byhades.models.mcs4.i4004
All Implemented Interfaces:
java.lang.Cloneable, ContextToolTip, java.io.Serializable, Simulatable

public class i4004
extends AbstractIntel4000

Die CPU eines MCS 4-Systems.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class hades.models.mcs4.AbstractIntel4000
T_OH
 
Fields inherited from class hades.simulator.SimObject
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible
 
Constructor Summary
i4004()
          Standardkonstruktor.
 
Method Summary
 void configure()
          create and display a 'ConfigDialog' to set the parameters for a SimObject.
 void elaborate(java.lang.Object arg)
          elaborate(): This method is called by the simulation engine to initialize the simulation object.
(package private)  ExecutionUnit getExecutionUnit()
          Gibt das Steuerwerk zur?ck.
protected  StdLogicVector getOutputData()
          Liefert die Daten, die auf den externen Bus sollen.
protected  boolean hasOutputData()
          Gibt an, ob Daten zum Versand anstehen.
 boolean initialize(java.lang.String s)
          initialize a SimObject from a String.
protected  void receiveData(InternalState state)
          In dieser Methode k?nnen eintreffende Signale verarbeitet werden.
protected  void stateChanged(InternalState state)
          Mitteilung, dass ein neuer Subzyklus betreten wurde.
 void write(java.io.PrintWriter ps)
           
 
Methods inherited from class hades.models.mcs4.AbstractIntel4000
changeState, createEvent, createEvent, evaluate, getReset, receiveData, releaseBus, sendData, setHasOutputData, setState, stateChanged
 
Methods inherited from class hades.simulator.SimObject
constructDynamicSymbol, copy, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getPropertySheet, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getToolTip, 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
 

Constructor Detail

i4004

public i4004()
Standardkonstruktor.

Method Detail

elaborate

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

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

stateChanged

protected void stateChanged(InternalState state)
Description copied from class: AbstractIntel4000
Mitteilung, dass ein neuer Subzyklus betreten wurde.

Overrides:
stateChanged in class AbstractIntel4000
Parameters:
state - Der neue Zyklus

receiveData

protected void receiveData(InternalState state)
Description copied from class: AbstractIntel4000
In dieser Methode k?nnen eintreffende Signale verarbeitet werden.

Overrides:
receiveData in class AbstractIntel4000
Parameters:
state - Der Status, in dem die Daten eintreffen

getOutputData

protected StdLogicVector getOutputData()
Description copied from class: AbstractIntel4000
Liefert die Daten, die auf den externen Bus sollen.

Specified by:
getOutputData in class AbstractIntel4000
Returns:
StdLogicVector mit den Daten

hasOutputData

protected boolean hasOutputData()
Description copied from class: AbstractIntel4000
Gibt an, ob Daten zum Versand anstehen.

Overrides:
hasOutputData in class AbstractIntel4000
Returns:
true, wenn ja

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

getExecutionUnit

ExecutionUnit getExecutionUnit()
Gibt das Steuerwerk zur?ck. Wird vom i4004EditorFrame aufgerufen

Returns:
Das Steuerwerk

initialize

public boolean initialize(java.lang.String s)
Description copied from class: SimObject
initialize a SimObject from a String. The method returns true once all required data has been read. Until then, you should repeatedly call initialize() with additional Strings.

Overrides:
initialize in class SimObject

write

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