ChirpSim
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Public Member Functions | List of all members
Sensor Class Referenceabstract

The Sensor class is the interface used by sensors. It contains methods to update the sensor, get the value of the sensor and get the PhysicalObject the sensor can detect. More...

#include <sensor.h>

Inheritance diagram for Sensor:
Inheritance graph

Public Member Functions

virtual unsigned value ()=0
 Gets the value of the sensor. More...
 
virtual void update ()=0
 Updates the value of the sensor. More...
 
virtual PhysicalObjectobjectHit ()=0
 Gets the PhysicalObject sensed by the sensor. More...
 

Detailed Description

The Sensor class is the interface used by sensors. It contains methods to update the sensor, get the value of the sensor and get the PhysicalObject the sensor can detect.

Member Function Documentation

virtual PhysicalObject* Sensor::objectHit ( )
pure virtual

Gets the PhysicalObject sensed by the sensor.

Returns
The PhysicalObject sensed by the sensor.

Implemented in ChirpIrSensor.

virtual void Sensor::update ( )
pure virtual

Updates the value of the sensor.

Implemented in ChirpIrSensor.

Referenced by Chirp::step().

Here is the caller graph for this function:

virtual unsigned Sensor::value ( )
pure virtual

Gets the value of the sensor.

Returns
The value of the sensor.

Implemented in ChirpIrSensor.


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