|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.examples.marsworld.Environment
public class Environment
The environment as singleton.
Field Summary | |
---|---|
static String |
CARRY_AGENT
The carry agent type. |
static String |
PRODUCTION_AGENT
The production agent type. |
static String |
SENTRY_AGENT
The sentry agent type. |
Method Summary | |
---|---|
static Environment |
createInstance()
Create a new instance. |
AgentInfo[] |
getAgentInfos()
Get all agent infos. |
Homebase |
getHomebase()
Get the homebase. |
static Environment |
getInstance()
Get the environment. |
Target |
getTarget(Location loc)
Get a target for a location. |
Target |
getTarget(String id)
Get the target for the target-id. |
Target[] |
getTargets()
The the info for an agent |
Target[] |
getTargetsNear(Location loc,
double tolerance)
Get all targets near a position. |
void |
setAgentInfo(AgentInfo agentinfo)
The the info for an agent. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CARRY_AGENT
public static final String PRODUCTION_AGENT
public static final String SENTRY_AGENT
Method Detail |
---|
public static Environment getInstance()
public static Environment createInstance()
public Target[] getTargets()
public Target[] getTargetsNear(Location loc, double tolerance)
public Homebase getHomebase()
public void setAgentInfo(AgentInfo agentinfo)
public AgentInfo[] getAgentInfos()
public Target getTarget(Location loc)
public Target getTarget(String id)
|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.