|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cesr.lara.components.preprocessor.impl.LPreprocessor<A,BO>
A
- the type of agents this preprocessor builder is intended forBO
- the type of behavioural options the preprocessor shall managepublic final class LPreprocessor<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
The LPreprocessor
class provides immutable (once assigned, the
references to preprocessor components are only passed to the preprocessor
constructor which is designed to be used only for one agent during a single
simulation step) instances of LPreprocessor
s.
Default implementation of LaraPreprocessor
. Supports comprehensive
logging.
IMPLEMENTATION NOTE: An enum implementation would be nice but fails to deal
with different types of pre-process components...
Constructor Summary | |
---|---|
protected |
LPreprocessor()
Use LaraPreprocessorConfigurator.getPreprocessor() to receive an
instance of a pre-processor (it keeps instances and returns it if
appropriate)! |
protected |
LPreprocessor(LaraPreprocessorConfigurator<A,BO> configuration)
Use LaraPreprocessorConfigurator.getPreprocessor() to receive an
instance of a pre-processor (it keeps instances and returns it if
appropriate)! |
Method Summary | |
---|---|
boolean |
equals(Object preprocessor)
Checks for equal objects. |
LaraPreprocessorConfigurator<A,BO> |
getAlteredConfiguration(LaraPreprocessorConfigurator<A,BO> changeConfiguration)
This method returns a LaraPreprocessorConfigurator that equals
this instance apart from the configuration included in the given
LaraPreprocessorConfigurator . |
String |
getComponentsString()
Lists all preprocessor components defined in this preprocessor. |
boolean |
meetsConfiguration(LaraPreprocessorConfigurator<A,BO> configuration)
Checks whether this preprocessor conforms to the configuration represented by the given LaraPreprocessorConfigurator . |
void |
onInternalEvent(LaraEvent event)
Only for internal super classes beeing part of the LARA core. |
void |
preprocess(LaraDecisionConfiguration dConfig,
A agent)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LPreprocessor()
LaraPreprocessorConfigurator.getPreprocessor()
to receive an
instance of a pre-processor (it keeps instances and returns it if
appropriate)!
Uses LPreprocessorConfigurator.getDefaultPreprocessConfigurator().
protected LPreprocessor(LaraPreprocessorConfigurator<A,BO> configuration)
LaraPreprocessorConfigurator.getPreprocessor()
to receive an
instance of a pre-processor (it keeps instances and returns it if
appropriate)!
configuration
- Method Detail |
---|
public boolean equals(Object preprocessor)
equals
in class Object
Object.equals(java.lang.Object)
public LaraPreprocessorConfigurator<A,BO> getAlteredConfiguration(LaraPreprocessorConfigurator<A,BO> changeConfiguration)
LaraPreprocessorConfigurator
that equals
this instance apart from the configuration included in the given
LaraPreprocessorConfigurator
.
changeConfiguration
-
public String getComponentsString()
LaraPreprocessor
getComponentsString
in interface LaraPreprocessor<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
Object.toString()
public boolean meetsConfiguration(LaraPreprocessorConfigurator<A,BO> configuration)
LaraPreprocessorConfigurator
.
meetsConfiguration
in interface LaraPreprocessor<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
configuration
-
public void onInternalEvent(LaraEvent event)
LaraInternalEventSubscriber
onInternalEvent
in interface LaraInternalEventSubscriber
LaraInternalEventSubscriber.onInternalEvent(de.cesr.lara.components.eventbus.events.LaraEvent)
public void preprocess(LaraDecisionConfiguration dConfig, A agent)
preprocess
in interface LaraPreprocessor<A extends LaraAgent<A,BO>,BO extends LaraBehaviouralOption<?,? extends BO>>
de.cesr.lara.components.preprocessor.LaraPreprocessor#preprocess(de.cesr.lara.components.preprocessor.LaraPreprocessor.Accuracy,
de.cesr.lara.components.agents.LaraAgent)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |