Dataflow Software Stack  032db78
Master Thesis of Mathijs Saey at the VUB
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
core.instruction.Instruction Class Reference

General DVM instruction. More...

Inheritance diagram for core.instruction.Instruction:
Inheritance graph

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
 

Detailed Description

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.

Constructor & Destructor Documentation

def core.instruction.Instruction.__init__ (   self,
  chunk = 0 
)

Member Function Documentation

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.

Parameters
inputA token, or a list of tokens, depending on the instruction type.
coreThe core where we execute this

Member Data Documentation

core.instruction.Instruction.chunk
core.instruction.Instruction.key