Package jadex.bdiv3.actions
Class AdoptGoalAction
- java.lang.Object
-
- jadex.bdiv3.actions.AdoptGoalAction
-
- All Implemented Interfaces:
IComponentStep<java.lang.Void>
,IConditionalComponentStep<java.lang.Void>
public class AdoptGoalAction extends java.lang.Object implements IConditionalComponentStep<java.lang.Void>
Action for adopting a goal.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.bridge.IComponentStep
IComponentStep.MyInit
-
-
Field Summary
Fields Modifier and Type Field Description protected jadex.bdiv3.runtime.impl.RGoal
goal
The goal.protected jadex.bdiv3.runtime.impl.RPlan.PlanLifecycleState
state
The state.-
Fields inherited from interface jadex.bridge.IComponentStep
__myinit, CURRENT_STEP
-
-
Constructor Summary
Constructors Constructor Description AdoptGoalAction(jadex.bdiv3.runtime.impl.RGoal goal)
Create a new action.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
adoptGoal(IInternalAccess agent, jadex.bdiv3.runtime.impl.RGoal goal)
Adopt a goal.IFuture<java.lang.Void>
execute(IInternalAccess ia)
Execute the command.boolean
isValid()
Test if the action is valid.
-
-
-
Method Detail
-
isValid
public boolean isValid()
Test if the action is valid.- Specified by:
isValid
in interfaceIConditionalComponentStep<java.lang.Void>
- Returns:
- True, if action is valid.
-
execute
public IFuture<java.lang.Void> execute(IInternalAccess ia)
Execute the command.- Specified by:
execute
in interfaceIComponentStep<java.lang.Void>
- Parameters:
args
- The argument(s) for the call.- Returns:
- The result of the command.
-
adoptGoal
public static void adoptGoal(IInternalAccess agent, jadex.bdiv3.runtime.impl.RGoal goal)
Adopt a goal.
-
-