public class MTrigger
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected MCondition |
condition
The trigger condition.
|
protected java.util.List<java.lang.String> |
factaddeds
The belief names.
|
protected java.util.List<java.lang.String> |
factchangeds
The belief names.
|
protected java.util.List<java.lang.String> |
factremoveds
The belief names.
|
protected java.util.List<java.lang.String> |
goalfinishednames |
protected java.util.List<MGoal> |
goalfinisheds
The goal types of finished goals.
|
protected java.util.Map<java.lang.String,UnparsedExpression> |
goalmatches
Goal match expressions that restrict general goal type triggers.
|
protected java.util.List<java.lang.String> |
goalnames |
protected java.util.List<MGoal> |
goals
The goal types.
|
protected java.util.List<java.lang.String> |
ieventnames |
protected java.util.List<MInternalEvent> |
internalevents |
protected java.util.List<MMessageEvent> |
messageevents
The message events.
|
protected java.util.List<java.lang.String> |
messagenames |
protected java.util.List<MServiceCall> |
services
The service types.
|
Constructor and Description |
---|
MTrigger()
Create a new trigger.
|
Modifier and Type | Method and Description |
---|---|
void |
addFactAdded(java.lang.String fact)
Add a fact added belief trigger.
|
void |
addFactChanged(java.lang.String fact)
Add a fact changed belief trigger.
|
void |
addFactRemoved(java.lang.String fact)
Add a fact removed belief trigger.
|
void |
addGoal(MGoal goal)
Add a goal trigger.
|
void |
addGoalFinished(MGoal goal)
Add a goal finished trigger.
|
void |
addGoalFinishedName(java.lang.String event)
Add a goal finished name.
|
void |
addGoalMatchExpression(java.lang.String goalname,
UnparsedExpression match)
Add a goal name.
|
void |
addGoalName(java.lang.String event)
Add a goal name.
|
void |
addInternalEvent(MInternalEvent event) |
void |
addInternalEventName(java.lang.String event)
Add an internal event name.
|
void |
addMessageEvent(MMessageEvent event)
Add a message event.
|
void |
addMessageName(java.lang.String event)
Add a message event name.
|
void |
addService(MServiceCall service)
Add a service trigger.
|
MCondition |
getCondition()
Get the condition.
|
java.util.List<java.lang.String> |
getFactAddeds()
Get the fact added triggers (belief set names).
|
java.util.List<java.lang.String> |
getFactChangeds()
Get the fact changeds triggers (belief set names).
|
java.util.List<java.lang.String> |
getFactRemoveds()
Get the fact removed triggers (belief set names).
|
java.util.List<java.lang.String> |
getGoalFinishedNames()
Get the goal finished events.
|
java.util.List<MGoal> |
getGoalFinisheds()
Get the goalfinisheds.
|
UnparsedExpression |
getGoalMatchExpression(MGoal mgoal)
Get a goal match expression.
|
java.util.List<java.lang.String> |
getGoalNames()
Get the goal events.
|
java.util.List<MGoal> |
getGoals()
Get the goals.
|
java.util.List<java.lang.String> |
getInternalEventNames()
Get the message events.
|
java.util.List<MInternalEvent> |
getInternalEvents()
Get the internal events.
|
java.util.List<MMessageEvent> |
getMessageEvents()
Get the message events.
|
java.util.List<java.lang.String> |
getMessageNames()
Get the message events.
|
java.util.List<MServiceCall> |
getServices()
Get the fact service calls.
|
void |
setCondition(MCondition condition)
Set the condition.
|
void |
setFactAddeds(java.util.List<java.lang.String> events)
Set the fact added triggers (belief set names).
|
void |
setFactChangeds(java.util.List<java.lang.String> events)
Set the fact changeds triggers (belief set names).
|
void |
setFactRemoveds(java.util.List<java.lang.String> events)
Set the fact removed triggers (belief set names).
|
void |
setGoalNames(java.util.List<java.lang.String> goalnames)
Set the goalnames.
|
void |
setGoals(java.util.List<MGoal> goals)
Set the goals.
|
protected java.util.List<MInternalEvent> internalevents
protected java.util.List<MMessageEvent> messageevents
protected java.util.List<MGoal> goals
protected java.util.Map<java.lang.String,UnparsedExpression> goalmatches
protected java.util.List<MGoal> goalfinisheds
protected java.util.List<java.lang.String> factaddeds
protected java.util.List<java.lang.String> factremoveds
protected java.util.List<java.lang.String> factchangeds
protected java.util.List<MServiceCall> services
protected java.util.List<java.lang.String> messagenames
protected java.util.List<java.lang.String> ieventnames
protected java.util.List<java.lang.String> goalnames
protected java.util.List<java.lang.String> goalfinishednames
protected MCondition condition
public java.util.List<MInternalEvent> getInternalEvents()
public java.util.List<MMessageEvent> getMessageEvents()
public java.util.List<MGoal> getGoals()
public void setGoals(java.util.List<MGoal> goals)
goals
- The goals to setpublic void addGoal(MGoal goal)
public java.util.List<MGoal> getGoalFinisheds()
public void addGoalFinished(MGoal goal)
public void addInternalEvent(MInternalEvent event)
public void addMessageEvent(MMessageEvent event)
public void addMessageName(java.lang.String event)
public java.util.List<java.lang.String> getMessageNames()
public void addInternalEventName(java.lang.String event)
public java.util.List<java.lang.String> getInternalEventNames()
public void addGoalFinishedName(java.lang.String event)
public java.util.List<java.lang.String> getGoalFinishedNames()
public void addGoalName(java.lang.String event)
public java.util.List<java.lang.String> getGoalNames()
public void setGoalNames(java.util.List<java.lang.String> goalnames)
goalnames
- The goalnames to setpublic void addGoalMatchExpression(java.lang.String goalname, UnparsedExpression match)
public UnparsedExpression getGoalMatchExpression(MGoal mgoal)
public void addFactAdded(java.lang.String fact)
public void addFactRemoved(java.lang.String fact)
public void addFactChanged(java.lang.String fact)
public java.util.List<java.lang.String> getFactAddeds()
public java.util.List<java.lang.String> getFactRemoveds()
public java.util.List<java.lang.String> getFactChangeds()
public void setFactAddeds(java.util.List<java.lang.String> events)
public void setFactRemoveds(java.util.List<java.lang.String> events)
public void setFactChangeds(java.util.List<java.lang.String> events)
public void addService(MServiceCall service)
public java.util.List<MServiceCall> getServices()
public MCondition getCondition()
public void setCondition(MCondition condition)