public class AGRSpace
extends java.lang.Object
implements jadex.application.IExtensionInstance
Modifier and Type | Field and Description |
---|---|
protected MAGRSpaceInstance |
config
The config.
|
protected jadex.bridge.IExternalAccess |
exta
The external access.
|
protected java.util.Map<java.lang.String,Group> |
groups
The groups.
|
Constructor and Description |
---|
AGRSpace(jadex.bridge.IExternalAccess exta,
MAGRSpaceInstance config) |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(Group group)
Add a group to the space.
|
void |
componentAdded(jadex.bridge.service.types.cms.IComponentDescription desc)
Called from application component, when a component was added.
|
void |
componentRemoved(jadex.bridge.service.types.cms.IComponentDescription cid)
Called from application component, when a component was removed.
|
Group |
getGroup(java.lang.String name)
Get a group by name.
|
jadex.commons.future.IFuture<java.lang.Void> |
init()
Initialize the extension.
|
jadex.commons.future.IFuture<java.lang.Void> |
terminate()
Initialize the extension.
|
protected java.util.Map<java.lang.String,Group> groups
protected jadex.bridge.IExternalAccess exta
protected MAGRSpaceInstance config
public AGRSpace(jadex.bridge.IExternalAccess exta, MAGRSpaceInstance config)
public void addGroup(Group group)
group
- The group to add.public Group getGroup(java.lang.String name)
name
- The name of the group.public void componentAdded(jadex.bridge.service.types.cms.IComponentDescription desc)
cid
- The id of the added component.public void componentRemoved(jadex.bridge.service.types.cms.IComponentDescription cid)
cid
- The id of the removed component.public jadex.commons.future.IFuture<java.lang.Void> init()
init
in interface jadex.application.IExtensionInstance
public jadex.commons.future.IFuture<java.lang.Void> terminate()
terminate
in interface jadex.application.IExtensionInstance