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