public static class SetStrategySGAgent.SetStrategyAgentFactory extends java.lang.Object implements AgentFactory
| Modifier and Type | Field and Description |
|---|---|
protected SGDomain |
domain
The domain in which the agent will play
|
protected Policy |
policy
The strategy this agent will follow
|
| Constructor and Description |
|---|
SetStrategyAgentFactory(SGDomain domain,
Policy policy) |
| Modifier and Type | Method and Description |
|---|---|
SGAgent |
generateAgent(java.lang.String agentName,
SGAgentType type)
Generates a new
SGAgent |
protected Policy policy
protected SGDomain domain
public SGAgent generateAgent(java.lang.String agentName, SGAgentType type)
AgentFactorySGAgentgenerateAgent in interface AgentFactoryagentName - the name for the agenttype - the SGAgentType for the agentSGAgent