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()voidThis method will notify all waiting threads (i.e., callers of waitForNoLongerPending).voidsetPreviousAIFuture(Future previousAIFuture) voidsetPreviousStatus(GoalStatus previousAIStatus) voidWait indefinitely for goal to no longer be pending.booleanwaitForNoLongerPending(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
-