public class PlanRules extends Object
Modifier and Type | Field and Description |
---|---|
static long |
TICK_TIMER
Tick timer constant.
|
Constructor and Description |
---|
PlanRules() |
Modifier and Type | Method and Description |
---|---|
static void |
abortPlan(jadex.rules.state.IOAVState state,
Object rcapa,
Object rplan)
Abort a plan.
|
static void |
adoptPlan(jadex.rules.state.IOAVState state,
Object rcapa,
Object rplan)
Adopt a plan.
|
static Object |
afterWait(Object wa,
boolean[] to,
jadex.rules.state.IOAVState state,
Object rcapa,
Object rplan)
Perform the cleanup operations after a wait.
|
static void |
cleanupPlanWait(jadex.rules.state.IOAVState state,
Object rcapa,
Object rplan,
boolean cleanwq)
Cleanup plan wait abstraction, waitqueue and wait timer.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanAbortedExecutionRule()
Create the plan execution rule.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanBodyExecutionRule()
Create the plan execution rule.
|
static Object[] |
createPlanContextInvalidUserRule(Object mplan)
Create the plan context invalid rule.
|
static Object[] |
createPlanCreationUserRule(Object mplan)
Create the plan creation rule.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanFailedExecutionRule()
Create the plan execution rule.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanInstanceAbortRule()
Rule to abort a plan when the corresponding goal was deactivated.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanInstanceCleanupFinishedRule()
Reactivate a plan when goal cleanup is finished.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanInstanceFactChangedTriggerRule()
Trigger plan creation on fact changed event.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanInstanceGoalFinishedRule()
Reactivate a plan when the goal it waits for is finished.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanInstanceMaintainGoalFinishedRule()
Create the plan instance maintain goal finished rule.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanPassedExecutionRule()
Create the plan execution rule.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanRemovalRule()
Create the plan removal rule.
|
static jadex.rules.rulesystem.rules.Rule |
createPlanWaitqueueGoalFinishedRule()
Add a goal to the waitqueue of a plan when the goal it waits for is finished.
|
static void |
doWait(jadex.rules.state.IOAVState state,
Object rplan)
Do the waiting, i.e. set the external caller thread to sleep mode.
|
static void |
endPlanPart(jadex.rules.state.IOAVState state,
Object rcapa,
Object rplan,
boolean cleanupwq)
End a part (i.e. body/passed/failed/aborted) of a plan.
|
static Object[] |
initializeWait(Object wa,
long timeout,
jadex.rules.state.IOAVState state,
Object rcapa,
Object rplan)
Initialize the wait by
a) check if one of goals is already finished.
|
static Object |
instantiatePlan(jadex.rules.state.IOAVState state,
Object rcap,
Object mplan,
Object cplan,
Object reason,
Collection preparams,
Map bindings,
OAVBDIFetcher fetcher)
Instantiate a plan.
|
static Object |
waitForWaitAbstraction(Object wa,
long timeout,
jadex.rules.state.IOAVState state,
Object rcapa,
Object rplan)
Wait for a wait abstraction.
|
public static final long TICK_TIMER
public static void adoptPlan(jadex.rules.state.IOAVState state, Object rcapa, Object rplan)
state
- The statercapa
- The capability.rgoal
- The goal.public static Object instantiatePlan(jadex.rules.state.IOAVState state, Object rcap, Object mplan, Object cplan, Object reason, Collection preparams, Map bindings, OAVBDIFetcher fetcher)
state
- The statercap
- The capability.mplan
- The plan model.cplan
- The plan configuration (if any).preparams
- From outside supplied parameter values.public static void abortPlan(jadex.rules.state.IOAVState state, Object rcapa, Object rplan)
public static void endPlanPart(jadex.rules.state.IOAVState state, Object rcapa, Object rplan, boolean cleanupwq)
public static jadex.rules.rulesystem.rules.Rule createPlanBodyExecutionRule()
public static jadex.rules.rulesystem.rules.Rule createPlanPassedExecutionRule()
public static jadex.rules.rulesystem.rules.Rule createPlanFailedExecutionRule()
public static jadex.rules.rulesystem.rules.Rule createPlanAbortedExecutionRule()
public static jadex.rules.rulesystem.rules.Rule createPlanInstanceCleanupFinishedRule()
public static jadex.rules.rulesystem.rules.Rule createPlanInstanceGoalFinishedRule()
public static jadex.rules.rulesystem.rules.Rule createPlanWaitqueueGoalFinishedRule()
public static jadex.rules.rulesystem.rules.Rule createPlanInstanceMaintainGoalFinishedRule()
public static jadex.rules.rulesystem.rules.Rule createPlanRemovalRule()
public static jadex.rules.rulesystem.rules.Rule createPlanInstanceAbortRule()
public static Object[] createPlanCreationUserRule(Object mplan)
usercond
- The ADF part of the target condition.mplan
- The plan model element.public static jadex.rules.rulesystem.rules.Rule createPlanInstanceFactChangedTriggerRule()
public static Object[] createPlanContextInvalidUserRule(Object mplan)
usercond
- The ADF part of the target condition.mplan
- The plan model element.public static Object waitForWaitAbstraction(Object wa, long timeout, jadex.rules.state.IOAVState state, Object rcapa, Object rplan)
public static Object[] initializeWait(Object wa, long timeout, jadex.rules.state.IOAVState state, Object rcapa, Object rplan)
public static void doWait(jadex.rules.state.IOAVState state, Object rplan)
public static Object afterWait(Object wa, boolean[] to, jadex.rules.state.IOAVState state, Object rcapa, Object rplan)
Copyright © 2012. All Rights Reserved.