Package ora4mas.simple
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):
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
-
Nested Class Summary
Nested classes/interfaces inherited from class cartago.Artifact
cartago.Artifact.AbstractAsyncProcess -
Field Summary
Fields Modifier and Type Field Description protected java.util.logging.LoggerloggerFields inherited from class ora4mas.nopl.GroupBoard
futureSchemes, grBoards, listeners, obsPropParentGroup, obsPropPlay, obsPropSchemes, obsPropSpec, obsPropSubgroups, obsWellFormed, parentGroup, schemes, specFields inherited from class ora4mas.nopl.OrgArt
dfpListeners, gui, myNPLListener, nengine, normativeEvtListeners, oeId, orgBoardName, orgState, ownerAgent, running, runningDestroy, sglDestroyed, sglNormFailure, sglOblCreated, sglOblFulfilled, sglOblInactive, sglOblUnfulfilled, sglSanction, updateGUIThreadFields inherited from class cartago.Artifact
observabilityRadius, position, thisOpId -
Constructor Summary
Constructors Constructor Description SimpleGroupBoard() -
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, updateWellFormedMethods 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, updateGuiOEMethods 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, updatePositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface npl.DynamicFactsProvider
consultFromCollection, consultFromProviders
-
Field Details
-
logger
protected java.util.logging.Logger logger
-
-
Constructor Details
-
SimpleGroupBoard
public SimpleGroupBoard()
-
-
Method Details
-
init
Initialises the group board- Throws:
npl.parser.ParseExceptionMoiseExceptioncartago.OperationException
-
adoptRole
public void adoptRole(java.lang.String role)The agent executing this operation tries to adopt a role in the group- Overrides:
adoptRolein classGroupBoard- Parameters:
role- the role being adopted- Throws:
npl.parser.ParseExceptionMoiseException
-