public class SoftgoalPreferences extends TransientBelief<java.util.Map<Softgoal,java.lang.Double>>
TransientBelief) that stores
the preferences for softgoals.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
SoftgoalPreferences() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getPreferenceForSoftgoal(Softgoal softgoal)
Returns the preference for a softgoal.
|
void |
setPreferenceForSoftgoal(Softgoal softgoal,
java.lang.Double preference)
Sets the preference for a softgoal.
|
getValue, setValueaddBeliefBase, equals, getBeliefBases, getName, hashCode, removeBeliefBase, toStringgetMetadata, getMetadata, hasMetadata, putMetadata, removeMetadatapublic java.lang.Double getPreferenceForSoftgoal(Softgoal softgoal)
softgoal - the softgoalpublic void setPreferenceForSoftgoal(Softgoal softgoal, java.lang.Double preference)
softgoal - the softgoal to which the preference is set.preference - the preference value.