Class ExpirableActionMonitor

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ExpirableActionMonitor​(long waitTime, FAtiMA.Core.plans.Step s, FAtiMA.Core.sensorEffector.Event actionEnd)
      Creates a new ActionMonitor that expires after some time
    • Constructor Detail

      • 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 Detail

      • 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