Class SimulationStrategyRegistry<A extends org.palladiosimulator.pcm.core.entity.Entity,E extends EventSimEntity>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.interpreter.SimulationStrategyRegistry<A,E>
-
public class SimulationStrategyRegistry<A extends org.palladiosimulator.pcm.core.entity.Entity,E extends EventSimEntity> extends Object
-
-
Constructor Summary
Constructors Constructor Description SimulationStrategyRegistry(com.google.inject.Injector injector, SimulationModuleRegistry moduleRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimulationStrategy<A,E>
lookup(Class<? extends A> type)
void
registerActionHandler(Class<?> actionClass, SimulationStrategy<A,E> handler)
Adds a handler for the specified action class.void
unregisterActionHandler(Class<? extends org.palladiosimulator.pcm.seff.AbstractAction> actionClass)
Removes the handler for the specified action class.
-
-
-
Constructor Detail
-
SimulationStrategyRegistry
@Inject public SimulationStrategyRegistry(com.google.inject.Injector injector, SimulationModuleRegistry moduleRegistry)
-
-
Method Detail
-
registerActionHandler
public void registerActionHandler(Class<?> actionClass, SimulationStrategy<A,E> handler)
Adds a handler for the specified action class. If a handler for the specified action class already exists, the existing handler will be decorated by the specified handler.- Parameters:
actionClass
- the action classhandler
- the handler that is to be registered
-
unregisterActionHandler
public void unregisterActionHandler(Class<? extends org.palladiosimulator.pcm.seff.AbstractAction> actionClass)
Removes the handler for the specified action class.- Parameters:
actionClass
- the action class whose handler is to be unregistered
-
lookup
public SimulationStrategy<A,E> lookup(Class<? extends A> type)
-
-