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

java.lang.Object
  extended by de.cesr.lara.components.preprocessor.impl.LPreprocessorConfigurator<A,BO>
Type Parameters:
A - the type of agents the according preprocessor builder is intended for
BO - the type of behavioural options the preprocessor shall manage
All Implemented Interfaces:
LaraPreprocessorConfigurator<A,BO>

public class LPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
extends Object
implements LaraPreprocessorConfigurator<A,BO>

default configurator


Field Summary
 LaraBOCollector<A,BO> DEFAULT_BO_COLLECTOR
           
 LaraBOPreselector<A,BO> DEFAULT_BO_PRESELECTOR
           
 LaraBOUtilityUpdater<A,BO> DEFAULT_BO_UPDATE_BUILDER
           
 LaraDecisionModeSelector<A,BO> DEFAULT_DECISION_MODE_SELECTOR
           
 LaraPreferenceUpdater<A,BO> DEFAULT_PREFERENCE_UPDATER
           
 
Method Summary
 LaraPreprocessorConfigurator<A,BO> clone()
          Return a new configuration that meets this configuration.
<T> T
get(LaraDecisionConfiguration dConfiguration, Class<? super T> type)
           
 LaraBOCollector<A,BO> getDefaultBoCollector()
           
 LaraBOPreselector<A,BO> getDefaultBoPreselector()
           
 LaraBOUtilityUpdater<A,BO> getDefaultBoUtilityUpdater()
           
 LaraDecisionModeSelector<A,BO> getDefaultDecisionModeSelector()
           
 LaraPreferenceUpdater<A,BO> getDefaultPreferenceUpdater()
           
static
<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
LaraPreprocessor<A,BO>
getDefaultPreprocessor()
           
<T extends LaraPreprocessorComp<A,BO>>
Map<LaraDecisionConfiguration,T>
getMap(Class<? super T> type)
          Provides the map of LaraDecisionConfiguration to LaraPreprocessorComp as defined by the given component class.
static
<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
LPreprocessorConfigurator<A,BO>
getNewPreprocessorConfigurator()
           
 LaraPreprocessor<A,BO> getPreprocessor()
          Checks whether the stored preprocessor matches this configuration and return it if true.
<T extends LaraPreprocessorComp<A,BO>>
void
set(LaraDecisionConfiguration dConfiguration, Class<? super T> type, T value)
           
 void setBOAdapter(LaraBOUtilityUpdater<A,BO> boAdapter)
           
 void setBOAdapter(LaraBOUtilityUpdater<A,BO> boAdapter, LaraDecisionConfiguration dConfiguration)
          Specifying null corresponds to LaraPreprocessorConfigurator#setBOAdapter(LaraBOUtilityUpdaterBuilder) and sets the default.
 void setBOCollector(LaraBOCollector<A,BO> boscanner)
           
 void setBOCollector(LaraBOCollector<A,BO> boscanner, LaraDecisionConfiguration dConfiguration)
          Specifying null corresponds to LaraPreprocessorConfigurator.setBOCollector(LaraBOCollector) and sets the default.
 void setBoPreselector(LaraBOPreselector<A,BO> boChecker)
           
 void setBOPreselector(LaraBOPreselector<A,BO> boChecker, LaraDecisionConfiguration dConfiguration)
          Specifying null corresponds to ) and sets the default.
 void setDecisionModeSelector(LaraDecisionModeSelector<A,BO> modeSelector)
           
 void setDecisionModeSelector(LaraDecisionModeSelector<A,BO> modeSelector, LaraDecisionConfiguration dConfiguration)
          Specifying null corresponds to ) and sets the default.
 void setPreferenceUpdater(LaraPreferenceUpdater<? extends A,BO> prefUpdater)
           
 void setPreferenceUpdater(LaraPreferenceUpdater<? extends A,BO> prefUpdater, LaraDecisionConfiguration dConfiguration)
          Specifying null corresponds to LaraPreprocessorConfigurator.setPreferenceUpdater(LaraPreferenceUpdater) and sets the default.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DECISION_MODE_SELECTOR

public final LaraDecisionModeSelector<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>> DEFAULT_DECISION_MODE_SELECTOR

DEFAULT_BO_COLLECTOR

public final LaraBOCollector<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>> DEFAULT_BO_COLLECTOR

DEFAULT_BO_PRESELECTOR

public final LaraBOPreselector<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>> DEFAULT_BO_PRESELECTOR

DEFAULT_BO_UPDATE_BUILDER

public final LaraBOUtilityUpdater<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>> DEFAULT_BO_UPDATE_BUILDER

DEFAULT_PREFERENCE_UPDATER

public final LaraPreferenceUpdater<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>> DEFAULT_PREFERENCE_UPDATER
Method Detail

getDefaultPreprocessor

public static <A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>> LaraPreprocessor<A,BO> getDefaultPreprocessor()

getNewPreprocessorConfigurator

public static <A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>> LPreprocessorConfigurator<A,BO> getNewPreprocessorConfigurator()
Type Parameters:
A -
BO -
Returns:
the default configurator

clone

public LaraPreprocessorConfigurator<A,BO> clone()
Description copied from interface: LaraPreprocessorConfigurator
Return a new configuration that meets this configuration. This is intended for creating new LaraPreprocessors with a different configuration. I.e. the provided configuration is altered and used to create a new pre-processor.

Specified by:
clone in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Overrides:
clone in class Object
Returns:
new configuration that meets this configuration
See Also:
Object.clone()

get

public <T> T get(LaraDecisionConfiguration dConfiguration,
                 Class<? super T> type)
Specified by:
get in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Type Parameters:
T - the general type of the requested component
Parameters:
dConfiguration - The LaraDecisionConfiguration the given component shall be applied to.
type - the general type of the requested component
Returns:
See Also:
LaraPreprocessorConfigurator.get(de.cesr.lara.components.decision.LaraDecisionConfiguration, java.lang.Class)

getDefaultBoCollector

public LaraBOCollector<A,BO> getDefaultBoCollector()
Specified by:
getDefaultBoCollector in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Returns:
the default LaraBOCollector
See Also:
LaraPreprocessorConfigurator.getDefaultBoCollector()

getDefaultBoPreselector

public LaraBOPreselector<A,BO> getDefaultBoPreselector()
Specified by:
getDefaultBoPreselector in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Returns:
the default LaraBOPreselector
See Also:
LaraPreprocessorConfigurator.getDefaultBoPreselector()

getDefaultBoUtilityUpdater

public LaraBOUtilityUpdater<A,BO> getDefaultBoUtilityUpdater()
Specified by:
getDefaultBoUtilityUpdater in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Returns:
the default LaraBOUtilityUpdater
See Also:
LaraPreprocessorConfigurator.getDefaultBoUtilityUpdater()

getDefaultDecisionModeSelector

public LaraDecisionModeSelector<A,BO> getDefaultDecisionModeSelector()
Specified by:
getDefaultDecisionModeSelector in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Returns:
the default LaraDecisionConfiguration
See Also:
LaraPreprocessorConfigurator.getDefaultDecisionModeSelector()

getDefaultPreferenceUpdater

public LaraPreferenceUpdater<A,BO> getDefaultPreferenceUpdater()
Specified by:
getDefaultPreferenceUpdater in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Returns:
the default LaraPreferenceUpdater
See Also:
LaraPreprocessorConfigurator.getDefaultPreferenceUpdater()

getMap

public <T extends LaraPreprocessorComp<A,BO>> Map<LaraDecisionConfiguration,T> getMap(Class<? super T> type)
Description copied from interface: LaraPreprocessorConfigurator
Provides the map of LaraDecisionConfiguration to LaraPreprocessorComp as defined by the given component class.

Specified by:
getMap in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Type Parameters:
T - the generic type of the agent
Parameters:
type - the class of component type that is requested
Returns:
the map of defined components
See Also:
LaraPreprocessorConfigurator.getMap(java.lang.Class)

getPreprocessor

public LaraPreprocessor<A,BO> getPreprocessor()
Checks whether the stored preprocessor matches this configuration and return it if true. Builds a new preprocessor of the current configuration otherwise.

Specified by:
getPreprocessor in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Returns:
preprocessor for the given configuration
See Also:
LaraPreprocessorConfigurator.getPreprocessor()

set

public <T extends LaraPreprocessorComp<A,BO>> void set(LaraDecisionConfiguration dConfiguration,
                                                       Class<? super T> type,
                                                       T value)
Specified by:
set in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Type Parameters:
T - the component type regarding agent type of the requested component
U - the general type of the requested component
Parameters:
dConfiguration - The LaraDecisionConfiguration the given component shall be applied to.
type - the general type of the requested component
value -

setBOAdapter

public void setBOAdapter(LaraBOUtilityUpdater<A,BO> boAdapter)
Specified by:
setBOAdapter in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
See Also:
LaraPreprocessorConfigurator.setBOAdapter(de.cesr.lara.components.preprocessor.LaraBOUtilityUpdater)

setBOAdapter

public void setBOAdapter(LaraBOUtilityUpdater<A,BO> boAdapter,
                         LaraDecisionConfiguration dConfiguration)
Description copied from interface: LaraPreprocessorConfigurator
Specifying null corresponds to LaraPreprocessorConfigurator#setBOAdapter(LaraBOUtilityUpdaterBuilder) and sets the default.

Specified by:
setBOAdapter in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
dConfiguration - The LaraDecisionConfiguration the given behavioural options utilityUpdater shall be applied to.
See Also:
LaraPreprocessorConfigurator.setBOAdapter(de.cesr.lara.components.preprocessor.LaraBOUtilityUpdater, de.cesr.lara.components.decision.LaraDecisionConfiguration)

setBOCollector

public void setBOCollector(LaraBOCollector<A,BO> boscanner)
Specified by:
setBOCollector in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
See Also:
LaraPreprocessorConfigurator.setBOCollector(de.cesr.lara.components.preprocessor.LaraBOCollector)

setBOCollector

public void setBOCollector(LaraBOCollector<A,BO> boscanner,
                           LaraDecisionConfiguration dConfiguration)
Description copied from interface: LaraPreprocessorConfigurator
Specifying null corresponds to LaraPreprocessorConfigurator.setBOCollector(LaraBOCollector) and sets the default.

Specified by:
setBOCollector in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
dConfiguration - The LaraDecisionConfiguration the given behavioural options collector shall be applied to.
See Also:
LaraPreprocessorConfigurator.setBOCollector(de.cesr.lara.components.preprocessor.LaraBOCollector, de.cesr.lara.components.decision.LaraDecisionConfiguration)

setBoPreselector

public void setBoPreselector(LaraBOPreselector<A,BO> boChecker)
Specified by:
setBoPreselector in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
See Also:
LaraPreprocessorConfigurator.setBoPreselector(de.cesr.lara.components.preprocessor.LaraBOPreselector)

setBOPreselector

public void setBOPreselector(LaraBOPreselector<A,BO> boChecker,
                             LaraDecisionConfiguration dConfiguration)
Description copied from interface: LaraPreprocessorConfigurator
Specifying null corresponds to ) and sets the default.

Specified by:
setBOPreselector in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
dConfiguration - The LaraDecisionConfiguration the given behavioural options preselector shall be applied to.
See Also:
LaraPreprocessorConfigurator.setBOPreselector(de.cesr.lara.components.preprocessor.LaraBOPreselector, de.cesr.lara.components.decision.LaraDecisionConfiguration)

setDecisionModeSelector

public void setDecisionModeSelector(LaraDecisionModeSelector<A,BO> modeSelector)
Specified by:
setDecisionModeSelector in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
See Also:
LaraPreprocessorConfigurator.setDecisionModeSelector(de.cesr.lara.components.preprocessor.LaraDecisionModeSelector)

setDecisionModeSelector

public void setDecisionModeSelector(LaraDecisionModeSelector<A,BO> modeSelector,
                                    LaraDecisionConfiguration dConfiguration)
Description copied from interface: LaraPreprocessorConfigurator
Specifying null corresponds to ) and sets the default.

Specified by:
setDecisionModeSelector in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
dConfiguration - The LaraDecisionConfiguration the given mode selector shall be applied to.
See Also:
LaraPreprocessorConfigurator.setDecisionModeSelector(de.cesr.lara.components.preprocessor.LaraDecisionModeSelector, de.cesr.lara.components.decision.LaraDecisionConfiguration)

setPreferenceUpdater

public void setPreferenceUpdater(LaraPreferenceUpdater<? extends A,BO> prefUpdater)
Specified by:
setPreferenceUpdater in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
See Also:
LaraPreprocessorConfigurator.setPreferenceUpdater(de.cesr.lara.components.preprocessor.LaraPreferenceUpdater)

setPreferenceUpdater

public void setPreferenceUpdater(LaraPreferenceUpdater<? extends A,BO> prefUpdater,
                                 LaraDecisionConfiguration dConfiguration)
Description copied from interface: LaraPreprocessorConfigurator
Specifying null corresponds to LaraPreprocessorConfigurator.setPreferenceUpdater(LaraPreferenceUpdater) and sets the default.

Specified by:
setPreferenceUpdater in interface LaraPreprocessorConfigurator<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
dConfiguration - The LaraDecisionConfiguration the given preference utilityUpdater shall be applied to.
See Also:
LaraPreprocessorConfigurator.setPreferenceUpdater(de.cesr.lara.components.preprocessor.LaraPreferenceUpdater, de.cesr.lara.components.decision.LaraDecisionConfiguration)