public class SoftgoalPreferences extends TransientBelief<java.lang.String,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 |
valuemetadata| 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, updateValueaddBeliefBase, clone, equals, getBeliefBases, getName, hashCode, notifyBeliefBases, removeBeliefBase, setName, setValue, toStringgetMetadata, getMetadata, hasMetadata, putMetadata, removeMetadatafinalize, getClass, notify, notifyAll, wait, wait, waitgetMetadata, 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.