lime
Class StationaryAgent

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--lime.StationaryAgent
All Implemented Interfaces:
ILimeAgent, java.lang.Runnable, java.io.Serializable

public class StationaryAgent
extends java.lang.Thread
implements ILimeAgent

In Lime, a Lime tuple space is always permanently associated with an ILimeAgent object. An agent has a globally unique identifier, automatically generated by the system. The association between an agent and a Lime tuple space is established when the latter is created, by passing the identifier of a given agent to the tuple space constructor. An agent A can pass the handle to one of its Lime tuple spaces to other agents, but only A will be able to perform operations on it.

StationaryAgent objects are stationary, i.e., they are permanently bound to the host where they have been created.

Version:
1.0 alpha
Author:
Amy L. Murphy, Gian Pietro Picco
See Also:
LimeTupleSpace, Serialized Form

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StationaryAgent()
          Create a new stationary agent.
StationaryAgent(java.lang.Runnable target)
          Create a new agent that can access the Lime tuple space of the parent agent.
StationaryAgent(java.lang.Runnable target, java.lang.String name)
          Create a new thread that can access the Lime tuple space of the parent agent.
StationaryAgent(java.lang.String name)
          Create a new thread that can access the Lime tuple space of the parent agent.
StationaryAgent(java.lang.ThreadGroup group, java.lang.Runnable target)
          Create a new thread that can access the Lime tuple space of the parent agent.
StationaryAgent(java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name)
          Create a new thread that can access the Lime tuple space of the parent agent.
StationaryAgent(java.lang.ThreadGroup group, java.lang.String name)
          Create a new thread that can access the Lime tuple space of the parent agent.
 
Method Summary
 LimeAgentMgr getMgr()
          Returns the manager of this agent.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StationaryAgent

public StationaryAgent()
Create a new stationary agent.

StationaryAgent

public StationaryAgent(java.lang.Runnable target)
Create a new agent that can access the Lime tuple space of the parent agent.
See Also:
Thread.Thread(Runnable)

StationaryAgent

public StationaryAgent(java.lang.Runnable target,
                       java.lang.String name)
Create a new thread that can access the Lime tuple space of the parent agent.
See Also:
Thread.Thread(Runnable, String)

StationaryAgent

public StationaryAgent(java.lang.String name)
Create a new thread that can access the Lime tuple space of the parent agent.
See Also:
Thread.Thread(String)

StationaryAgent

public StationaryAgent(java.lang.ThreadGroup group,
                       java.lang.Runnable target)
Create a new thread that can access the Lime tuple space of the parent agent.
See Also:
Thread.Thread(ThreadGroup, Runnable)

StationaryAgent

public StationaryAgent(java.lang.ThreadGroup group,
                       java.lang.Runnable target,
                       java.lang.String name)
Create a new thread that can access the Lime tuple space of the parent agent.
See Also:
Thread.Thread(ThreadGroup, Runnable, String)

StationaryAgent

public StationaryAgent(java.lang.ThreadGroup group,
                       java.lang.String name)
Create a new thread that can access the Lime tuple space of the parent agent.
See Also:
Thread.Thread(ThreadGroup, String)
Method Detail

getMgr

public LimeAgentMgr getMgr()
Returns the manager of this agent.
Specified by:
getMgr in interface ILimeAgent
Returns:
the manager of this agent.