de.cesr.lara.components.decision.impl
Class LExplorationDecider<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>

java.lang.Object
  extended by de.cesr.lara.components.decision.impl.LExplorationDecider<A,BO>
Type Parameters:
A - type of agent
BO - type of behavioural options
All Implemented Interfaces:
LaraDecider<BO>

public class LExplorationDecider<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
extends Object
implements LaraDecider<BO>


Constructor Summary
LExplorationDecider(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

LExplorationDecider

public LExplorationDecider(A agent,
                           LaraDecisionConfiguration dConfiguration)
Parameters:
agent -
dConfiguration -
Method Detail

decide

public void decide()
Description copied from interface: LaraDecider
Executes the decision! That is, select a LaraBehaviouralOption.

Specified by:
decide in interface LaraDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
See Also:
LaraDecider.decide()

getKSelectedBos

public Set<BO> getKSelectedBos(int k)
Description copied from interface: LaraDecider
Return the LaraBehaviouralOptions that were selected in LaraDecider.decide(). Note: Do not perform the actual selection here since this method might be called more than once!

Specified by:
getKSelectedBos in interface LaraDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
Parameters:
k - the size of the returned set - Integer.MAX_VALUE if all BOs shall be returned
Returns:
a set of LaraBehaviouralOptions as result of the decision process
See Also:
LaraDecider.getKSelectedBos(int)

getNumSelectableBOs

public int getNumSelectableBOs()
Specified by:
getNumSelectableBOs in interface LaraDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
Returns:
the number of rows in the decision's laraBoRows
See Also:
LaraDecider.getNumSelectableBOs()

getSelectedBo

public BO getSelectedBo()
Description copied from interface: LaraDecider
Return the LaraBehaviouralOption that was selected in LaraDecider.decide(). Note: Do not perform the actual selection here since this method might be called more than once!

Specified by:
getSelectedBo in interface LaraDecider<BO extends LaraBehaviouralOption<?,? extends BO>>
Returns:
a LaraBehaviouralOption as result of the decision process
See Also:
LaraDecider.getSelectedBo()

toString

public String toString()
Return the name of this decider and the LaraDecisionConfiguration

Overrides:
toString in class Object
See Also:
Object.toString()