Package FAtiMA.DeliberativeComponent
Class ExpirableActionMonitor
java.lang.Object
FAtiMA.DeliberativeComponent.ActionMonitor
FAtiMA.DeliberativeComponent.ExpirableActionMonitor
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class FAtiMA.DeliberativeComponent.ActionMonitor
_event, _step -
Constructor Summary
ConstructorsConstructorDescriptionExpirableActionMonitor(long waitTime, FAtiMA.Core.plans.Step s, FAtiMA.Core.sensorEffector.Event actionEnd) Creates a new ActionMonitor that expires after some time -
Method Summary
Modifier and TypeMethodDescriptionbooleanexpired()indicates if the ActionMonitor expired and we should wait no more.Methods inherited from class FAtiMA.DeliberativeComponent.ActionMonitor
checkPreconditions, getStep, matchEvent, toString
-
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 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 Details
-
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
-