Copernicus  2.0
 All Classes Namespaces Files Functions Variables
cpc.dataflow.connection Namespace Reference

Classes

class  ConnError
 
class  Connection
 

Functions

def splitIOName
 
def makeConnectionFromDesc
 
def makeInitialValueFromDesc
 
def makeConnection
 
def makeInitialValue
 
def copyConnection
 

Variables

tuple log = logging.getLogger('cpc.dataflow.connection')
 

Function Documentation

def cpc.dataflow.connection.copyConnection (   conn,
  dstNetwork 
)
Copy the connection to run from instances in the destination network.
def cpc.dataflow.connection.makeConnection (   network,
  srcInstanceName,
  srcDir,
  srcItemList,
  dstInstanceName,
  dstDir,
  dstItemList 
)
Make a connection object based on a network, and names for source and
   destination.
   
    network = the network the instance(s) belong to  
    srcInstanceName = the name of the source instance
    srcDir = direction (function_io.in/out/sub_in/sub_out) of source item
    srcItemName = the name of the source item
    srcSubItem = sub items (array subscripts, etc) for the source
    ...
def cpc.dataflow.connection.makeConnectionFromDesc (   network,
  srcStr,
  dstStr 
)
Make a connection object by splitting two names with splitIOName.
def cpc.dataflow.connection.makeInitialValue (   network,
  dstInstanceName,
  dstDir,
  dstItemList,
  val 
)
Make a connection object with an initial value, based on a network, 
   and names for the destination.
def cpc.dataflow.connection.makeInitialValueFromDesc (   network,
  dstStr,
  val 
)
Make a connection object with an initial value, based on a network, 
   and splitIO-ablen ame for the destination.
def cpc.dataflow.connection.splitIOName (   name,
  expectedDirection = None 
)
Split an input/output name into a 3-tuple, as:
   instance-name:'in'/'out'.itemname.subItemname[subItem2name]
   (except for 'self')

   Checks whether [in/out] item corresponds with expected 
   type, if given (it can be implicit, such as instance-name.itemname.
   If expectedDirection is not given, it must be specified in name.
  
   returns tuple of  instance-name, in/out/sub-in/sub-out, item-list

Variable Documentation

tuple cpc.dataflow.connection.log = logging.getLogger('cpc.dataflow.connection')