Space of possible options that an agent may have Each option is
assumed to be a dictionary-type object. A DecisionSpace object generates all of the possible
objects that can be generated by extending a given base (partially
filled) object with a given key, whose value ranges over a supplied list
of possible fillers.
|
__init__(self,
key=None,
values=[ ] ,
base=None)
Constructor that initializes the base option and relevant key |
source code
|
|
|
|
|
|
|
remove(self,
value)
Removes the given value from the list of possible fillers |
source code
|
|
|
|
|
|
|
testForField(self,
field=' actor ' )
Debugging method that returns true iff the given field is set |
source code
|
|
|
generateOptions(self)
Utility method that generates possible options |
source code
|
|
|
|
|
|
|
|
|
|
|
|