Class SimpleGroupBoard

java.lang.Object
cartago.Artifact
ora4mas.nopl.OrgArt
ora4mas.nopl.GroupBoard
ora4mas.simple.SimpleGroupBoard
All Implemented Interfaces:
ToXML, npl.DynamicFactsProvider

public class SimpleGroupBoard
extends GroupBoard
Artifact to manage a group instance.

Operations (see details in method list below):
  • adoptRole
  • leaveRole
  • addScheme
  • removeScheme
  • destroy
Observable properties:
  • play(ag,role,group): agent ag is playing the role in the group.
  • schemes: a list of schemes identification the group is responsible for.
  • formationStatus: whether the group is well-formed (values are ok and nok)
Author:
Jomi
See Also:
Group
  • Field Details

    • logger

      protected java.util.logging.Logger logger
  • Constructor Details

    • SimpleGroupBoard

      public SimpleGroupBoard()
  • Method Details

    • init

      public void init() throws npl.parser.ParseException, MoiseException, cartago.OperationException
      Initialises the group board
      Throws:
      npl.parser.ParseException
      MoiseException
      cartago.OperationException
    • adoptRole

      public void adoptRole​(java.lang.String role)
      The agent executing this operation tries to adopt a role in the group
      Overrides:
      adoptRole in class GroupBoard
      Parameters:
      role - the role being adopted
      Throws:
      npl.parser.ParseException
      MoiseException