|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cesr.lara.components.decision.impl.LDeliberativeDecider<BO>
BO
- type of behavioural optionpublic class LDeliberativeDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
the agents decision module
Field Summary | |
---|---|
protected LaraDecisionConfiguration |
dConfiguration
According LaraDecisionConfiguration |
protected LaraDeliberativeChoiceComponent |
deliberativeChoiceComponent
deliberativeChoiceComp component |
protected Logger |
logger
logger |
protected Map<Class<? extends LaraPreference>,Double> |
preferenceWeights
preferenceWeights |
protected Collection<BO> |
selectableBOs
behavioural options |
protected BO |
selectedBo
BO selected by decision |
protected Collection<LaraBoRow<BO>> |
situationalUtilityMatrixRows
|
Constructor Summary | |
---|---|
LDeliberativeDecider(LaraDecisionConfiguration dConfiguration)
|
Method Summary | |
---|---|
void |
decide()
Executes the decision! |
protected LaraDeliberativeChoiceComponent |
getDeliberativeChoiceComp()
Checks if the deliberative choice component has been set and provides it true. |
Set<? extends BO> |
getKSelectedBos(int k)
This method delegates to the deliberative choice component since bos may not be stored in this class because k is not finitely defined. |
int |
getNumSelectableBOs()
|
Map<Class<? extends LaraPreference>,Double> |
getPreferenceWeights()
Provides the individual preference weights |
Collection<BO> |
getSelectableBos()
|
BO |
getSelectedBo()
Return the LaraBehaviouralOption that was selected in
LaraDecider.decide() . |
void |
setDeliberativeChoiceComponent(LaraDeliberativeChoiceComponent deliberativeChoiceComponent)
|
void |
setPreferenceWeights(Map<Class<? extends LaraPreference>,Double> preference)
Sets the individual preference weights. |
void |
setSelectableBos(Collection<BO> behaviouralOptions)
Set the collection of BOs the decision process decides upon. |
String |
toString()
Return the name of this decider and the LaraDecisionConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Logger logger
protected LaraDecisionConfiguration dConfiguration
LaraDecisionConfiguration
protected LaraDeliberativeChoiceComponent deliberativeChoiceComponent
protected Map<Class<? extends LaraPreference>,Double> preferenceWeights
protected Collection<BO extends LaraBehaviouralOption<?,? extends BO>> selectableBOs
protected BO extends LaraBehaviouralOption<?,? extends BO> selectedBo
protected Collection<LaraBoRow<BO extends LaraBehaviouralOption<?,? extends BO>>> situationalUtilityMatrixRows
Constructor Detail |
---|
public LDeliberativeDecider(LaraDecisionConfiguration dConfiguration)
dConfiguration
- the decision configuration of the current decision processMethod Detail |
---|
public void decide()
LaraDecider
LaraBehaviouralOption
.
decide
in interface LaraDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
LaraDecider.decide()
public Set<? extends BO> getKSelectedBos(int k)
getKSelectedBos
in interface LaraDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
k
- the size of the returned set - Integer.MAX_VALUE if all BOs
shall be returned
LaraBehaviouralOption
s as result of the decision
processLaraDecider.getKSelectedBos(int)
public int getNumSelectableBOs()
getNumSelectableBOs
in interface LaraDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
LaraDecider.getNumSelectableBOs()
public Map<Class<? extends LaraPreference>,Double> getPreferenceWeights()
LaraDeliberativeDecider
getPreferenceWeights
in interface LaraDeliberativeDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
LaraDeliberativeDecider.getPreferenceWeights()
public Collection<BO> getSelectableBos()
getSelectableBos
in interface LaraDeliberativeDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
LaraDeliberativeDecider.getSelectableBos()
public BO getSelectedBo()
LaraDecider
LaraBehaviouralOption
that was selected in
LaraDecider.decide()
.
Note: Do not perform the actual selection here since this method might be
called more than once!
getSelectedBo
in interface LaraDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
LaraBehaviouralOption
as result of the decision processLaraDecider.getSelectedBo()
public void setDeliberativeChoiceComponent(LaraDeliberativeChoiceComponent deliberativeChoiceComponent)
setDeliberativeChoiceComponent
in interface LaraDeliberativeDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
LaraDeliberativeDecider.setDeliberativeChoiceComponent(de.cesr.lara.components.decision.LaraDeliberativeChoiceComponent)
public void setPreferenceWeights(Map<Class<? extends LaraPreference>,Double> preference)
LaraDeliberativeDecider
setPreferenceWeights
in interface LaraDeliberativeDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
preference
- individual preference weightsLaraDeliberativeDecider.setPreferenceWeights(java.util.Map)
public void setSelectableBos(Collection<BO> behaviouralOptions)
LaraDeliberativeDecider
setSelectableBos
in interface LaraDeliberativeDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
LaraDeliberativeDecider.setSelectableBos(java.util.Collection)
public String toString()
LaraDecisionConfiguration
toString
in class Object
Object.toString()
protected LaraDeliberativeChoiceComponent getDeliberativeChoiceComp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |