public final class MetaModel
extends java.lang.Object
MetaModel
class stores information on the model and provides methods to access it.
The information includes the list of instructions, the list of memory resources (registers,
memory) and the list of test situations (behavioral properties of the instructions).Constructor and Description |
---|
MetaModel(java.util.Collection<MetaAddressingMode> modes,
java.util.Collection<MetaGroup> modeGroups,
java.util.Collection<MetaOperation> operations,
java.util.Collection<MetaGroup> operationGroups,
java.util.Collection<MetaLocationStore> registers,
java.util.Collection<MetaLocationStore> memory) |
MetaModel(java.util.Map<java.lang.String,MetaAddressingMode> modes,
java.util.Map<java.lang.String,MetaGroup> modeGroups,
java.util.Map<java.lang.String,MetaOperation> operations,
java.util.Map<java.lang.String,MetaGroup> operationGroups,
java.util.Map<java.lang.String,MetaLocationStore> registers,
java.util.Map<java.lang.String,MetaLocationStore> memory) |
Modifier and Type | Method and Description |
---|---|
MetaAddressingMode |
getAddressingMode(java.lang.String name)
Returns metadata for the specified addressing mode.
|
MetaGroup |
getAddressingModeGroup(java.lang.String name)
Returns metadata for the specified addressing mode group (defined as OR rules).
|
java.lang.Iterable<MetaGroup> |
getAddressingModeGroups()
Returns addressing mode groups (modes defined as OR rules).
|
java.lang.Iterable<MetaAddressingMode> |
getAddressingModes()
Returns an iterator for the collection of addressing modes
(excluding modes defined as OR rules).
|
MetaLocationStore |
getMemoryStore(java.lang.String name)
Returns metadata for the specified memory store location.
|
java.lang.Iterable<MetaLocationStore> |
getMemoryStores()
Returns an iterator for the collection of memory store locations.
|
MetaOperation |
getOperation(java.lang.String name)
Returns metadata for the specified operation.
|
MetaGroup |
getOperationGroup(java.lang.String name)
Returns metadata for the specified operation group.
|
java.lang.Iterable<MetaGroup> |
getOperationGroups()
Returns operations groups (operations defined as OR rules).
|
java.lang.Iterable<MetaOperation> |
getOperations()
Returns an iterator for the collection of operations
(excluding operations defined as OR rules).
|
MetaLocationStore |
getRegister(java.lang.String name)
Returns metadata for the specified register file.
|
java.lang.Iterable<MetaLocationStore> |
getRegisters()
Returns an iterator for the collection of registers.
|
public MetaModel(java.util.Map<java.lang.String,MetaAddressingMode> modes, java.util.Map<java.lang.String,MetaGroup> modeGroups, java.util.Map<java.lang.String,MetaOperation> operations, java.util.Map<java.lang.String,MetaGroup> operationGroups, java.util.Map<java.lang.String,MetaLocationStore> registers, java.util.Map<java.lang.String,MetaLocationStore> memory)
public MetaModel(java.util.Collection<MetaAddressingMode> modes, java.util.Collection<MetaGroup> modeGroups, java.util.Collection<MetaOperation> operations, java.util.Collection<MetaGroup> operationGroups, java.util.Collection<MetaLocationStore> registers, java.util.Collection<MetaLocationStore> memory)
public java.lang.Iterable<MetaAddressingMode> getAddressingModes()
public MetaAddressingMode getAddressingMode(java.lang.String name)
name
- Addressing mode name.public java.lang.Iterable<MetaGroup> getAddressingModeGroups()
public MetaGroup getAddressingModeGroup(java.lang.String name)
name
- Name of addressing mode group.public java.lang.Iterable<MetaOperation> getOperations()
public MetaOperation getOperation(java.lang.String name)
name
- Operation name.public java.lang.Iterable<MetaGroup> getOperationGroups()
public MetaGroup getOperationGroup(java.lang.String name)
name
- Name of operation group.public java.lang.Iterable<MetaLocationStore> getRegisters()
public MetaLocationStore getRegister(java.lang.String name)
name
- Register file name.public java.lang.Iterable<MetaLocationStore> getMemoryStores()
public MetaLocationStore getMemoryStore(java.lang.String name)
name
- Memory store location name.