c4jason
Class CartagoEnvironment

java.lang.Object
  extended by Environment
      extended by c4jason.CartagoEnvironment

public class CartagoEnvironment
extends Environment

Jason Environment Class enabling access to CArtAgO environments.

Author:
aricci

Constructor Summary
CartagoEnvironment()
           
 
Method Summary
static CartagoEnvironment getInstance()
          Get the instance of this environment.
 void init(java.lang.String[] args)
           
 ICartagoSession startSession(java.lang.String agName, CAgentArch arch)
          Join an agent to the default workspace of the node
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CartagoEnvironment

public CartagoEnvironment()
Method Detail

init

public void init(java.lang.String[] args)

getInstance

public static CartagoEnvironment getInstance()
Get the instance of this environment.

Returns:

startSession

public ICartagoSession startSession(java.lang.String agName,
                                    CAgentArch arch)
                             throws java.lang.Exception
Join an agent to the default workspace of the node

Parameters:
agName - agent node
arch - agent arch. class
Returns:
the interface to act inside the workspace
Throws:
java.lang.Exception

stop

public void stop()


>DEIS - University of Bologna