public class AdoptGoalAction
extends java.lang.Object
implements jadex.bridge.IConditionalComponentStep<java.lang.Void>
| Modifier and Type | Field and Description |
|---|---|
protected RGoal |
goal
The goal.
|
protected RPlan.PlanLifecycleState |
state
The state.
|
| Constructor and Description |
|---|
AdoptGoalAction(RGoal goal)
Create a new action.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
adoptGoal(jadex.bridge.IInternalAccess agent,
RGoal goal) |
jadex.commons.future.IFuture<java.lang.Void> |
execute(jadex.bridge.IInternalAccess ia)
Execute the command.
|
boolean |
isValid()
Test if the action is valid.
|
protected RGoal goal
protected RPlan.PlanLifecycleState state
public AdoptGoalAction(RGoal goal)
public boolean isValid()
isValid in interface jadex.bridge.IConditionalComponentStep<java.lang.Void>public jadex.commons.future.IFuture<java.lang.Void> execute(jadex.bridge.IInternalAccess ia)
execute in interface jadex.bridge.IComponentStep<java.lang.Void>args - The argument(s) for the call.public static void adoptGoal(jadex.bridge.IInternalAccess agent,
RGoal goal)