public class SchemeBoard extends OrgArt
Scheme
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
obsPropCommitment |
static java.lang.String |
obsPropGroups |
static java.lang.String |
obsPropSpec |
static jason.asSyntax.PredicateIndicator |
piGoalState |
gui, monitorSchArt, myNPLListener, nengine, orgState, ownerAgent, running, sglDestroyed, sglNormFailure, sglOblCreated, sglOblFulfilled, sglOblInactive, sglOblUnfulfilled, updateGUIThread
Constructor and Description |
---|
SchemeBoard() |
Modifier and Type | Method and Description |
---|---|
void |
admCommand(java.lang.String cmd) |
void |
commitMission(java.lang.String mission)
The agent executing this operation tries to commit to a mission in the scheme.
|
void |
destroy() |
org.w3c.dom.Element |
getAsDOM(org.w3c.dom.Document document) |
protected java.lang.String |
getStyleSheetName() |
void |
goalAchieved(java.lang.String goal)
The agent executing this operation set the goal as achieved by it.
|
void |
init(java.lang.String osFile,
java.lang.String schType,
boolean createMonitoring,
boolean hasGUI)
Initialises the scheme artifact
|
void |
interactionCommand(java.lang.String cmd) |
void |
leaveMission(java.lang.String mission)
The agent executing this operation tries to leave/remove its mission in the scheme
|
void |
resetGoal(java.lang.String goal)
The agent executing this operation reset some goal (it becomes not achieved, also goals that depends on it or sub-goals are set as unachieved)
|
void |
setArgumentValue(java.lang.String goal,
java.lang.String var,
java.lang.Object value)
The agent executing this operation set a value for a goal argument.
|
protected void |
updateGoalStateObsProp() |
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 obsPropGroups
public static final java.lang.String obsPropCommitment
public static final jason.asSyntax.PredicateIndicator piGoalState
public void init(java.lang.String osFile, java.lang.String schType, boolean createMonitoring, boolean hasGUI) throws ParseException, MoiseException
osFile
- the organisation specification file (path and file name)schType
- the type of the scheme (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 schType was not specifiedpublic void commitMission(java.lang.String mission) throws cartago.CartagoException
Verifications:
mission
- the mission being committed toNormativeFailureException
- the failure produced if the adoption breaks some regimentationcartago.CartagoException
- some cartago problempublic void leaveMission(java.lang.String mission) throws cartago.CartagoException, MoiseException
Verifications:
mission
- the mission being removedNormativeFailureException
- the failure produced if the remove breaks some regimentationcartago.CartagoException
- some cartago problemMoiseException
- some moise inconsistency (the agent is not committed to the mission)public void goalAchieved(java.lang.String goal) throws cartago.CartagoException
Verifications:
cartago.CartagoException
public void setArgumentValue(java.lang.String goal, java.lang.String var, java.lang.Object value) throws cartago.CartagoException
cartago.CartagoException
public void resetGoal(java.lang.String goal) throws cartago.CartagoException
cartago.CartagoException
public void admCommand(java.lang.String cmd) throws cartago.CartagoException, jason.asSyntax.parser.ParseException
cartago.CartagoException
jason.asSyntax.parser.ParseException
public void interactionCommand(java.lang.String cmd) throws cartago.CartagoException, jason.asSyntax.parser.ParseException
cartago.CartagoException
jason.asSyntax.parser.ParseException
protected void updateGoalStateObsProp()
protected java.lang.String getStyleSheetName()
getStyleSheetName
in class OrgArt
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document)