Class BaseAgent
- java.lang.Object
- 
- jadex.bdiv3.examples.garbagecollector.BaseAgent
 
- 
- Direct Known Subclasses:
- GarbageBurnerAgent,- GarbageCollectorAgent
 
 public abstract class BaseAgent extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentprotected Grid2DenvThe environment.protected java.util.List<ISpaceObject>garbagesThe garbages.protected ISpaceObjectmyselfThe environment.
 - 
Constructor SummaryConstructors Constructor Description BaseAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IInternalAccessgetAgent()Get the agent.Grid2DgetEnvironment()Get the env.ISpaceObjectgetMyself()Get the myself.IVector2getPosition()Get the pos.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent 
 - 
envprotected Grid2D env The environment.
 - 
myselfprotected ISpaceObject myself The environment.
 - 
garbagesprotected java.util.List<ISpaceObject> garbages The garbages.
 
- 
 - 
Method Detail- 
getEnvironmentpublic Grid2D getEnvironment() Get the env.- Returns:
- The env.
 
 - 
getPositionpublic IVector2 getPosition() Get the pos.- Returns:
- The pos.
 
 - 
getMyselfpublic ISpaceObject getMyself() Get the myself.- Returns:
- The myself.
 
 - 
getAgentpublic IInternalAccess getAgent() Get the agent.- Returns:
- The agent.
 
 
- 
 
-