Package teamwork :: Package action :: Module DecisionSpace :: Class ORSpace
[hide private]
[frames] | no frames]

Class ORSpace

source code

DecisionSpace --+
                |
               ORSpace

Space of possible options expressed as a disjunction of all possible values

The options generated are a disjunction over the the decision spaces in the values attribute.


Warning: Assumes that the values attribute contains a list of DecisionSpace instances

Note: Ignores the base attribute

>>> space = {'type':'OR','values':[{'type':'decision','value':decisions1},{'type':'decision','value':decisions2},...,{'type':'decision','value':'decisionsn}]}

The resulting space will have the union of actions across the decision spaces, decisions1 to decisionsn. Keep in mind that duplicates will be included!

Instance Methods [hide private]
 
generateOptions(self)
Utility method that generates possible options (OR assumed)
source code

Inherited from DecisionSpace: __copy__, __init__, __str__, __xml__, append, directAdd, getOptions, parse, remove, replace, testForField

Class Variables [hide private]
string branchType = 'OR'
label for this class of DecisionSpace
Instance Variables [hide private]

Inherited from DecisionSpace: base, illegal, values

Method Details [hide private]

generateOptions(self)

source code 

Utility method that generates possible options (OR assumed)

Overrides: DecisionSpace.generateOptions

Note: no duplicates returned