Trees | Indices | Help |
|
---|
|
Abstract OpCode.
This is the root of the actual OpCode hierarchy. All clases derived from this class should override OP_ID.
|
|||
Inherited from |
|
|||
dict
|
|
||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|||
Inherited from Inherited from |
|
|||
WITH_LU = True Boolean that specifies whether this should be included in mcpu's dispatch table |
|||
OP_PARAMS = [("dry_run", None, ht.TMaybe(ht.TBool), "Run check List of opcode attributes, the default values they should get if not already defined, and types they must match. |
|||
OP_RESULT = None Callable to verify opcode result |
|||
OP_DSC_FIELD The name of a field whose value will be included in the string returned by Summary(); see the docstring of that method for details). |
|||
OP_DSC_FORMATTER A callable that should format the OP_DSC_FIELD; if not present, then the field will be simply converted to string |
|||
OP_ID The ID of this opcode. |
|
|||
dry_run Whether the LU should be run in dry-run mode, i.e. |
|||
priority Opcode priority for queue |
|
|||
Inherited from |
|
Specialized getstate for opcodes. This method adds to the state dictionary the OP_ID of the class, so that on unload we can identify the correct class for instantiating the opcode.
|
Generic load opcode method. The method identifies the correct opcode class from the dict-form by looking for a OP_ID key, if this is not found, or its value is not available in this module as a child of this class, we fail.
|
Generates a summary description of this opcode. The summary is the value of the OP_ID attribute (without the "OP_" prefix), plus the value of the OP_DSC_FIELD attribute, if one was defined; this field should allow to easily identify the operation (for an instance creation job, e.g., it would be the instance name). |
|
OP_PARAMSList of opcode attributes, the default values they should get if not already defined, and types they must match.
|
OP_IDThe ID of this opcode. This should be unique amongst all children of this class. |
|
dry_runWhether the LU should be run in dry-run mode, i.e. just the check steps |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 22 11:13:25 2016 | http://epydoc.sourceforge.net |