Package jadex.bdi.model
Class MTrigger
java.lang.Object
jadex.bdi.model.MTrigger
Model element for a plan trigger.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MConditionThe 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 TypeMethodDescriptionvoidaddFactAdded(String fact) Add a fact added belief trigger.voidaddFactChanged(String fact) Add a fact changed belief trigger.voidaddFactRemoved(String fact) Add a fact removed belief trigger.voidAdd a goal trigger.voidaddGoalFinished(MGoal goal) Add a goal finished trigger.voidaddGoalFinishedName(String event) Add a goal finished name.voidaddGoalMatchExpression(String goalname, jadex.common.UnparsedExpression match) Add a goal name.voidaddGoalName(String event) Add a goal name.voidaddGoalNameMatchExpression(String goalname, jadex.common.UnparsedExpression match) Add a goal match before preprecessing (i.e.voidaddInternalEvent(MInternalEvent event) voidaddInternalEventName(String event) Add an internal event name.voidaddMessageEvent(MMessageEvent event) Add a message event.voidaddMessageName(String event) Add a message event name.voidaddService(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.UnparsedExpressiongetGoalMatchExpression(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.voidsetCondition(MCondition condition) Set the condition.voidsetFactAddeds(List<String> events) Set the fact added triggers (belief set names).voidsetFactChangeds(List<String> events) Set the fact changeds triggers (belief set names).voidsetFactRemoveds(List<String> events) Set the fact removed triggers (belief set names).voidsetGoalNames(List<String> goalnames) Set the goalnames.voidSet 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.
-