Package edu.tufts.hrilab.action.goal
Class PendingGoal
java.lang.Object
edu.tufts.hrilab.action.goal.PendingGoal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGoal()
void
This method will notify all waiting threads (i.e., callers of waitForNoLongerPending).void
setPreviousAIFuture
(Future previousAIFuture) void
setPreviousStatus
(GoalStatus previousAIStatus) void
Wait indefinitely for goal to no longer be pending.boolean
waitForNoLongerPending
(long millis) Wait (up to specified milliseconds) for goal to no longer be pending.
-
Constructor Details
-
PendingGoal
-
-
Method Details
-
getGoal
-
getExecutionType
-
waitForNoLongerPending
public void waitForNoLongerPending()Wait indefinitely for goal to no longer be pending. -
waitForNoLongerPending
public boolean waitForNoLongerPending(long millis) Wait (up to specified milliseconds) for goal to no longer be pending.- Parameters:
millis
-- Returns:
- true: goal is no longer pending. false: goal is pending
-
notifyOfNoLongerPending
public void notifyOfNoLongerPending()This method will notify all waiting threads (i.e., callers of waitForNoLongerPending). -
getPreviousAIFuture
-
setPreviousAIFuture
-
setPreviousStatus
-
getPreviousStatus
-