hades.models.mcs4
Class i4002

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

public class i4002
extends AbstractIntel4000

Der RAM-Chip eines MCS 4-Systems.

See Also:
Serialized Form

Field Summary
 java.lang.String type
           
 
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
i4002()
          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.
 void evaluate(java.lang.Object arg)
          evaluate(): called by the simulation engine on all events that concern this object.
protected  StdLogicVector getOutputData()
          Liefert die Daten, die auf den externen Bus sollen.
(package private)  RAM[] getRegister()
          Gibt Ramb?nke zur?ck.
(package private)  hades.models.mcs4.i4002.InternalRam[] getStatusRegisters()
          Gibt die 4 Status-Character zur?ck.
 java.lang.String getType()
          Gibt den Typ des Chips zur?ck.
 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.
 void setType(java.lang.String value)
          Setzt den Typ des Chips.
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, getReset, hasOutputData, 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
 

Field Detail

type

public java.lang.String type
Constructor Detail

i4002

public i4002()
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

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

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

getRegister

RAM[] getRegister()
Gibt Ramb?nke zur?ck. Wird vom i4002EditorFrame aufgerufen.

Returns:
Array aus RAMs

getStatusRegisters

hades.models.mcs4.i4002.InternalRam[] getStatusRegisters()
Gibt die 4 Status-Character zur?ck. Wird vom i4002EditorFrame aufgerufen.

Returns:
Array aus RAMs

getType

public java.lang.String getType()
Gibt den Typ des Chips zur?ck. Wird vom PropertySheet aufgerufen.

Returns:
Typbeschreibung

setType

public void setType(java.lang.String value)
Setzt den Typ des Chips. Wird vom PropertySheet aufgerufen.

Parameters:
value - Neue Typbeschreibung

evaluate

public void evaluate(java.lang.Object arg)
Description copied from class: SimObject
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 AbstractIntel4000