Class AGRSpace

  • All Implemented Interfaces:
    jadex.application.IExtensionInstance

    public class AGRSpace
    extends java.lang.Object
    implements jadex.application.IExtensionInstance
    An AGR (agent-group-role) space.
    • Field Detail

      • groups

        protected java.util.Map<java.lang.String,​Group> groups
        The groups.
    • Method Detail

      • addGroup

        public void addGroup​(Group group)
        Add a group to the space.
        Parameters:
        group - The group to add.
      • getGroup

        public Group getGroup​(java.lang.String name)
        Get a group by name.
        Parameters:
        name - The name of the group.
        Returns:
        The group (if any).
      • componentAdded

        public void componentAdded​(IComponentDescription desc)
        Called from application component, when a component was added.
        Parameters:
        cid - The id of the added component.
      • componentRemoved

        public void componentRemoved​(IComponentDescription cid)
        Called from application component, when a component was removed.
        Parameters:
        cid - The id of the removed component.
      • init

        public IFuture<java.lang.Void> init()
        Initialize the extension. Called once, when the extension is created.
        Specified by:
        init in interface jadex.application.IExtensionInstance
      • terminate

        public IFuture<java.lang.Void> terminate()
        Initialize the extension. Called once, when the extension is terminate.
        Specified by:
        terminate in interface jadex.application.IExtensionInstance