Package FAtiMA.DeliberativeComponent
Class ExpirableActionMonitor
- java.lang.Object
-
- FAtiMA.DeliberativeComponent.ActionMonitor
-
- FAtiMA.DeliberativeComponent.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
-
-
Field Summary
-
Fields inherited from class FAtiMA.DeliberativeComponent.ActionMonitor
_event, _step
-
-
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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexpired()indicates if the ActionMonitor expired and we should wait no more.-
Methods inherited from class FAtiMA.DeliberativeComponent.ActionMonitor
checkPreconditions, getStep, matchEvent, toString
-
-
-
-
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 expirings- - the plan's step (action) that we want to monitoractionEnd- - 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:
expiredin classActionMonitor- Returns:
- true if the Monitor waited more than specified, false otherwise
-
-