agentland.rufus
Interface Daemon

All Superinterfaces:
Agent, Good, Managed, Remote, Spy
All Known Subinterfaces:
ConfuciusClock, ConfuciusSign, Mumble, NewsDisplay, NewsSign
All Known Implementing Classes:
DaemonAgent

public interface Daemon
extends Managed

An agent which acts() every meanTime seconds.


Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 int getMeanTime()
          Returns the mean time in seconds between actions
 boolean isStopped()
           
 void setMeanTime(int seconds)
           
 void startDaemon()
          Start the quoting process.
 void stopDaemon()
          Stop the mumbling process.
 
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, getOldLogs, shutdown, startup, whereAreYou
 
Methods inherited from interface agentland.util.Spy
tell
 

Method Detail

setMeanTime

public void setMeanTime(int seconds)
                 throws RemoteException

getMeanTime

public int getMeanTime()
                throws RemoteException
Returns the mean time in seconds between actions

startDaemon

public void startDaemon()
                 throws RemoteException
Start the quoting process.

stopDaemon

public void stopDaemon()
                throws RemoteException
Stop the mumbling process.

isStopped

public boolean isStopped()
                  throws RemoteException
Returns:
true if it is mumbling.