|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.game.AgentFactory
public class AgentFactory
Provides a factory for creating and configuring agents in the game framework.
Constructor Summary | |
---|---|
AgentFactory()
Construct this object. |
Method Summary | |
---|---|
static IAgent |
create(Class agentClass,
Properties properties,
int index)
Create and return the desired agent. |
static IAgent |
create(Class agentClass,
Properties properties,
int index,
String name,
ITeam team,
int searchDepth)
Create and return the desired agent. |
static IAgent |
create(Properties properties,
int index)
Create and return the desired agent. |
static IAgent |
create(Properties properties,
int index,
String name,
ITeam team)
Create and return the desired agent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgentFactory()
Method Detail |
---|
public static IAgent create(Properties properties, int index) throws ClassNotFoundException, InstantiationException, IllegalAccessException
IllegalArgumentException
- if properties is null, or index is
less than zero.
ClassNotFoundException
InstantiationException
IllegalAccessException
public static IAgent create(Class agentClass, Properties properties, int index) throws InstantiationException, IllegalAccessException
IllegalArgumentException
- if agentClass is null, properties is
null, or index is less than zero.
InstantiationException
IllegalAccessException
public static IAgent create(Properties properties, int index, String name, ITeam team) throws ClassNotFoundException, InstantiationException, IllegalAccessException
IllegalArgumentException
- if properties is null, index is less
than zero, name is null, or team is
null.
ClassNotFoundException
InstantiationException
IllegalAccessException
public static IAgent create(Class agentClass, Properties properties, int index, String name, ITeam team, int searchDepth) throws InstantiationException, IllegalAccessException
IllegalArgumentException
- if agentClass is null, properties is
null, index is less than zero, name is
null, or team is null.
InstantiationException
IllegalAccessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |