public class GroupBoard extends OrgArt
Group
Modifier and Type | Field and Description |
---|---|
protected java.util.logging.Logger |
logger |
static java.lang.String |
obsPropParentGroup |
static java.lang.String |
obsPropPlay |
static java.lang.String |
obsPropSchemes |
static java.lang.String |
obsPropSpec |
static java.lang.String |
obsPropSubgroups |
static java.lang.String |
obsWellFormed |
gui, monitorSchArt, myNPLListener, nengine, orgState, ownerAgent, running, sglDestroyed, sglNormFailure, sglOblCreated, sglOblFulfilled, sglOblInactive, sglOblUnfulfilled, updateGUIThread
Constructor and Description |
---|
GroupBoard() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(java.lang.String artId) |
void |
addScheme(java.lang.String schId)
the group starts being responsible for the scheme schId
|
void |
admCommand(java.lang.String cmd) |
void |
adoptRole(java.lang.String role)
The agent executing this operation tries to adopt a role in the group
|
void |
destroy() |
org.w3c.dom.Element |
getAsDOM(org.w3c.dom.Document document) |
static org.w3c.dom.Element |
getGrAsDOM(Group gr,
java.lang.String spec,
boolean isWellFormed,
java.lang.String owner,
Group root,
org.w3c.dom.Document document) |
protected java.lang.String |
getStyleSheetName() |
void |
init(java.lang.String osFile,
java.lang.String grType,
boolean createMonitoring,
boolean hasGUI)
Initialises the group board
|
boolean |
isWellFormed() |
void |
leaveRole(java.lang.String role)
The agent executing this operation tries to give up a role in the group
|
void |
removeScheme(java.lang.String schId) |
void |
setParentGroup(java.lang.String parentGroupId) |
consult, fixAgName, getNPLInterpreter, getNSTransformer, getParser, getStyleSheet, initNormativeEngine, installNormativeSignaler, isRelevant, setOwner, specToStr, startHttpServer, updateGuiOE
await_time, await, await, commit, defineObsProperty, defineOp, delay, dispose, dispose, execInternalOp, execLinkedOp, execLinkedOp, failed, failed, getCreatorId, getId, getManualSrcFile, getObservabilityRadius, getObsProperty, getObsPropertyByTemplate, getOpKey, getOpUserId, getOpUserName, getPosition, hasObsProperty, hasObsPropertyByTemplate, isLinked, log, lookupArtifact, makeArtifact, removeObsProperty, removeObsPropertyByTemplate, setupOperations, setupPosition, signal, signal, updateObservabilityRadius, updateObsProperty, updatePosition
public static final java.lang.String obsPropSpec
public static final java.lang.String obsPropPlay
public static final java.lang.String obsPropSchemes
public static final java.lang.String obsPropSubgroups
public static final java.lang.String obsPropParentGroup
public static final java.lang.String obsWellFormed
protected java.util.logging.Logger logger
public void init(java.lang.String osFile, java.lang.String grType, boolean createMonitoring, boolean hasGUI) throws ParseException, MoiseException, cartago.OperationException
osFile
- the organisation specification file (path and file name)grType
- the type of the group (as defined in the OS)createMonitoring
- whether a monitoring scheme will be created and attachedhasGUI
- whether a GUI have to be created for the artifactParseException
- if the OS file is not correctMoiseException
- if grType was not specifiedcartago.OperationException
- if parentGroupId doesn't exitpublic void setParentGroup(java.lang.String parentGroupId) throws cartago.OperationException
cartago.OperationException
public void adoptRole(java.lang.String role)
role
- the role being adoptedpublic void leaveRole(java.lang.String role)
role
- the role being removed/leavedpublic void addScheme(java.lang.String schId)
public void removeScheme(java.lang.String schId)
public void addListener(java.lang.String artId)
public void admCommand(java.lang.String cmd) throws cartago.CartagoException, jason.asSyntax.parser.ParseException
cartago.CartagoException
jason.asSyntax.parser.ParseException
protected java.lang.String getStyleSheetName()
getStyleSheetName
in class OrgArt
public boolean isWellFormed()
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document)