Project: engagement_generation

License: BSD

Dependencies:

Used by: None

All Packages

edu::wpi::hri::gen::policy::ref::DistractorSet Class Reference

List of all members.

Public Member Functions

boolean contains (String obj)
 DistractorSet (Entity[] objs)
 DistractorSet (Iterable< String > objs)
DistractorSet intersection (DistractorSet other)
int size ()

Private Attributes

final List< String > objects

Detailed Description

The DistractorSet class represents the objects which are distractions during an attempt to reference an object. These can be based on linguistics, gaze cues, or pointing cues. To combine two distractor sets, the intersection() method is given. This combines the two distractor sets when the two different components which generated distractor sets are executed together.

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

Definition at line 50 of file DistractorSet.java.


Constructor & Destructor Documentation

edu::wpi::hri::gen::policy::ref::DistractorSet::DistractorSet ( Iterable< String >  objs  )  [inline]

This method creates a distractor set based on the given objects. The given objects are by id, and should be unique.

Parameters:
objs The objects which are distractors.

Definition at line 61 of file DistractorSet.java.

edu::wpi::hri::gen::policy::ref::DistractorSet::DistractorSet ( Entity[]  objs  )  [inline]

This method creates a distractor set based on the given entities. The ids of the objects are pulled out of the entity array.

Parameters:
objs The entities to make distractors of.

Definition at line 74 of file DistractorSet.java.


Member Function Documentation

boolean edu::wpi::hri::gen::policy::ref::DistractorSet::contains ( String  obj  )  [inline]

Check if this distractor set contains the given object as a distractor.

Parameters:
obj The object to check for.
Returns:
True if the object is a distractor, false otherwise.

Definition at line 96 of file DistractorSet.java.

DistractorSet edu::wpi::hri::gen::policy::ref::DistractorSet::intersection ( DistractorSet  other  )  [inline]

Find the distractor set which is the intersection of this distractor set and the one given.

Parameters:
other The other distractor set to combine with this one.
Returns:
The new distractor set which is the intersection of this one and the other distractor set.

Definition at line 109 of file DistractorSet.java.

int edu::wpi::hri::gen::policy::ref::DistractorSet::size (  )  [inline]

Get the number of distractors in the set.

Returns:
The number of distractors.

Definition at line 85 of file DistractorSet.java.


Member Data Documentation

Definition at line 52 of file DistractorSet.java.


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