TactileVestProject  V1.0
Tactile API documentation
 All Classes Functions
Public Member Functions | List of all members
Attire Class Reference

Public Member Functions

 Attire (HardwareInterface *hardware)
 
 Attire (const Attire &other)
 
Attireoperator= (const Attire &other)
 
TactoraddTactor (string name, Tactor *tactor)
 
TactorremoveTactor (string name)
 
SensoraddSensor (string name, Sensor *sensor)
 
SensorremoveSensor (string name)
 
bool command (string tactorName, string command)
 
string check (string sensorName)
 
bool execute (SimplePattern pattern)
 
void execute (ComplexPattern pattern)
 

Constructor & Destructor Documentation

Attire::Attire ( HardwareInterface hardware)

A constructor that gives the hardwareInterface for this Attire to use for its tactors and sensors

Parameters
hardwarethe hardware interface to signal tactors and sensors through

Member Function Documentation

Sensor* Attire::addSensor ( string  name,
Sensor sensor 
)

Adds the sensor given by sensor and associates it with the string name

Parameters
namethe name of the sensor being added
sensorthe sensor to add to this attire
Returns
the previous sensor with that name or void if none existed
Tactor* Attire::addTactor ( string  name,
Tactor tactor 
)

Adds the tactor given by tactor and associates it with the string name

Parameters
namethe name of the tactor being added
tactora tactor to add to this attire
Returns
the previous tactor with that name or void if none existed
string Attire::check ( string  sensorName)

Checks the given sensor

Parameters
sensorNamethe name of the sensor to check within this attire
Returns
the data from the sensor or the empty string if the check failed
bool Attire::command ( string  tactorName,
string  command 
)

Sends a command to a tactor

Parameters
tactorNamethe name of the tactor within this attire to be signalled
commandthe command to be sent to that tactor
Returns
true if the command was successfully sent, false otherwise
bool Attire::execute ( SimplePattern  pattern)

Execute the given simplePattern

Parameters
patternthe pattern to be executed
Returns
true if the pattern was successfully commanded
void Attire::execute ( ComplexPattern  pattern)

Execute the given complexPattern

Parameters
patternthe complexPattern to be executed
Sensor* Attire::removeSensor ( string  name)

Removes the sensor given by name from the attire

Parameters
namethe name of the sensor to be removed
Returns
the removed sensor or void if none existed
Tactor* Attire::removeTactor ( string  name)

Removes the tactor given by name from the attire

Parameters
namethe name of the tactor to remove
Returns
the removed tactor or void if none existed

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