Package ora4mas.light
Class LightGroupBoard
- java.lang.Object
-
- cartago.Artifact
-
- ora4mas.nopl.OrgArt
-
- ora4mas.nopl.GroupBoard
-
- ora4mas.light.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
- 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 Summary
Fields Modifier and Type Field Description protected java.util.logging.Logger
logger
-
Fields inherited from class ora4mas.nopl.GroupBoard
futureSchemes, grBoards, listeners, obsPropParentGroup, obsPropPlay, obsPropSchemes, obsPropSpec, obsPropSubgroups, obsWellFormed, parentGroup, schemes, spec
-
Fields inherited from class ora4mas.nopl.OrgArt
dfpListeners, gui, myNPLListener, nengine, oeId, orgBoardName, orgState, ownerAgent, running, runningDestroy, sglDestroyed, sglNormFailure, sglOblCreated, sglOblFulfilled, sglOblInactive, sglOblUnfulfilled, updateGUIThread
-
-
Constructor Summary
Constructors Constructor Description LightGroupBoard()
-
Method Summary
-
Methods inherited from class ora4mas.nopl.GroupBoard
addListener, addRole, addScheme, addSchemeWhenFormationOk, admCommand, adoptRole, agKilled, debug, destroy, getAsDOM, getAsDot, getGrAsDOM, getGroupBoards, getGrpState, getLogger, getNPLSrc, getSpec, getStyleSheetName, init, isWellFormed, leaveRole, leaveRoleWithoutVerify, notifyObservers, removeScheme, setCardinality, setParentGroup, updateWellFormed
-
Methods inherited from class ora4mas.nopl.OrgArt
consult, debug, fixAgName, fixOSFile, getArtId, getDebugText, getNormativeEngine, getNSTransformer, getOEId, getOpUserName, getParser, getStyleSheet, initNormativeEngine, initWspRuleEngine, installNormativeSignaler, isRelevant, isUserAllowed, ora4masOperationTemplate, postReorgUpdates, setOrgBoardName, setOwner, specToStr, updateGuiOE
-
Methods inherited from class cartago.Artifact
await, await, await_time, beginExtSession, commit, defineNewOp, defineObsProperty, defineOp, delay, dispose, dispose, endExtSession, endExtSessionWithFailure, execInternalOp, execLinkedOp, execLinkedOp, failed, failed, getCreatorId, getCurrentOpAgentBody, getCurrentOpAgentId, getId, getLinkedArtifacts, getManualSrcFile, getObservabilityRadius, getObsProperty, getObsPropertyByTemplate, getOpKey, getPosition, hasObsProperty, hasObsPropertyByTemplate, isLinked, log, lookupArtifact, makeArtifact, removeObsProperty, removeObsPropertyByTemplate, removeOp, setupOperations, setupPosition, signal, signal, updateObservabilityRadius, updateObsProperty, updatePosition
-
-
-
-
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 classGroupBoard
- Parameters:
role
- the role being adopted- Throws:
npl.parser.ParseException
MoiseException
-
-