public abstract class ProcessorModel extends java.lang.Object implements IModel, CallFactory
ProcessorModel
class is base class for all families of microprocessor model classes.
It implements all methods of the interfaces that provide services to external users. The
responsibility to initialize member data (to create corresponding objects) is delegated to
descendant classes.Constructor and Description |
---|
ProcessorModel(java.lang.String name,
MetaModelBuilder metaModelBuilder,
AddressingMode.IInfo[] modes,
Operation.IInfo[] ops,
Memory[] registers,
Memory[] memory,
Memory[] variables,
Label[] labels) |
Modifier and Type | Method and Description |
---|---|
CallFactory |
getCallFactory()
Returns a factory for creating instances of operations, addressing modes and instruction calls
that can be simulated with the model.
|
MetaModel |
getMetaData()
Returns a meta description of the model.
|
java.lang.String |
getName()
Returns the name of the modeled microprocessor design.
|
ModelStateObserver |
getStateObserver()
Returns a model state monitor object that allows getting information on the current state of
the microprocessor mode (current register values, value in memory locations, etc)
|
InstructionCall |
newCall(Operation op) |
AddressingModeBuilder |
newMode(java.lang.String name) |
OperationBuilder |
newOp(java.lang.String name,
java.lang.String contextName) |
public ProcessorModel(java.lang.String name, MetaModelBuilder metaModelBuilder, AddressingMode.IInfo[] modes, Operation.IInfo[] ops, Memory[] registers, Memory[] memory, Memory[] variables, Label[] labels)
public final java.lang.String getName()
IModel
public final MetaModel getMetaData()
IModel
getMetaData
in interface IModel
public final ModelStateObserver getStateObserver()
IModel
getStateObserver
in interface IModel
public final CallFactory getCallFactory()
IModel
getCallFactory
in interface IModel
public final AddressingModeBuilder newMode(java.lang.String name) throws ConfigurationException
newMode
in interface CallFactory
ConfigurationException
public final OperationBuilder newOp(java.lang.String name, java.lang.String contextName) throws ConfigurationException
newOp
in interface CallFactory
ConfigurationException
public InstructionCall newCall(Operation op)
newCall
in interface CallFactory