|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.palamedes.gdl.core.model.utils.AbstractFactory
org.eclipse.palamedes.gdl.core.simulation.StrategyFactory
public class StrategyFactory
The Strategy Factory is responsible for creating strategy objects on demand. The factory is implemented as singleton. A implementation of IStrategy can be registered at the StrategyFactory.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.palamedes.gdl.core.model.utils.AbstractFactory |
---|
AbstractFactory.FactoryDescription |
Field Summary |
---|
Fields inherited from class org.eclipse.palamedes.gdl.core.model.utils.AbstractFactory |
---|
descriptions |
Method Summary | |
---|---|
IStrategy |
createStrategy(AbstractFactory.FactoryDescription description)
|
IStrategy |
createStrategy(int index)
|
IStrategy |
createStrategy(java.lang.String name)
|
static StrategyFactory |
getInstance()
Returns the instance of the strategy factory. |
Methods inherited from class org.eclipse.palamedes.gdl.core.model.utils.AbstractFactory |
---|
addDescription, addDescription, createInstance, createInstance, getDescriptionByName, getDescriptions, removeDescription |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static StrategyFactory getInstance()
public IStrategy createStrategy(int index)
public IStrategy createStrategy(java.lang.String name)
public IStrategy createStrategy(AbstractFactory.FactoryDescription description)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |