de.cesr.lara.components.decision
Interface LaraDecider<BO extends LaraBehaviouralOption<?,?>>

Type Parameters:
BO - type of behavioural options the decider is indented for
All Known Subinterfaces:
LaraDeliberativeDecider<BO>
All Known Implementing Classes:
LDeliberativeDecider, LExplorationDecider, LHabitDecider, LTreeDecider

public interface LaraDecider<BO extends LaraBehaviouralOption<?,?>>

Interface for all components that may execute a decision.


Method Summary
 void decide()
          Executes the decision!
 Set<? extends BO> getKSelectedBos(int k)
          Return the LaraBehaviouralOptions that were selected in decide().
 int getNumSelectableBOs()
           
 BO getSelectedBo()
          Return the LaraBehaviouralOption that was selected in decide().
 

Method Detail

decide

void decide()
Executes the decision! That is, select a LaraBehaviouralOption.


getKSelectedBos

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

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

getNumSelectableBOs

int getNumSelectableBOs()
Returns:
the number of rows in the decision's laraBoRows

getSelectedBo

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

Returns:
a LaraBehaviouralOption as result of the decision process