|
__init__(self,
entity=None,
direction=None,
goalType=None,
key=None,
value={ } )
Constructs a goal object with the specified field values |
source code
|
|
|
|
|
generateName(self)
Returns a canonical string representation |
source code
|
|
boolean
|
isMax(self)
Returns:
true if maximization goal, false if minimization |
source code
|
|
Key
|
|
|
reward(self,
context)
Applies this goal in the specified context |
source code
|
|
(str ,Distribution)
|
|
|
__getitem__(self,
index)
Accessor: supports access in the form `self[index]' |
source code
|
|
|
__setitem__(self,
index,
value)
Accessor: supports access in the form `self[index]=x' |
source code
|
|
|
|
|
evaluate(self,
context)
Returns a new goal instance in the given context by computing the
reward and storing it in its value attribute |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
total(self)
Returns sum over the individual elements in an instantiated goal |
source code
|
|
|
|
|
|
|
|
|
|