Package ora4mas.light

Class LightGroupBoard

  • All Implemented Interfaces:
    ToXML, npl.DynamicFactsProvider

    public class LightGroupBoard
    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 Detail

      • logger

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

      • LightGroupBoard

        public LightGroupBoard()
    • Method Detail

      • 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