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

Public Member Functions

def add
 
def subtract
 
def writeXML
 

Public Attributes

 name
 
 value
 

Detailed Description

A resource object that contains information about a specific 
    resource (such as number of cores, amount of memory, etc.). 
   
    Commands contain a requiredResource and a reservedResource
    list, and platforms contain a list of resources. These can then
    be matched together when a worker requests a set of commands.
    
    The object's member variables are used directly. 

Member Function Documentation

def cpc.command.resource.Resource.add (   self,
  other 
)
Add two resource objects together.
def cpc.command.resource.Resource.subtract (   self,
  other 
)
Subtract other's resource from self.
def cpc.command.resource.Resource.writeXML (   self,
  outf,
  indent = 0 
)

Member Data Documentation

cpc.command.resource.Resource.name
cpc.command.resource.Resource.value

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