public class Tools extends Object
Modifier and Type | Field and Description |
---|---|
static Term |
AGENT_IDENTIFIER_PATTERN
General pattern used to recognize functional terms denoting
agent descriptors
|
Constructor and Description |
---|
Tools() |
Modifier and Type | Method and Description |
---|---|
static Term |
AID2Term(AID aid)
Returns the term representing an agent to the corresponding AID.
|
static boolean |
isCommunicativeActionFromMeToReceiver(ActionExpression actionExp,
Term receiver,
SemanticCapabilities capabilities)
Tests if the action expression given in parameter is a communicative
action from the semantic agent (me) to the specified receiver.
|
static void |
printTraceMessage(String message,
boolean DEBUG)
DEBUG METHODS *
|
static AID |
term2AID(Term agentTerm)
Returns the AID corresponding to the term representing an agent.
|
public static final Term AGENT_IDENTIFIER_PATTERN
public static AID term2AID(Term agentTerm)
agentTerm
- a term representing an agentpublic static Term AID2Term(AID aid)
aid
- an AIDpublic static boolean isCommunicativeActionFromMeToReceiver(ActionExpression actionExp, Term receiver, SemanticCapabilities capabilities)
actionExp
- an action expressionreceiver
- the receiverme
- the current semantic agentpublic static void printTraceMessage(String message, boolean DEBUG)