= Observation and Measurement = [[PageOutline(2-3,Table of Contents,inline)]] The values measured by sensors are exposed as Observation and Measurement values in SENSEI. That means the values are annotated by meta-data providing additional information on how to interpret the value. Required is the data type as well as the unit of measurement. Also a time stamp is given together with the measurement. Currently there is no standard for time stamp format. The Observation and Measurement model is constructed as follows: === Generic Measurement === the generic Measurement is described by * value (here a generic value is possible described as string) * unit of measurement (can be any string, needs to be interpreted by the Resource User) * time stamp (can be any string) [[Image(OaM phase3.png)]] == Sensors == We have defined a set of Measurements gathered from sensors together with their typical datatypes. The sensors are now direct subclasses of Observation and Measurement [[Image(OaM sensors phase3.png)]] === Button Sensor === Below is shown an example measurement coming from a button sensor defined as '''Button Sensor 12'''. The '''Resource Provider''' has given its own resoures the '''namespace''' prefix '''provider123'''. A button can either be pressed or released so that a boolean value is appropriate. A unit of measurement is not required for boolean values. Hence the '''hasUnit''' property is not given here. The time when the button was detected as pressed is related to the measurement. [[Image(Button sensor phase3.png)]] The RDF XML syntax for the button sensor is as follows: {{{ ]> }}} === Light Sensor === The next example shows a Light Sensor measurement with a value given in percent. Therefore a hasDecimalValue property is used here. A Timestamp is given as well. [[Image(Light sensor phase3.png)]] {{{ ]> }}} === Acceleration Sensor === The following accelerometer measurement provides values for X- , Y- , and Z-axis. We need three properties for all the values here. The unit of measurements is common for all three values. The same applies for the timestamp. [[Image(Accel sensor phase3.png)]] {{{ ]> }}} == Actuators == So far we have defined simple actuators only. Their status can be either '''on''' or '''off''' so that they have boolean values. [[Image(Actuators phase3.png)]] == Parameters (Node MIBs) == The Node MIBs are now subclasses of Observation And Measurement hence its properties are borrowed from Observation and Measurements only: [[Image(NMIB phase3.png)]]