Copernicus  2.0
 All Classes Namespaces Files Functions Variables
cpc.command.worker_matcher.CommandWorkerMatcher Class Reference
Inheritance diagram for cpc.command.worker_matcher.CommandWorkerMatcher:

Public Member Functions

def checkType
 
def getExecID
 
def checkWorkerRequirements
 
def checkAddResources
 
def isDepleted
 
def getWork
 

Public Attributes

 platforms
 
 executableList
 
 workerReqDict
 
 usePlatform
 
 used
 
 type
 
 depleted
 

Detailed Description

Object that stores information about a worker for the 
   matchCommandWorker() function that is used in queue.getUntil()

Member Function Documentation

def cpc.command.worker_matcher.CommandWorkerMatcher.checkAddResources (   self,
  cmd 
)
Check whether a command falls within the current resource allocation
   and add its requirements to the used resources if it does.
   cmd = the command to check
   returns: True if the command fits within the capabilities is added,
    False if the command doesn't fit.
def cpc.command.worker_matcher.CommandWorkerMatcher.checkType (   self,
  type 
)
Check whether the command type is the same as one used before in the
   list of commands to send back
def cpc.command.worker_matcher.CommandWorkerMatcher.checkWorkerRequirements (   self,
  cmd 
)
def cpc.command.worker_matcher.CommandWorkerMatcher.getExecID (   self,
  cmd 
)
Check whether the worker has the right executable.
def cpc.command.worker_matcher.CommandWorkerMatcher.getWork (   self,
  cmdQueue 
)
Get work from a command queue until the worker is filled or there is
   no more work.
def cpc.command.worker_matcher.CommandWorkerMatcher.isDepleted (   self)
Check whether any of the resources are depleted. 

Member Data Documentation

cpc.command.worker_matcher.CommandWorkerMatcher.depleted
cpc.command.worker_matcher.CommandWorkerMatcher.executableList
cpc.command.worker_matcher.CommandWorkerMatcher.platforms
cpc.command.worker_matcher.CommandWorkerMatcher.type
cpc.command.worker_matcher.CommandWorkerMatcher.used
cpc.command.worker_matcher.CommandWorkerMatcher.usePlatform
cpc.command.worker_matcher.CommandWorkerMatcher.workerReqDict

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