A constructor that gives the hardwareInterface for this Attire to use for its tactors and sensors
- Parameters
-
hardware | the hardware interface to signal tactors and sensors through |
Adds the sensor given by sensor and associates it with the string name
- Parameters
-
name | the name of the sensor being added |
sensor | the sensor to add to this attire |
- Returns
- the previous sensor with that name or void if none existed
Adds the tactor given by tactor and associates it with the string name
- Parameters
-
name | the name of the tactor being added |
tactor | a 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
-
sensorName | the 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
-
tactorName | the name of the tactor within this attire to be signalled |
command | the command to be sent to that tactor |
- Returns
- true if the command was successfully sent, false otherwise
Execute the given simplePattern
- Parameters
-
pattern | the pattern to be executed |
- Returns
- true if the pattern was successfully commanded
Execute the given complexPattern
- Parameters
-
pattern | the complexPattern to be executed |
Sensor* Attire::removeSensor |
( |
string |
name | ) |
|
Removes the sensor given by name from the attire
- Parameters
-
name | the 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
-
name | the 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: