agentland.geo
Class GeometryAgent

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--metaglue.AgentAgent
                          |
                          +--agentland.util.GoodAgent
                                |
                                +--agentland.resource.ManagedAgent
                                      |
                                      +--agentland.geo.GeometryAgent
All Implemented Interfaces:
Agent, Geometry, Good, Managed, MetagluePrimitives, Remote, Serializable, Spy

public class GeometryAgent
extends ManagedAgent
implements Geometry

See Also:
Serialized Form

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Fields inherited from class agentland.resource.ManagedAgent
rm, society
 
Fields inherited from class agentland.util.GoodAgent
alert, notifier
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
GeometryAgent()
           
 
Method Summary
 AgentID getAgentAt(int x, int y, int z)
           
 AgentID getAgentAt(Point3D point)
          Return agent at given point (first one found)
 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 class agentland.resource.ManagedAgent
connect, getAlert, getNeed, isAvailable, isAvailable, reliesOn, reliesOn, replace, replace, request, request, request, requestAgent, requestAgent, resources, resourcesByAgentID, setNeed, tiedTo, yank, yank, yank
 
Methods inherited from class agentland.util.GoodAgent
addSpy, addSpy, alert, alertString, beep, error, getHistory, getHistoryElement, getPersistentMap, log, notify, removeSpy, removeSpy, resetHistory, safeRely, safeRely, safeRely, setNiceLogName, tell
 
Methods inherited from class metaglue.AgentAgent
addMonitor, alive, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalog, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getProperties, getSociety, log, log, lookupClass, obtainMetaglueAgent, obtainMetaglueAgent, obtainMetaglueAgentByName, reliesOn, reliesOnSynch, removeFrozen, replaceExceptionHandler, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, whereAreYou
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

GeometryAgent

public GeometryAgent()
              throws RemoteException
Method Detail

setManifestation

public void setManifestation(AgentID agt,
                             Manifestation manif)
                      throws RemoteException
Specified by:
setManifestation in interface Geometry

removeManifestation

public void removeManifestation(AgentID agt)
                         throws RemoteException
Specified by:
removeManifestation in interface Geometry

getManifestation

public Manifestation getManifestation(AgentID agt)
                               throws RemoteException
Specified by:
getManifestation in interface Geometry

getManifestations

public Vector getManifestations(Filter f)
                         throws RemoteException
Get all manifestations matching the filter. Null filter gives over all of em!
Specified by:
getManifestations in interface Geometry
Following copied from interface: agentland.geo.Geometry
Parameters:
f - Filter that filters on the Manifestations

getManifestationsByID

public Vector getManifestationsByID(Filter f)
                             throws RemoteException
Specified by:
getManifestationsByID in interface Geometry

moveAgent

public void moveAgent(AgentID agt,
                      int dx,
                      int dy,
                      int dz)
               throws RemoteException
Probably the most common manipulation. Move the agent.
Specified by:
moveAgent in interface Geometry

getSpace

public Manifestation getSpace()
                       throws RemoteException
Specified by:
getSpace in interface Geometry

setSpace

public void setSpace(Manifestation manif)
Specified by:
setSpace in interface Geometry

getAgentAt

public AgentID getAgentAt(Point3D point)
                   throws RemoteException
Return agent at given point (first one found)
Specified by:
getAgentAt in interface Geometry

getAgentAt

public AgentID getAgentAt(int x,
                          int y,
                          int z)
                   throws RemoteException
Specified by:
getAgentAt in interface Geometry

getAgentClosestTo

public AgentID getAgentClosestTo(Point3D point)
                          throws RemoteException
Return agent nearest given point
Specified by:
getAgentClosestTo in interface Geometry

getAgentClosestTo

public AgentID getAgentClosestTo(int x,
                                 int y,
                                 int z)
                          throws RemoteException
Specified by:
getAgentClosestTo in interface Geometry