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

Constant instruction. More...

Inheritance diagram for core.instruction.Constant:
Inheritance graph

Public Member Functions

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

Public Attributes

 value
 
 chunk
 
 key
 
 destinations
 

Detailed Description

Constant instruction.

A special sink that always sends it's value to it's destinations when it encounters input. This is not really 'nice' according to dataflow semantics but necessary to allow literals that cannot be propagated.

The constant instruction will only send it's value when receiving data on port 0. This allows it to only generate a single token when it is placed after a switch statement (which is the only place where it should occur).

Constructor & Destructor Documentation

def core.instruction.Constant.__init__ (   self,
  value 
)

Member Function Documentation

def core.instruction.Constant.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.

def core.instruction.DestinationList.addDestination (   self,
  _,
  inst,
  port 
)
inherited
def core.instruction.DestinationList.sendDatum (   self,
  datum,
  core,
  _,
  cont 
)
inherited

Member Data Documentation

core.instruction.Constant.value
core.instruction.Instruction.chunk
inherited
core.instruction.Instruction.key
inherited
core.instruction.DestinationList.destinations
inherited