Copernicus  2.0
 All Classes Namespaces Files Functions Variables
cpc.dataflow.task.Task Class Reference
Inheritance diagram for cpc.dataflow.task.Task:

Public Member Functions

def setFnInput
 
def addCommands
 
def getFnInput
 
def getCommands
 
def activateCommands
 
def deactivateCommands
 
def cancel
 
def isActive
 
def run
 
def handleOutput
 
def getID
 
def getFunctionName
 
def getProject
 
def writeXML
 

Public Attributes

 activeInstance
 
 function
 
 priority
 
 id
 
 project
 
 lock
 
 seqNr
 
 fnInput
 
 cmds
 
 cputime
 
 canceled
 
 fnOutput
 

Detailed Description

A task is a queueable and runnable function with inputs.

Member Function Documentation

def cpc.dataflow.task.Task.activateCommands (   self)
Activate all the commands in this task.
def cpc.dataflow.task.Task.addCommands (   self,
  cmds,
  deactivate 
)
Add commands. Only for readxml
def cpc.dataflow.task.Task.cancel (   self)
def cpc.dataflow.task.Task.deactivateCommands (   self)
Deactivate all the commands in this task.
def cpc.dataflow.task.Task.getCommands (   self)
def cpc.dataflow.task.Task.getFnInput (   self)
Get the fnInput object.
def cpc.dataflow.task.Task.getFunctionName (   self)
def cpc.dataflow.task.Task.getID (   self)
def cpc.dataflow.task.Task.getProject (   self)
def cpc.dataflow.task.Task.handleOutput (   self)
Called after the run() method returns 'finished=True'.
def cpc.dataflow.task.Task.isActive (   self)
Return whether the underlying active instance is active.
def cpc.dataflow.task.Task.run (   self,
  cmd = None 
)
Run the task's underlying function with the required inputs,
   possibly in response to a finished command (given as parameter cmd) 
   and return a list of commands to queue. If a command is queued,
   the task should continue existining until its corresponding 
   run() call is called. 
def cpc.dataflow.task.Task.setFnInput (   self,
  fnInput 
)
Replace the fnInput object. Only for readxml
def cpc.dataflow.task.Task.writeXML (   self,
  outf,
  indent = 0 
)

Member Data Documentation

cpc.dataflow.task.Task.activeInstance
cpc.dataflow.task.Task.canceled
cpc.dataflow.task.Task.cmds
cpc.dataflow.task.Task.cputime
cpc.dataflow.task.Task.fnInput
cpc.dataflow.task.Task.fnOutput
cpc.dataflow.task.Task.function
cpc.dataflow.task.Task.id
cpc.dataflow.task.Task.lock
cpc.dataflow.task.Task.priority
cpc.dataflow.task.Task.project
cpc.dataflow.task.Task.seqNr

The documentation for this class was generated from the following file: