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.Switch Class Reference

Represents an instruction that will dynamically determine the destination of it's tokens at runtime. More...

Inheritance diagram for core.instruction.Switch:
Inheritance graph

Public Member Functions

def __init__
 
def getDst
 
def execute
 
def setKey
 Set the instruction address. More...
 
def __str__
 Return a string representation of this instruction. More...
 

Public Attributes

 dstLst
 
 chunk
 
 key
 

Detailed Description

Represents an instruction that will dynamically determine the destination of it's tokens at runtime.

The value of the token arriving at port 0 will determine the next goal of the tokens. Tokens that arrive before this token will be stored until their destination is resolved.

This value should be an index corresponding to an entry in the dstLst of the instruction. This entry is the destination of the tokens that this instruction receives (for this context).

Constructor & Destructor Documentation

def core.instruction.Switch.__init__ (   self,
  dstLst 
)

Member Function Documentation

def core.instruction.Switch.getDst (   self,
  token 
)
def core.instruction.Switch.execute (   self,
  token,
  core 
)
def core.instruction.Instruction.setKey (   self,
  key 
)
inherited

Set the instruction address.

def core.instruction.Instruction.__str__ (   self)
inherited

Return a string representation of this instruction.

Member Data Documentation

core.instruction.Switch.dstLst
core.instruction.Instruction.chunk
inherited
core.instruction.Instruction.key
inherited