Class ActionState

All Implemented Interfaces:
Action, RoleStateChange, IAnnotatedComponent, IComponentExecutionControl

public class ActionState extends ActionBase
  • Constructor Details

  • Method Details

    • execute

      public boolean execute(@Nonnull Ref<EntityStore> ref, @Nonnull ExecutionSupport executionSupport, @Nullable InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store)
      Description copied from interface: Action
      Execute action
      Specified by:
      execute in interface Action
      Overrides:
      execute in class ActionBase
      Parameters:
      ref - The entity ref
      executionSupport - The execution support
      sensorInfo - SensorInfo with PositionProvider, PathProvider, etc if required
      dt - The interval in seconds for this calculation
      store - The component store
      Returns:
      true when executed action has finished else false when execution is not completed yet
    • getInfo

      public void getInfo(@Nonnull ExecutionSupport executionSupport, @Nonnull ComponentInfo holder)
      Description copied from interface: IAnnotatedComponent
      Populates the ComponentInfo holder with any relevant information relating to this particular component
      Specified by:
      getInfo in interface IAnnotatedComponent
      Overrides:
      getInfo in class AnnotatedComponentBase
      Parameters:
      executionSupport - per-execution context
      holder - the ComponentInfo instance to populate