Package jadex.bdi.model
Class MTrigger
java.lang.Object
jadex.bdi.model.MTrigger
Model element for a plan trigger.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MCondition
The trigger condition.The belief names.The belief names.The belief names.The goal types of finished goals.Goal match expressions that restrict general goal type triggers.The goal types.protected List
<MInternalEvent> protected List
<MMessageEvent> The message events.protected List
<MServiceCall> The service types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFactAdded
(String fact) Add a fact added belief trigger.void
addFactChanged
(String fact) Add a fact changed belief trigger.void
addFactRemoved
(String fact) Add a fact removed belief trigger.void
Add a goal trigger.void
addGoalFinished
(MGoal goal) Add a goal finished trigger.void
addGoalFinishedName
(String event) Add a goal finished name.void
addGoalMatchExpression
(String goalname, jadex.common.UnparsedExpression match) Add a goal name.void
addGoalName
(String event) Add a goal name.void
addGoalNameMatchExpression
(String goalname, jadex.common.UnparsedExpression match) Add a goal match before preprecessing (i.e.void
addInternalEvent
(MInternalEvent event) void
addInternalEventName
(String event) Add an internal event name.void
addMessageEvent
(MMessageEvent event) Add a message event.void
addMessageName
(String event) Add a message event name.void
addService
(MServiceCall service) Add a service trigger.Get the condition.Get the fact added triggers (belief set names).Get the fact changeds triggers (belief set names).Get the fact removed triggers (belief set names).Get the goal finished events.Get the goalfinisheds.jadex.common.UnparsedExpression
getGoalMatchExpression
(MGoal mgoal) Get a goal match expression.Get goal match expressions for preprecessing.Get the goal events.getGoals()
Get the goals.Get the message events.Get the internal events.Get the message events.Get the message events.Get the fact service calls.void
setCondition
(MCondition condition) Set the condition.void
setFactAddeds
(List<String> events) Set the fact added triggers (belief set names).void
setFactChangeds
(List<String> events) Set the fact changeds triggers (belief set names).void
setFactRemoveds
(List<String> events) Set the fact removed triggers (belief set names).void
setGoalNames
(List<String> goalnames) Set the goalnames.void
Set the goals.
-
Field Details
-
internalevents
-
messageevents
The message events. -
goals
The goal types. -
goalmatches
Goal match expressions that restrict general goal type triggers. -
goalfinisheds
The goal types of finished goals. -
factaddeds
The belief names. -
factremoveds
The belief names. -
factchangeds
The belief names. -
services
The service types. -
messagenames
-
ieventnames
-
goalnames
-
goalfinishednames
-
goalmatchnames
-
condition
The trigger condition.
-
-
Constructor Details
-
MTrigger
public MTrigger()Create a new trigger.
-
-
Method Details
-
getInternalEvents
Get the internal events. -
getMessageEvents
Get the message events. -
getGoals
Get the goals. -
setGoals
Set the goals.- Parameters:
goals
- The goals to set
-
addGoal
Add a goal trigger. -
getGoalFinisheds
Get the goalfinisheds.- Returns:
- The goalfinisheds.
-
addGoalFinished
Add a goal finished trigger. -
addInternalEvent
-
addMessageEvent
Add a message event. -
addMessageName
Add a message event name. -
getMessageNames
Get the message events. -
addInternalEventName
Add an internal event name. -
getInternalEventNames
Get the message events. -
addGoalFinishedName
Add a goal finished name. -
getGoalFinishedNames
Get the goal finished events. -
addGoalName
Add a goal name. -
getGoalNames
Get the goal events. -
setGoalNames
Set the goalnames.- Parameters:
goalnames
- The goalnames to set
-
addGoalNameMatchExpression
Add a goal match before preprecessing (i.e. unresolved name). -
getGoalNameMatchExpressions
Get goal match expressions for preprecessing. -
addGoalMatchExpression
Add a goal name. -
getGoalMatchExpression
Get a goal match expression. -
addFactAdded
Add a fact added belief trigger. -
addFactRemoved
Add a fact removed belief trigger. -
addFactChanged
Add a fact changed belief trigger. -
getFactAddeds
Get the fact added triggers (belief set names). -
getFactRemoveds
Get the fact removed triggers (belief set names). -
getFactChangeds
Get the fact changeds triggers (belief set names). -
setFactAddeds
Set the fact added triggers (belief set names). -
setFactRemoveds
Set the fact removed triggers (belief set names). -
setFactChangeds
Set the fact changeds triggers (belief set names). -
addService
Add a service trigger. -
getServices
Get the fact service calls. -
getCondition
Get the condition. -
setCondition
Set the condition.
-