Package jadex.extension.agr
Class AGRSpace
- java.lang.Object
- 
- jadex.extension.agr.AGRSpace
 
- 
- All Implemented Interfaces:
- jadex.application.IExtensionInstance
 
 public class AGRSpace extends java.lang.Object implements jadex.application.IExtensionInstanceAn AGR (agent-group-role) space.
- 
- 
Field SummaryFields Modifier and Type Field Description protected MAGRSpaceInstanceconfigThe config.protected IExternalAccessextaThe external access.protected java.util.Map<java.lang.String,Group>groupsThe groups.
 - 
Constructor SummaryConstructors Constructor Description AGRSpace(IExternalAccess exta, MAGRSpaceInstance config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroup(Group group)Add a group to the space.voidcomponentAdded(IComponentDescription desc)Called from application component, when a component was added.voidcomponentRemoved(IComponentDescription cid)Called from application component, when a component was removed.GroupgetGroup(java.lang.String name)Get a group by name.IFuture<java.lang.Void>init()Initialize the extension.IFuture<java.lang.Void>terminate()Initialize the extension.
 
- 
- 
- 
Field Detail- 
groupsprotected java.util.Map<java.lang.String,Group> groups The groups.
 - 
extaprotected IExternalAccess exta The external access.
 - 
configprotected MAGRSpaceInstance config The config.
 
- 
 - 
Constructor Detail- 
AGRSpacepublic AGRSpace(IExternalAccess exta, MAGRSpaceInstance config) 
 
- 
 - 
Method Detail- 
addGrouppublic void addGroup(Group group) Add a group to the space.- Parameters:
- group- The group to add.
 
 - 
getGrouppublic Group getGroup(java.lang.String name) Get a group by name.- Parameters:
- name- The name of the group.
- Returns:
- The group (if any).
 
 - 
componentAddedpublic void componentAdded(IComponentDescription desc) Called from application component, when a component was added.- Parameters:
- cid- The id of the added component.
 
 - 
componentRemovedpublic void componentRemoved(IComponentDescription cid) Called from application component, when a component was removed.- Parameters:
- cid- The id of the removed component.
 
 - 
initpublic IFuture<java.lang.Void> init() Initialize the extension. Called once, when the extension is created.- Specified by:
- initin interface- jadex.application.IExtensionInstance
 
 - 
terminatepublic IFuture<java.lang.Void> terminate() Initialize the extension. Called once, when the extension is terminate.- Specified by:
- terminatein interface- jadex.application.IExtensionInstance
 
 
- 
 
-