|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.cesr.lara.components.decision.impl.LHabitDecider<A,BO>
A - type of agentBO - type of behavioural optionpublic class LHabitDecider<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
| Constructor Summary | |
|---|---|
LHabitDecider(A agent,
LaraDecisionConfiguration dConfiguration)
|
|
| Method Summary | |
|---|---|
void |
decide()
Executes the decision! |
Set<BO> |
getKSelectedBos(int k)
Return the LaraBehaviouralOptions that were selected in
LaraDecider.decide(). |
int |
getNumSelectableBOs()
|
BO |
getSelectedBo()
Return the LaraBehaviouralOption that was selected in
LaraDecider.decide(). |
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 |
| Constructor Detail |
|---|
public LHabitDecider(A agent,
LaraDecisionConfiguration dConfiguration)
agent - dConfiguration - | Method Detail |
|---|
public void decide()
LaraDeciderLaraBehaviouralOption.
decide in interface LaraDecider<BO extends LaraBehaviouralOption<?,? extends BO>>LaraDecider.decide()public Set<BO> getKSelectedBos(int k)
LaraDeciderLaraBehaviouralOptions that were selected in
LaraDecider.decide().
Note: Do not perform the actual selection here since this method might be
called more than once!
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
LaraBehaviouralOptions as result of the decision
processLaraDecider.getKSelectedBos(int)public int getNumSelectableBOs()
getNumSelectableBOs in interface LaraDecider<BO extends LaraBehaviouralOption<?,? extends BO>>LaraDecider.getNumSelectableBOs()public BO getSelectedBo()
LaraDeciderLaraBehaviouralOption 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 String toString()
LaraDecisionConfiguration
toString in class ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||