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
| 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 interface agentland.util.Spy |
tell |
GeometryAgent
public GeometryAgent()
throws RemoteException
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