agentland.software
Interface Exec

All Known Subinterfaces:
Laurete
All Known Implementing Classes:
ExecAgent

public interface Exec
extends Managed

This agent controls an exec'ed program. You can ask it questions, etc. The best thing to do with this agent is inheret from it.


Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Method Summary
 void killProgram()
          Kill the program.
 boolean programAlive()
          Is program alive or dead?
 void startProgram()
          Start the program, unless it is already running.
 
Methods inherited from interface agentland.resource.Managed
getNeed, replace, resources, yank, yank
 
Methods inherited from interface agentland.util.Good
getHistory, getHistoryElement, resetHistory
 
Methods inherited from interface agentland.util.Spy
tell
 

Method Detail

programAlive

public boolean programAlive()
                     throws RemoteException
Is program alive or dead?

startProgram

public void startProgram()
                  throws RemoteException
Start the program, unless it is already running.

killProgram

public void killProgram()
                 throws RemoteException
Kill the program.