jadex.application.space.agr
Class AGRSpace

java.lang.Object
  extended by jadex.application.space.agr.AGRSpace
All Implemented Interfaces:
ISpace

public class AGRSpace
extends Object
implements ISpace

An AGR (agent-group-role) space.


Field Summary
protected  IApplication application
          The application.
protected  Map groups
          The groups.
 
Constructor Summary
AGRSpace()
           
 
Method Summary
 void addGroup(Group group)
          Add a group to the space.
 void componentAdded(IComponentIdentifier cid)
          Called from application component, when a component was added.
 void componentRemoved(IComponentIdentifier cid)
          Called from application component, when a component was removed.
 Group getGroup(String name)
          Get a group by name.
 void initSpace(IApplication application, MSpaceInstance config, IValueFetcher fetcher)
          Initialize a space.
 void terminate()
          Terminate the space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groups

protected Map groups
The groups.


application

protected IApplication application
The application.

Constructor Detail

AGRSpace

public AGRSpace()
Method Detail

addGroup

public void addGroup(Group group)
Add a group to the space.

Parameters:
group - The group to add.

getGroup

public Group getGroup(String name)
Get a group by name.

Parameters:
name - The name of the group.
Returns:
The group (if any).

componentAdded

public void componentAdded(IComponentIdentifier cid)
Called from application component, when a component was added.

Specified by:
componentAdded in interface ISpace
Parameters:
cid - The id of the added component.

componentRemoved

public void componentRemoved(IComponentIdentifier cid)
Called from application component, when a component was removed.

Specified by:
componentRemoved in interface ISpace
Parameters:
cid - The id of the removed component.

terminate

public void terminate()
Terminate the space.

Specified by:
terminate in interface ISpace

initSpace

public void initSpace(IApplication application,
                      MSpaceInstance config,
                      IValueFetcher fetcher)
               throws Exception
Description copied from interface: ISpace
Initialize a space. Called once, when the space is created.

Specified by:
initSpace in interface ISpace
Throws:
Exception


Copyright © 2010. All Rights Reserved.