Package spade :: Module tbcbp :: Class Plan
[hide private]
[frames] | no frames]

Class Plan

source code


Instance Methods [hide private]
new empty dictionary

__init__(self, cases)
Creates a new plan composed of a list of cases Usage: cases: a list of cases with at least 1 case
source code
 
getP(self) source code
 
getQ(self) source code
 
getInputs(self) source code
 
getOutputs(self)
def match(self,P=[],Q=[]): if (P!=[] and sorted(P)==sorted(self.P)) and (Q!=[] and sorted(Q)==sorted(self.Q)): return True elif (P==None and Q==self.Q): return True elif (Q==None and P==self.P): return True else: return False
source code
 
getActiveCase(self) source code
 
getNextService(self) source code
 
getCases(self)
returns all the cases of the plan
source code
 
getCase(self)
compose a new composite case by joining all the cases of the plan returns a Case
source code
 
getServices(self)
returns all the services of the cases that compose the plan returns a list of DF.Service
source code
 
insertCase(self, case)
inserts a new case at the beginning of the plan the outputs of the new case MUST match with the inputs of the plan returns the Plan with the new case added
source code
 
getCasebyID(self, ID) source code
 
getTime(self) source code
 
getQoS(self) source code
 
__len__(self)
len(x)
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __lt__, __ne__, __new__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cases)
(Constructor)

source code 

Creates a new plan composed of a list of cases Usage: cases: a list of cases with at least 1 case

Returns:
new empty dictionary

Overrides: object.__init__

__len__(self)
(Length operator)

source code 

len(x)

Overrides: dict.__len__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)