Class BaseAgent
- java.lang.Object
-
- jadex.bdiv3.examples.garbagecollector.BaseAgent
-
- Direct Known Subclasses:
GarbageBurnerAgent
,GarbageCollectorAgent
public abstract class BaseAgent extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
protected Grid2D
env
The environment.protected java.util.List<ISpaceObject>
garbages
The garbages.protected ISpaceObject
myself
The environment.
-
Constructor Summary
Constructors Constructor Description BaseAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IInternalAccess
getAgent()
Get the agent.Grid2D
getEnvironment()
Get the env.ISpaceObject
getMyself()
Get the myself.IVector2
getPosition()
Get the pos.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
-
env
protected Grid2D env
The environment.
-
myself
protected ISpaceObject myself
The environment.
-
garbages
protected java.util.List<ISpaceObject> garbages
The garbages.
-
-
Method Detail
-
getEnvironment
public Grid2D getEnvironment()
Get the env.- Returns:
- The env.
-
getPosition
public IVector2 getPosition()
Get the pos.- Returns:
- The pos.
-
getMyself
public ISpaceObject getMyself()
Get the myself.- Returns:
- The myself.
-
getAgent
public IInternalAccess getAgent()
Get the agent.- Returns:
- The agent.
-
-