public class GoalLifecycleRules extends Object
| Constructor and Description |
|---|
GoalLifecycleRules() |
| Modifier and Type | Method and Description |
|---|---|
static void |
adoptGoal(jadex.rules.state.IOAVState state,
Object rcapa,
Object rgoal)
Adopt a goal.
|
static Object |
createGoal(jadex.rules.state.IOAVState state,
Object rcapa,
String type)
Create a goal of a given type.
|
static Object[] |
createGoalCreationUniqueUserRule(Object model,
jadex.rules.state.IOAVState state)
Create a goal, when the ADF creation condition triggers and no similar goal exists (according to unique flags)
|
static Object[] |
createGoalCreationUserRule(Object model)
Create a goal, when the ADF creation condition triggers.
|
static jadex.rules.rulesystem.rules.Rule |
createGoalDroppingRule()
Start dropping a goal that is succeeded or failed.
|
static Object[] |
createGoalDroppingUserRule(Object model)
Start dropping a goal, when the ADF context condition triggers.
|
static Object[] |
createGoalOptionUserRule(Object model)
Set a suspended goal to option state, when the ADF suspension condition triggers.
|
static Object[] |
createGoalSuspendUserRule(Object model)
Set a goal to suspended state, when the ADF context condition triggers.
|
static void |
dropGoal(jadex.rules.state.IOAVState state,
Object rgoal)
Drop a goal.
|
static Object |
instantiateGoal(jadex.rules.state.IOAVState state,
Object rcapa,
Object mgoal,
Object cgoal,
Map bindings,
OAVBDIFetcher fetcher,
OAVBDIFetcher configfetcher)
Instantiate a goal but does not add it to the state.
|
public static Object createGoal(jadex.rules.state.IOAVState state, Object rcapa, String type)
public static Object instantiateGoal(jadex.rules.state.IOAVState state, Object rcapa, Object mgoal, Object cgoal, Map bindings, OAVBDIFetcher fetcher, OAVBDIFetcher configfetcher)
state - The statercapa - The capability.mgoal - The goal model.cgoal - The goal configuration (if any).public static void adoptGoal(jadex.rules.state.IOAVState state,
Object rcapa,
Object rgoal)
state - The statercapa - The capability.rgoal - The goal.public static void dropGoal(jadex.rules.state.IOAVState state,
Object rgoal)
state - The state.rgoal - The goal.public static Object[] createGoalCreationUserRule(Object model)
model - The goal model element.public static Object[] createGoalCreationUniqueUserRule(Object model, jadex.rules.state.IOAVState state)
model - The goal model element.public static Object[] createGoalOptionUserRule(Object model)
usercond - The ADF condition part.model - The goal model element.public static Object[] createGoalSuspendUserRule(Object model)
usercond - The ADF part of the context condition (will be negated automatically).model - The goal model element.public static jadex.rules.rulesystem.rules.Rule createGoalDroppingRule()
Copyright © 2012. All Rights Reserved.