public interface SemanticAction
Modifier and Type | Field and Description |
---|---|
static String |
ACTOR
Standard name for metaVariables refering to the actor of actions
|
Modifier and Type | Method and Description |
---|---|
Term |
getActor()
Returns a Term that represents the actor of the action.
|
Term |
getAuthor()
Deprecated.
Use
getActor() instead |
Behaviour |
getBehaviour()
Returns the behaviour of the action.
|
Formula |
getFeasibilityPrecondition()
Returns the feasibility precondition.
|
Formula |
getPersistentFeasibilityPrecondition()
Returns the persitentFeasibilityPrecondition.
|
Formula |
getPostCondition()
Returns the postcondition of the action.
|
Formula |
getRationalEffect()
Returns the rational effect of the action
|
SemanticCapabilities |
getSemanticCapabilities()
Returns the semantic capabilities of agent holding this action
|
SemanticAction |
newAction(ActionExpression actionExpression)
Creates a new instance of this prototype of semantic action from
the specified action expression.
|
SemanticAction |
newAction(Formula rationalEffect,
ACLMessage inReplyTo)
Creates a new instance of this prototype of semantic action from
the specified rational effect.
|
ActionExpression |
toActionExpression()
Returns the action expression representation of this action.
|
static final String ACTOR
SemanticCapabilities getSemanticCapabilities()
@Deprecated Term getAuthor()
getActor()
insteadTerm getActor()
Formula getFeasibilityPrecondition()
Formula getRationalEffect()
Formula getPersistentFeasibilityPrecondition()
Formula getPostCondition()
Behaviour getBehaviour()
SemanticAction newAction(ActionExpression actionExpression) throws SemanticInterpretationException
actionExpression
- an expression of action that specifies the instance to createSemanticInterpretationException
- if any exception occursSemanticAction newAction(Formula rationalEffect, ACLMessage inReplyTo)
rationalEffect
- a formula that specifies the rational effet of the
instance to createinReplyTo
- an ACL message the message to answerActionExpression toActionExpression() throws SemanticInterpretationException
SemanticInterpretationException
- if any exception occurs