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

java.lang.Object
  extended by de.cesr.lara.components.preprocessor.impl.LAbstractPpComp<A,BO>
      extended by de.cesr.lara.components.preprocessor.impl.LOmitZeroContributingBOCollector<A,BO>
Type Parameters:
A -
BO - the type of behavioural options the given BO-memory memorises
All Implemented Interfaces:
LaraAbstractEventSubscriber, LaraInternalEventSubscriber, LaraBOCollector<A,BO>, LaraPreprocessorComp<A,BO>

public class LOmitZeroContributingBOCollector<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,BO>>
extends LAbstractPpComp<A,BO>
implements LaraBOCollector<A,BO>

This LaraBoScanner implementation also filters out behavioural option that indeed define one or more preferenceWeights also defined in the LaraDecisionConfiguration but whose utility is not above zero. This might be critical for some models since the utility may increase during updating but might be useful for others. NOTE regarding LOGGING: The agent logger for logging BOs is only enabled when the logger for this class is enabled at least for Priority#INFO!


Constructor Summary
LOmitZeroContributingBOCollector()
           
 
Method Summary
 void onInternalEvent(LaraEvent e)
          Retrieves all recent behavioural options in memory and checks for each if any utility contributes to the decision represented by this decision builder (if its weight is > 0.0).
 
Methods inherited from class de.cesr.lara.components.preprocessor.impl.LAbstractPpComp
castEvent, logBOs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.cesr.lara.components.preprocessor.LaraPreprocessorComp
castEvent
 

Constructor Detail

LOmitZeroContributingBOCollector

public LOmitZeroContributingBOCollector()
Method Detail

onInternalEvent

public void onInternalEvent(LaraEvent e)
Retrieves all recent behavioural options in memory and checks for each if any utility contributes to the decision represented by this decision builder (if its weight is > 0.0). Contributing behavioural options are returned. See LContributingBoCollector.

Specified by:
onInternalEvent in interface LaraInternalEventSubscriber
See Also:
de.cesr.lara.components.preprocessor.LaraBOCollector#onInternalEvent(de.cesr.lara.components.preprocessor.event.LPpBoCollectorEvent)