Dataflow Software Stack
032db78
Master Thesis of Mathijs Saey at the VUB
|
General DVM instruction. More...
Public Member Functions | |
def | __init__ |
def | setKey |
Set the instruction address. More... | |
def | __str__ |
Return a string representation of this instruction. More... | |
def | execute |
Execute an instruction with a given input and a core. More... | |
Public Attributes | |
chunk | |
key | |
General DVM instruction.
Defines an interface that all instructions should implement.
An instruction is the bread and butter of DVM. it accepts some tokens, and returns some new tokens afterwards.
def core.instruction.Instruction.__init__ | ( | self, | |
chunk = 0 |
|||
) |
def core.instruction.Instruction.setKey | ( | self, | |
key | |||
) |
Set the instruction address.
def core.instruction.Instruction.__str__ | ( | self | ) |
Return a string representation of this instruction.
def core.instruction.Instruction.execute | ( | self, | |
input, | |||
core | |||
) |
Execute an instruction with a given input and a core.
input | A token, or a list of tokens, depending on the instruction type. |
core | The core where we execute this |
core.instruction.Instruction.chunk |
core.instruction.Instruction.key |