|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.defcon.agentmanager.DefConAgentManager
public class DefConAgentManager
This class is being used to instantiate new agents.
Method Summary | ||
---|---|---|
|
getAgentInstance(Class<? extends DefConAgentModule> cls)
Instantiates a new agent from given module. |
|
DefConAgent |
getAgentInstance(String className)
Simplified call to getAgentInstance(Class |
|
static DefConAgentManager |
getInstance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DefConAgentManager getInstance()
public <T extends DefConAgent<?>> T getAgentInstance(Class<? extends DefConAgentModule> cls) throws CantInstantiateAgentException, ModuleForAgentClassNotFoundException
T
- Agent's super type (useful for simpler conversions).cls
- Module class.
CantInstantiateAgentException
- Instantiation failed.
ModuleForAgentClassNotFoundException
- Module is null?public DefConAgent getAgentInstance(String className) throws CantInstantiateAgentException, ModuleForAgentClassNotFoundException
className
- simple class name
CantInstantiateAgentException
- Instantiation failed.
ModuleForAgentClassNotFoundException
- Module is null?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |