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
IGR.port.Port Class Reference

Abstract Port. More...

Inheritance diagram for IGR.port.Port:
Inheritance graph

Public Member Functions

def __init__
 Creates a new port for a node and an index. More...
 
def __str__
 Create a string version of the port. More...
 
def isConnected
 See if the port is connected to something. More...
 
def acceptsLiteral
 Returns true if this port accepts a literal. More...
 
def isPort
 See if this is a port (mainly for traversal) More...
 

Public Attributes

 node
 
 idx
 

Detailed Description

Abstract Port.

Defines an abstract port, a port is the entry or exit point to any node. A port is aware of the node that it belongs to, as well as the index it has in this node.

Constructor & Destructor Documentation

def IGR.port.Port.__init__ (   self,
  node,
  idx 
)

Creates a new port for a node and an index.

Parameters
nodeThe node that this port belongs to
idxThe index that this node belongs to

Member Function Documentation

def IGR.port.Port.__str__ (   self)

Create a string version of the port.

Returns
A string representing this port. This string should not be used to recreate this port.
def IGR.port.Port.isConnected (   self)

See if the port is connected to something.

Returns
True if this node is connected.
def IGR.port.Port.acceptsLiteral (   self)

Returns true if this port accepts a literal.

def IGR.port.Port.isPort (   self)

See if this is a port (mainly for traversal)

Member Data Documentation

IGR.port.Port.node
IGR.port.Port.idx