6#ifndef __SENSORS_SWITCH_IDL__ 
    7#define __SENSORS_SWITCH_IDL__ 
    9#include <StateSensor.idl> 
   10#include <UserEvent.idl> 
   24        constant 
int ERR_INVALID_PARAMETER  = 1;
 
   25        constant 
int ERR_NOT_AVAILABLE      = 2;
 
   26        constant 
int ERR_PDC_POWER_LIMIT    = 3;
 
 
Sensor with discrete readings.
Switch is an actuator and an extension to StateSensor.
int setState(in int newState)
This method outputs the given value.
SwitchEvent: new state set to switch via setState.
int targetState
target state as set via setState