Project: engagement_generation

License: BSD

Dependencies:

Used by: None

All Packages

edu::wpi::hri::gen::policy::TurnPositionPolicy::APWaiter Class Reference

List of all members.

Public Member Functions

byte getResponse ()

Private Member Functions

 APWaiter (final String actor)

Private Attributes

byte response
final Thread thread

Detailed Description

The APWaiter class is internal to the TurnPositionPolicy class because no other class can create this object. The APWaiter's sole purpose is to wait for Adjacency pair requests to complete, and return the response to any other object which requires the response.

Author:
Aaron Holroyd (aholroyd (at) wpi (dot) edu)

Definition at line 266 of file TurnPositionPolicy.java.


Constructor & Destructor Documentation

edu::wpi::hri::gen::policy::TurnPositionPolicy::APWaiter::APWaiter ( final String  actor  )  [inline, private]

Create a new APWaiter to call an AP on the given actor, and return the response when getResponse() is called.

Parameters:
actor The actor to complete an AP with.

The Robot is initiating an adjacency pair. The given actor is the subject to which the AP is directed. This method will call recognition and will block until recognition determines the event has succeeded or failed.

Parameters:
actor The actor to direct the AP towards.
Returns:
The response type that the Actor responded with. INVALID will be returned if an error occurred.

Definition at line 277 of file TurnPositionPolicy.java.


Member Function Documentation

byte edu::wpi::hri::gen::policy::TurnPositionPolicy::APWaiter::getResponse (  )  [inline]

Get the response type which was returned by the AP service.

Returns:
The type of response from recognition.

Definition at line 318 of file TurnPositionPolicy.java.


Member Data Documentation


The documentation for this class was generated from the following file:

engagement_generation
Author(s): Aaron Holroyd (aholroyd (at) wpi (dot) edu)
autogenerated on Fri Sep 9 10:35:45 2011