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.
- 
- 
Constructor SummaryConstructors Constructor Description AdoptGoalAction(jadex.bdiv3.runtime.impl.RGoal goal)Create a new action.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidadoptGoal(IInternalAccess agent, jadex.bdiv3.runtime.impl.RGoal goal)IFuture<java.lang.Void>execute(IInternalAccess ia)Execute the command.booleanisValid()Test if the action is valid.
 
- 
- 
- 
Method Detail- 
isValidpublic boolean isValid() Test if the action is valid.- Specified by:
- isValidin interface- IConditionalComponentStep<java.lang.Void>
- Returns:
- True, if action is valid.
 
 - 
executepublic IFuture<java.lang.Void> execute(IInternalAccess ia) Execute the command.- Specified by:
- executein interface- IComponentStep<java.lang.Void>
- Parameters:
- args- The argument(s) for the call.
- Returns:
- The result of the command.
 
 - 
adoptGoalpublic static void adoptGoal(IInternalAccess agent, jadex.bdiv3.runtime.impl.RGoal goal) 
 
- 
 
-