Wiselib
Public Types | Public Member Functions | Public Attributes
concepts::RequestSensor_concept Class Reference

A basic request sensor. More...

Inherits concepts::BasicSensor_concept, and concepts::Request_concept.

List of all members.

Public Types

enum  StateData { READY = ..., NO_VALUE = ..., INACTIVE = ... }
 State data. More...

Public Member Functions

int state ()
 Returns the current state.
value_t operator() ()
 Return current value.

Public Attributes

typedef OsModel
 Type of Os Concept which has been set for the sensor facet.
typedef value_t
 Type of value that is returned.
typedef OsModel
 Type of Os Concept which has been set.
typedef value_t
 Type of value that is returned.

Detailed Description

A basic request sensor.

A request sensor refines both the Basic Sensor and the Request, so that a user can call a function to get the current sensor value (via operator()()). The status of the sensor (is it active and provides a reasonable value) can be requested via the state().


Member Enumeration Documentation

State data.

Enumerator:
READY 
NO_VALUE 
INACTIVE 

Member Function Documentation

value_t concepts::Request_concept::operator() ( ) [inherited]

Return current value.

Reimplemented in concepts::Position_concept.

int concepts::BasicSensor_concept::state ( ) [inherited]

Returns the current state.


Member Data Documentation

Type of Os Concept which has been set for the sensor facet.

Type of Os Concept which has been set.

Type of value that is returned.

Reimplemented in concepts::Position_concept.

Type of value that is returned.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines