Class ExpirableActionMonitor

java.lang.Object
FAtiMA.DeliberativeComponent.ActionMonitor
FAtiMA.DeliberativeComponent.ExpirableActionMonitor
All Implemented Interfaces:
Serializable

public class ExpirableActionMonitor extends ActionMonitor
Implements a monitor capable of verifying if a given action has been achieved. But this monitor waits only for a limited amount of time.
Author:
Joao Dias
See Also:
  • Constructor Details

    • ExpirableActionMonitor

      public ExpirableActionMonitor(long waitTime, FAtiMA.Core.plans.Step s, FAtiMA.Core.sensorEffector.Event actionEnd)
      Creates a new ActionMonitor that expires after some time
      Parameters:
      waitTime - - how long should the monitor wait before expiring
      s - - the plan's step (action) that we want to monitor
      actionEnd - - the event that we should wait for. If this event happens, it means that the action finished
  • Method Details

    • expired

      public boolean expired()
      indicates if the ActionMonitor expired and we should wait no more.
      Overrides:
      expired in class ActionMonitor
      Returns:
      true if the Monitor waited more than specified, false otherwise