agentland.geo
Interface Geometry

All Superinterfaces:
Agent, Good, Managed, Remote, Spy
All Known Implementing Classes:
GeometryAgent

public interface Geometry
extends Managed

Manage the physical space of a society. Agents can have physical Manifestations which can be moved around the rooms manifestation. You can ask where agents are, what agents are closest to a given space, etc.


Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 AgentID getAgentAt(int x, int y, int z)
           
 AgentID getAgentAt(Point3D point)
          Return agent at given point
 AgentID getAgentClosestTo(int x, int y, int z)
           
 AgentID getAgentClosestTo(Point3D point)
          Return agent nearest given point
 Manifestation getManifestation(AgentID agt)
           
 Vector getManifestations(Filter f)
          Get all manifestations matching the filter.
 Vector getManifestationsByID(Filter f)
           
 Manifestation getSpace()
           
 void moveAgent(AgentID agt, int dx, int dy, int dz)
          Probably the most common manipulation.
 void removeManifestation(AgentID agt)
           
 void setManifestation(AgentID agt, Manifestation manif)
           
 void setSpace(Manifestation manif)
           
 
Methods inherited from interface agentland.resource.Managed
getNeed, replace, replace, resources, yank, yank
 
Methods inherited from interface agentland.util.Good
getHistory, getHistoryElement, resetHistory
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 

Method Detail

setManifestation

public void setManifestation(AgentID agt,
                             Manifestation manif)
                      throws RemoteException

removeManifestation

public void removeManifestation(AgentID agt)
                         throws RemoteException

setSpace

public void setSpace(Manifestation manif)
              throws RemoteException

getManifestation

public Manifestation getManifestation(AgentID agt)
                               throws RemoteException

getSpace

public Manifestation getSpace()
                       throws RemoteException

getManifestations

public Vector getManifestations(Filter f)
                         throws RemoteException
Get all manifestations matching the filter. Null filter gives over all of em!
Parameters:
f - Filter that filters on the Manifestations

getManifestationsByID

public Vector getManifestationsByID(Filter f)
                             throws RemoteException

getAgentAt

public AgentID getAgentAt(Point3D point)
                   throws RemoteException
Return agent at given point

getAgentAt

public AgentID getAgentAt(int x,
                          int y,
                          int z)
                   throws RemoteException

getAgentClosestTo

public AgentID getAgentClosestTo(Point3D point)
                          throws RemoteException
Return agent nearest given point

getAgentClosestTo

public AgentID getAgentClosestTo(int x,
                                 int y,
                                 int z)
                          throws RemoteException

moveAgent

public void moveAgent(AgentID agt,
                      int dx,
                      int dy,
                      int dz)
               throws RemoteException
Probably the most common manipulation. Move the agent.