|
|||||||||
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.LTreeDecider<A,BO,P>
A
- type of agentsBO
- type of behavioural optionsP
- type of parameterpublic class LTreeDecider<A extends LaraAgent<A,? super BO>,BO extends LaraBehaviouralOption<?,BO>,P>
Constructor Summary | |
---|---|
LTreeDecider(LaraDecisionTree<A,BO,P> decisionTree,
A agent,
P parameter)
|
Method Summary | |
---|---|
void |
decide()
Executes the decision! |
Set<BO> |
getKSelectedBos(int k)
Return the LaraBehaviouralOption s 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 LTreeDecider(LaraDecisionTree<A,BO,P> decisionTree, A agent, P parameter)
decisionTree
- agent
- parameter
- Method Detail |
---|
public void decide()
LaraDecider
LaraBehaviouralOption
.
decide
in interface LaraDecider<BO extends LaraBehaviouralOption<?,BO>>
public Set<BO> getKSelectedBos(int k)
LaraDecider
LaraBehaviouralOption
s 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<?,BO>>
k
- the size of the returned set - Integer.MAX_VALUE if all BOs
shall be returned
LaraBehaviouralOption
s as result of the decision
processpublic int getNumSelectableBOs()
getNumSelectableBOs
in interface LaraDecider<BO extends LaraBehaviouralOption<?,BO>>
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<?,BO>>
LaraBehaviouralOption
as result of the decision processpublic String toString()
LaraDecisionConfiguration
toString
in class Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |