[zb4osgi-changeset] [scm] ZigBee 4 OSGi repository change: r240 - in /projects/zb4osgi/sandbox/miguel.llorente/eclipse: ./ zigbee.pcl.library/ zigbee.pcl.library/src/ zigbee.pcl.library/src/main/ zigbee.pcl.library/src/main/java/ zigbee.pcl.library/src/main/java/it/ zigbee.pcl.library/src/main/java/it/cnr/ zigbee.pcl.library/src/main/java/it/cnr/isti/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/attribute/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/ zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/carpet/ zigbee.pcl.library/src/main/resources/ zigbee.pcl.library/src/test/ zigbee.pcl.library/src/test/java/ zigbee.pcl.library/src/test/resources/

scm-notify at zb4osgi.aaloa.org scm-notify at zb4osgi.aaloa.org
Thu May 26 16:19:16 CEST 2011


Author: miguel.llorente
Date: Thu May 26 16:19:16 2011
New Revision: 240

Log: (empty)

Added:
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/pom.xml
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/BreakMeasurement.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CallButton.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CarpetMeasurement.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/ControllableHeaterType.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FaucetStateMeasurement.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FloodMeasurement.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GasMeasurement.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GestureGlove.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/MagneticContactMeasurement.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/OpticalMeasurement.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/WeightMeasurement.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetChangeListener.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetStatus.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/GestureListener.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/Gestures.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/BreakMeasurementCluster.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CallButtonCluster.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CarpetMeasurementCluster.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/ControllableHeaterTypeCluster.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FaucetStateMeasurementCluster.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FloodMeasurementCluster.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GasMeasurementCluster.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GestureGloveCluster.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/MagneticContactMeasurementCluster.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/WeightMeasurementCluster.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/attribute/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/attribute/Attributes.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/carpet/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/carpet/RecalibrateOrRedefineSensibilityCommand.java   (with props)
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/resources/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/test/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/test/java/
    projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/test/resources/

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/pom.xml
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/pom.xml (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/pom.xml Thu May 26 16:19:16 2011
@@ -1,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <artifactId>sail.pom</artifactId>
+    <groupId>org.aal-persona.sail</groupId>
+    <version>8-SNAPSHOT</version>
+    <relativePath>../pom/pom.xml</relativePath>
+  </parent>
+
+  <groupId>org.aal-persona.sail</groupId>
+  <artifactId>org.aal-persona.zigbee.pcl.library</artifactId>
+  <packaging>bundle</packaging>  
+  <version>0.6.0-SNAPSHOT</version>
+
+  <name>Java ZigBee PERSONA Cluster Driver</name>
+  <url>http://gforge.aal-persona.org/projects/persona-sail/</url>
+  <description><![CDATA[
+A set of Java classes reppresenting the ITACA Cluster library
+  ]]></description>
+
+  <scm>
+    <connection>scm:svn:http://gforge.aal-persona.org/svn/persona-sail/trunk/Java/zigbee.pcl.library</connection>
+    <developerConnection>scm:svn:http://gforge.aal-persona.org/svn/persona-sail/trunk/Java/zigbee.pcl.library</developerConnection>
+    <url>http://gforge.aal-persona.org/scm/viewvc.php/trunk/Java/?root=persona-sail/trunk/Java/zigbee.pcl.library</url>
+  </scm>
+  
+
+  <dependencies>
+
+    <dependency>
+      <groupId>org.aaloa.zb4osgi</groupId>
+      <artifactId>org.aaloa.zb4osgi.zigbee.zcl.library</artifactId>
+      <version>0.8.0</version>
+    </dependency>  
+    <dependency>
+      <groupId>org.aaloa.zb4osgi</groupId>
+      <artifactId>org.aaloa.zb4osgi.zigbee.basedriver.api</artifactId>
+      <version>0.6.0</version>
+    </dependency>  
+    <dependency>
+      <groupId>org.aaloa.zb4osgi</groupId>
+      <artifactId>org.aaloa.zb4osgi.zigbee.common</artifactId>
+      <version>0.5.0</version>
+    </dependency>
+    <dependency>
+      <groupId>org.ops4j.pax.logging</groupId>
+      <artifactId>pax-logging-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.ops4j.pax.logging</groupId>
+      <artifactId>pax-logging-service</artifactId>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>   
+      <plugin>    
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            <Bundle-Author><![CDATA[Stefano "Kismet" Lenzi <stefano.lenzi at isti.cnr.it>]]></Bundle-Author>
+            <Bundle-Name>${pom.name}</Bundle-Name>
+            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-Activator />
+            <Private-Package>
+            </Private-Package>
+            <Export-Package>
+              it.cnr.isti.zigbee.pcl.*;version=${pom.version}
+            </Export-Package>
+            <Import-Package>
+              it.cnr.isti.zigbee.api,
+              it.cnr.isti.zigbee.zcl.*, 
+              it.cnr.isti.primitvetypes.util,
+              org.osgi.*,
+              org.slf4j; provider=paxlogging                
+            </Import-Package>
+          </instructions>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-changelog-plugin</artifactId>
+        <configuration>
+          <type>date</type>
+          <dates>
+            <date implementation="java.lang.String">2009-09-25</date>
+            <date implementation="java.lang.String">2010-10-23</date>
+          </dates>
+          <dateFormat>yyyy-MM-dd</dateFormat>
+        </configuration>
+      </plugin>
+    </plugins>
+  </reporting>
+
+</project>

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/BreakMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/BreakMeasurement.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/BreakMeasurement.java Thu May 26 16:19:16 2011
@@ -1,0 +1,32 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ *               
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.3.0
+ *
+ */
+public interface BreakMeasurement extends ZCLCluster {
+
+	public static final short ID = (short) 0xFC04;
+	public static final String NAME = "BreakMeasurement";
+	public static final String DESCRIPTION = "The server cluster provides an interface to break measurement functionality, " +
+			"including configuration and provision of notifications of break measurements.";
+	
+	public Attribute getAttributeMeasuredValue();
+	public Attribute getAttributeMinMeasuredValue();
+	public Attribute getAttributeMaxMeasuredValue();
+	public Attribute getAttributeTolerance();
+	
+	public Attribute getAttributeBreakAlarmMask();
+	public Attribute getAttributeBreakLowThreshold();
+	public Attribute getAttributeBreakHighThreshold();
+	public Attribute getAttributeBreakLowDwellTripPoint();
+	public Attribute getAttributeBreakHighDwellTripPoint();
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/BreakMeasurement.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/BreakMeasurement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/BreakMeasurement.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CallButton.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CallButton.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CallButton.java Thu May 26 16:19:16 2011
@@ -1,0 +1,23 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ *         
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.1.0
+ *
+ */
+public interface CallButton extends ZCLCluster {
+
+	public static final short ID = (short) 0xFC0B;
+	public static final String NAME = "CallButton";
+	public static final String DESCRIPTION = "The server cluster provides an interface to button functionality, including configuration and provision of notification of button";
+	
+	public Attribute getAttributeExtendedAddress();
+	public Attribute getAttributeCallValue();
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CallButton.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CallButton.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CallButton.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CarpetMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CarpetMeasurement.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CarpetMeasurement.java Thu May 26 16:19:16 2011
@@ -1,0 +1,60 @@
+/*
+   Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+   Institute of Information Science and Technologies 
+   of the Italian National Research Council 
+
+
+   See the NOTICE file distributed with this work for additional 
+   information regarding copyright ownership
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+*/
+
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.carpet.CarpetChangeListener;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+
+/**
+ * This class represent the <b>Carpet Measurement</b> Cluster as defined by the document:<br>
+ * <i>ITACA Cluster Library</i>
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @version  $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.5.0
+ *
+ */
+public interface CarpetMeasurement extends ZCLCluster {
+	
+	public static final short ID = (short) 0xFC0D;
+	public static final String NAME = "CarpetMeasurement";
+	public static final String DESCRIPTION = "Attributes and commands for putting a device into Carpet Measurement";
+		
+	public static final byte CHANGE_STATUS_ID = 0x00;
+	public static final byte RECALIBRATE_OR_REDEFINE_SENSIBILITY_ID = 0x00;
+
+	
+	public Attribute getAttributeCarpetID();
+	public Attribute getAttributeZonesCount();
+	public Attribute getAttributeDataSense();
+	
+	public Response recalibrate(byte carpetId) throws ZigBeeClusterException;
+	public Response redefineSensibility(byte carpetId,byte dataSense) throws ZigBeeClusterException;
+	
+	public boolean addCarpetChangeListerner(CarpetChangeListener listener);
+	public boolean removeCarpetChangeListerner(CarpetChangeListener listener);
+	
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CarpetMeasurement.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CarpetMeasurement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/CarpetMeasurement.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/ControllableHeaterType.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/ControllableHeaterType.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/ControllableHeaterType.java Thu May 26 16:19:16 2011
@@ -1,0 +1,22 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2009
+ *               
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.5.0
+ *
+ */
+public interface ControllableHeaterType extends ZCLCluster{
+
+	public static final short ID = (short) 0xFC10;
+	public static final String NAME = "Controllable Heater Type";
+	public static final String DESCRIPTION = "The server cluster provides an interface to know the type of heater to controller.";
+	
+	public Attribute getAttributeControllableHeaterType();
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/ControllableHeaterType.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/ControllableHeaterType.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/ControllableHeaterType.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FaucetStateMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FaucetStateMeasurement.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FaucetStateMeasurement.java Thu May 26 16:19:16 2011
@@ -1,0 +1,23 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ *               
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.4.0
+ *
+ */
+public interface FaucetStateMeasurement extends ZCLCluster {
+
+	public static final short ID = (short) 0xFC13;
+	public static final String NAME = "FaucetStateMeasurement";
+	public static final String DESCRIPTION = "Cluster provides an interface to faucet state measurement functionality.";
+	
+	public Attribute getAttributeOnOff();
+	public Attribute getAttributeFaucetStateType();
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FaucetStateMeasurement.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FaucetStateMeasurement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FaucetStateMeasurement.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FloodMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FloodMeasurement.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FloodMeasurement.java Thu May 26 16:19:16 2011
@@ -1,0 +1,24 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ *         
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.1.0
+ *
+ */
+public interface FloodMeasurement extends ZCLCluster {
+
+	public static final short ID = (short) 0xFC0A;
+	public static final String NAME = "FloodMeasurement";
+	public static final String DESCRIPTION = "Attributes and commands for detect the presence of a liquid and indicating the type of liquid.";
+	
+	public Attribute getAttributeOnOff();
+	public Attribute getAttributeFlowIIType();
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FloodMeasurement.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FloodMeasurement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/FloodMeasurement.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GasMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GasMeasurement.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GasMeasurement.java Thu May 26 16:19:16 2011
@@ -1,0 +1,32 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ *         
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.1.0
+ *
+ */
+public interface GasMeasurement extends ZCLCluster {
+	
+	public static final short ID = (short) 0xFC03;
+	public static final String NAME = "GasMeasurement";
+	public static final String DESCRIPTION = "Attributes and commands for configuring the measurement of gas, reporting gas measurements and indicating the type of gas measured and configuring the sensing of gas levels, and reporting if gas is above, below, or on target.";
+	
+	public Attribute getAttributeMeasuredValue();
+	public Attribute getAttributeMinMeasuredValue();
+	public Attribute getAttributeMaxMeasuredValue();
+	public Attribute getAttributeTolerance();
+	public Attribute getAttributeGasType();
+	public Attribute getAttributeGasAlarmMask();
+	public Attribute getAttributeGasLowThreshold();
+	public Attribute getAttributeGasHighThreshold();
+	public Attribute getAttributeGasLowDwellTripPoint();
+	public Attribute getAttributeGasHighDwellTripPoint();
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GasMeasurement.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GasMeasurement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GasMeasurement.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GestureGlove.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GestureGlove.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GestureGlove.java Thu May 26 16:19:16 2011
@@ -1,0 +1,49 @@
+/*
+   Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+   Institute of Information Science and Technologies 
+   of the Italian National Research Council 
+
+
+   See the NOTICE file distributed with this work for additional 
+   information regarding copyright ownership
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+*/
+
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.gesture.GestureListener;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.5.0
+ *
+ */
+public interface GestureGlove extends ZCLCluster {
+
+	public static final short ID = (short) 0xFC14;
+	public static final String NAME = "GestureGlove";
+	public static final String DESCRIPTION = "The server cluster provides an interface to gesture functionality";
+
+	public static final byte GESTURE_DONE_ID = 0x00;
+	
+	public Attribute getAttributeLastGesture();
+
+	public boolean addGestureListerner(GestureListener listener);
+	public boolean removeGestureListerner(GestureListener listener);
+	
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GestureGlove.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GestureGlove.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/GestureGlove.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/MagneticContactMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/MagneticContactMeasurement.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/MagneticContactMeasurement.java Thu May 26 16:19:16 2011
@@ -1,0 +1,22 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ *         
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.1.0
+ *
+ */
+public interface MagneticContactMeasurement extends ZCLCluster {
+
+	public static final short ID = (short) 0xFC0E;
+	public static final String NAME = "Magnetic Contact Measurement";
+	public static final String DESCRIPTION = "Attributes and commands for interacting to magnetic contact measurement ";
+	
+	public Attribute getAttributeOnOff();
+	public Attribute getAttributeMagneticContactType();
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/MagneticContactMeasurement.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/MagneticContactMeasurement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/MagneticContactMeasurement.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/OpticalMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/OpticalMeasurement.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/OpticalMeasurement.java Thu May 26 16:19:16 2011
@@ -1,0 +1,25 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+public interface OpticalMeasurement extends ZCLCluster {
+
+	//TODO Fixme
+	
+	public static final short ID = 0x0505;
+	public static final String NAME = "GasMeasurement";
+	public static final String DESCRIPTION = "Attributes and commands for configuring the measurement of gas, reporting gas measurements and indicating the type of gas measured and configuring the sensing of gas levels, and reporting if gas is above, below, or on target.";
+	
+	public Attribute getAttributeMeasuredValue();
+	public Attribute getAttributeMinMeasuredValue();
+	public Attribute getAttributeMaxMeasuredValue();
+	public Attribute getAttributeTolerance();
+	public Attribute getAttributeOpticalType();
+	public Attribute getAttributeGasAlarmMask();
+	public Attribute getAttributeGasLowThreshold();
+	public Attribute getAttributeGasHighThreshold();
+	public Attribute getAttributeGasLowDwellTripPoint();
+	public Attribute getAttributeGasHighDwellTripPoint();
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/OpticalMeasurement.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/OpticalMeasurement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/OpticalMeasurement.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/WeightMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/WeightMeasurement.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/WeightMeasurement.java Thu May 26 16:19:16 2011
@@ -1,0 +1,26 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2009
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.4.0
+ *
+ */
+public interface WeightMeasurement extends ZCLCluster{
+	
+	public static final short ID = (short) 0xFC12;
+	public static final String NAME = "Electronic Weight Measurement";
+	public static final String DESCRIPTION = "he server cluster provides an interface to weight functionality, " +
+			"including configuration and provision of notifications of weight measurements. ";
+	
+	public Attribute getAttributeMeasuredValue();
+	public Attribute getAttributeMinMeasuredValue();
+	public Attribute getAttributeMaxMeasuredValue();
+	public Attribute getAttributeTolerance();
+	
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/WeightMeasurement.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/WeightMeasurement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/WeightMeasurement.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetChangeListener.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetChangeListener.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetChangeListener.java Thu May 26 16:19:16 2011
@@ -1,0 +1,37 @@
+/*
+   Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+   Institute of Information Science and Technologies 
+   of the Italian National Research Council 
+
+
+   See the NOTICE file distributed with this work for additional 
+   information regarding copyright ownership
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+*/
+
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.carpet;
+
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.5.0
+ *
+ */
+public interface CarpetChangeListener {
+		
+	public void change(byte carpetId, byte zoneId, byte staus);
+	
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetChangeListener.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetChangeListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetChangeListener.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetStatus.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetStatus.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetStatus.java Thu May 26 16:19:16 2011
@@ -1,0 +1,36 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.carpet;
+
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.5.0
+ *
+ */
+public enum CarpetStatus {
+	ZoneOn(0x00,"Zone On"),
+	ZoneOff(0x01,"Zone Off"),
+	ConfigurationFinishedCorrectly(0x02,"Configuration finished correctly"),
+	BatteryCharging(0x04,"Battery charging"),
+	BatteryCharged(0x05,"Battery charged"),
+	Flood(0x06,"Flood");
+	
+	public final String description;
+	public final byte id;
+	
+	private CarpetStatus(int b, String d){
+		this.description = d;
+		this.id = (byte) b;
+	}
+	
+	public static CarpetStatus getFromId(byte id){
+		CarpetStatus[] values = CarpetStatus.values();
+		for (int j = 0; j < values.length; j++) {
+			if( id == values[j].id ) {
+				return values[j];
+			}
+		}
+		throw new IllegalArgumentException("No "+CarpetStatus.class.getName()+" with id "+id);
+	}
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetStatus.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetStatus.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/carpet/CarpetStatus.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/GestureListener.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/GestureListener.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/GestureListener.java Thu May 26 16:19:16 2011
@@ -1,0 +1,36 @@
+/*
+   Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+   Institute of Information Science and Technologies 
+   of the Italian National Research Council 
+
+
+   See the NOTICE file distributed with this work for additional 
+   information regarding copyright ownership
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+*/
+
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.gesture;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.5.0
+ *
+ */
+public interface GestureListener {
+	
+	public void gesture(byte code);
+	
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/GestureListener.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/GestureListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/GestureListener.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/Gestures.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/Gestures.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/Gestures.java Thu May 26 16:19:16 2011
@@ -1,0 +1,34 @@
+package it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.gesture;
+
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.5.0
+ *
+ */
+public enum Gestures {
+	Alert(0x00),
+	Yes(0x01),
+	Ok(0x02),
+	Up(0x03),
+	Down(0x04),
+	Unknown(0xFF);
+	
+	public final byte id;
+	
+	private Gestures(int b){
+		this.id = (byte) b;
+	}
+	
+	public static Gestures getFromId(byte id){
+		Gestures[] values = Gestures.values();
+		for (int j = 0; j < values.length; j++) {
+			if( id == values[j].id ) {
+				return values[j];
+			}
+		}
+		throw new IllegalArgumentException("No "+Gestures.class.getName()+" with id "+id);
+	}
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/Gestures.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/Gestures.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/api/measurement_sensing/gesture/Gestures.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/BreakMeasurementCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/BreakMeasurementCluster.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/BreakMeasurementCluster.java Thu May 26 16:19:16 2011
@@ -1,0 +1,105 @@
+package it.cnr.isti.zigbee.pcl.library.impl;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.BreakMeasurement;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.GasMeasurement;
+import it.cnr.isti.zigbee.pcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ *               
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.3.0
+ *
+ */
+public class BreakMeasurementCluster extends ZCLClusterBase implements BreakMeasurement {
+    
+	private final AttributeImpl breakAlarmMask;
+	private final AttributeImpl breakHighDwellTripPoint;
+	private final AttributeImpl breakHighThreshold;
+	private final AttributeImpl breakLowDwellTripPoint;
+	private final AttributeImpl breakLowThreshold;
+	
+	private final AttributeImpl maxMeasuredValue;
+	private final AttributeImpl measuredValue;
+	private final AttributeImpl minMeasuredValue;
+	private final AttributeImpl tollerance;
+	
+	private final Attribute[] attributes;
+	
+	public BreakMeasurementCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		breakAlarmMask = new AttributeImpl(zbDevice,this,Attributes.BREAK_ALARM_MASK);
+		breakHighDwellTripPoint = new AttributeImpl(zbDevice,this,Attributes.BREAK_HIGH_DWELL_TRIP_POINT);
+		breakHighThreshold = new AttributeImpl(zbDevice,this,Attributes.BREAK_HIGH_THRESHOLD);
+		breakLowDwellTripPoint = new AttributeImpl(zbDevice,this,Attributes.BREAK_LOW_DWELL_TRIP_POINT);
+		breakLowThreshold = new AttributeImpl(zbDevice,this,Attributes.BREAK_LOW_THRESHOLD);
+		
+		//NOTE the following attributes are shared with GasMeasurementCluster
+		maxMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MAX_MEASURED_VALUE);
+		measuredValue = new AttributeImpl(zbDevice,this,Attributes.MEASURED_VALUE);
+		minMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MIN_MEASURED_VALUE);
+		tollerance = new AttributeImpl(zbDevice,this,Attributes.TOLERANCE);
+		attributes = new AttributeImpl[]{
+			breakAlarmMask, breakHighDwellTripPoint, breakHighThreshold,
+			breakLowDwellTripPoint, breakLowThreshold, maxMeasuredValue,
+			measuredValue, minMeasuredValue, tollerance
+		};
+		
+	}
+
+	@Override
+	public short getId() {
+		return GasMeasurement.ID;
+	}
+
+	@Override
+	public String getName() {
+		return GasMeasurement.NAME;
+	}
+
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeMaxMeasuredValue() {
+		return maxMeasuredValue;
+	}
+
+	public Attribute getAttributeMeasuredValue() {
+		return measuredValue;
+	}
+
+	public Attribute getAttributeMinMeasuredValue() {
+		return minMeasuredValue;
+	}
+
+	public Attribute getAttributeTolerance() {
+		return tollerance;
+	}
+
+	public Attribute getAttributeBreakAlarmMask() {
+	    return breakAlarmMask;
+	}
+
+	public Attribute getAttributeBreakHighDwellTripPoint() {
+	    return breakHighDwellTripPoint;
+	}
+
+	public Attribute getAttributeBreakHighThreshold() {
+	    return breakHighThreshold;
+	}
+
+	public Attribute getAttributeBreakLowDwellTripPoint() {
+	    return breakLowDwellTripPoint;
+	}
+
+	public Attribute getAttributeBreakLowThreshold() {
+	    return breakLowThreshold;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/BreakMeasurementCluster.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/BreakMeasurementCluster.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/BreakMeasurementCluster.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CallButtonCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CallButtonCluster.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CallButtonCluster.java Thu May 26 16:19:16 2011
@@ -1,0 +1,54 @@
+package it.cnr.isti.zigbee.pcl.library.impl;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.CallButton;
+import it.cnr.isti.zigbee.pcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ *         
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.1.0
+ *
+ */
+public class CallButtonCluster extends ZCLClusterBase implements CallButton{
+
+	private final AttributeImpl extendedAddress;
+	private final AttributeImpl callValue;
+	
+	private Attribute[] attributes;
+	
+	public CallButtonCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		extendedAddress = new AttributeImpl(zbDevice,this,Attributes.EXTENDED_ADDRESS);
+		callValue = new AttributeImpl(zbDevice,this,Attributes.CALL_VALUE);
+		attributes = new AttributeImpl[]{extendedAddress, callValue};
+	}
+	
+	@Override
+	public short getId() {
+		return ID;
+	}
+
+	@Override
+	public String getName() {
+		return NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeExtendedAddress() {
+		return extendedAddress;
+	}
+
+	public Attribute getAttributeCallValue() {
+		return callValue;
+	}
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CallButtonCluster.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CallButtonCluster.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CallButtonCluster.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CarpetMeasurementCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CarpetMeasurementCluster.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CarpetMeasurementCluster.java Thu May 26 16:19:16 2011
@@ -1,0 +1,193 @@
+package it.cnr.isti.zigbee.pcl.library.impl;
+
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.api.ClusterFilter;
+import it.cnr.isti.zigbee.api.ClusterListner;
+import it.cnr.isti.zigbee.api.ZigBeeBasedriverException;
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.CarpetMeasurement;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.carpet.CarpetChangeListener;
+import it.cnr.isti.zigbee.pcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.pcl.library.impl.measurement_sensing.carpet.RecalibrateOrRedefineSensibilityCommand;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBDeserializer;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLFrame;
+import it.cnr.isti.zigbee.zcl.library.impl.global.DefaultResponseImpl;
+
+import java.util.ArrayList;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ *         
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.5.0
+ *
+ */
+public class CarpetMeasurementCluster extends ZCLClusterBase implements CarpetMeasurement{
+
+	private final Logger log = LoggerFactory.getLogger(CarpetMeasurementCluster.class);
+	
+	private final static ClusterFilter CARPET_CHANGE_FILTER = new ClusterFilter() {
+		public boolean match(Cluster cluster) {
+			ZCLFrame frame = new ZCLFrame(cluster);
+			//TODO Change the commandID if it changes
+			return frame.getHeader().getCommandId() == CarpetMeasurement.CHANGE_STATUS_ID
+			&& frame.getHeader().getFramecontrol().isClusterSpecificCommand();
+		}
+	};
+	
+	private final ArrayList<CarpetChangeListener> listeners = new ArrayList<CarpetChangeListener>();
+
+	private final CarpetChangeListenerNotifier bridge;									
+
+	private class CarpetChangeListenerNotifier implements ClusterListner {
+
+		private final ZigBeeDevice dev;
+
+		public CarpetChangeListenerNotifier(ZigBeeDevice zb){
+			dev = zb;
+		}
+		
+		public void handleCluster(ZigBeeDevice device, Cluster c) {
+			if ( device != dev ) return;
+			if ( c.getId() != CarpetMeasurement.ID ) return;
+			
+			final ZCLFrame frame = new ZCLFrame(c);			
+			final byte[] msg = frame.getPayload();			
+			
+			ZBDeserializer deserializer = new DefaultDeserializer(msg, 0);
+			final byte carpet = deserializer.read_byte();
+			final byte zone = deserializer.read_byte();
+			final byte status = deserializer.read_byte();
+			
+			ArrayList<CarpetChangeListener> localCopy;
+			synchronized (listeners) {
+				localCopy = new ArrayList<CarpetChangeListener>(listeners);					
+			}
+			log.debug("Notifying {} GestureListener", localCopy.size());
+			for (CarpetChangeListener carpetListener : localCopy) {
+				try{
+					log.debug("Notifying {}:{}", carpetListener.getClass().getName(), carpetListener);
+					carpetListener.change( carpet, zone, status);
+				}catch(Exception e){
+					log.error("Error while notifying {}:{} caused by {}",new Object[]{
+							carpetListener.getClass().getName(), carpetListener, e.getStackTrace() 
+					});
+				}
+			}
+		}
+
+		public ClusterFilter getClusterFilter() {
+			return CARPET_CHANGE_FILTER;
+		}
+
+		public void setClusterFilter(ClusterFilter filter) {			
+			log.debug("setClusterFilter invoked: WHY IT HAPPENED?");
+		}
+		
+	}
+	
+	
+	private final AttributeImpl carpetId;
+	private final AttributeImpl zonesCount;
+	private final AttributeImpl dataSense;
+	
+	private Attribute[] attributes;
+	
+	public CarpetMeasurementCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		bridge = new CarpetChangeListenerNotifier(zbDevice);
+		carpetId = new AttributeImpl(zbDevice,this,Attributes.CARPET_ID);
+		dataSense = new AttributeImpl(zbDevice,this,Attributes.DATA_SENSE);
+		zonesCount = new AttributeImpl(zbDevice,this,Attributes.ZONES_COUNT);
+		attributes = new AttributeImpl[]{carpetId, dataSense, zonesCount};
+	}
+	
+	@Override
+	public short getId() {
+		return ID;
+	}
+
+	@Override
+	public String getName() {
+		return NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeCarpetID() {
+		return carpetId;
+	}
+
+	public Attribute getAttributeDataSense() {
+		return dataSense;
+	}
+
+	public Attribute getAttributeZonesCount() {
+		return zonesCount;
+	}
+
+	public Response recalibrate(byte carpetId) throws ZigBeeClusterException {
+		enableDefaultResponse();
+		RecalibrateOrRedefineSensibilityCommand moveCmd = new RecalibrateOrRedefineSensibilityCommand(carpetId);
+		Response response = invoke(moveCmd);
+		return new DefaultResponseImpl(response);
+	}
+
+	public Response redefineSensibility(byte carpetId, byte dataSense) throws ZigBeeClusterException {
+		enableDefaultResponse();
+		RecalibrateOrRedefineSensibilityCommand moveCmd = new RecalibrateOrRedefineSensibilityCommand(carpetId,dataSense);
+		Response response = invoke(moveCmd);
+		return new DefaultResponseImpl(response);
+	}
+	
+	public boolean addCarpetChangeListerner(CarpetChangeListener listener) {
+	    synchronized (listeners) {
+			if ( listeners.size() == 0 ){
+			    try {
+			    	getZigBeeDevice().bind(ID);
+			    } catch (ZigBeeBasedriverException e) {
+					log.error("Unable to bind to device for enabling reporting of carpet changes", e);
+					return false;
+			    }
+			    if ( getZigBeeDevice().addClusterListener(bridge) == false ) {
+					log.error("Unable to register the cluster listener for receiving 'Change status' command");
+					return false;
+			    }
+			}
+			listeners.add(listener);
+			return true;		
+	    }
+	}
+
+	public boolean removeCarpetChangeListerner(CarpetChangeListener listener) {
+	    synchronized (listeners) {
+			boolean removed = listeners.remove(listener); 
+			if ( listeners.size() == 0 && removed ){
+			    try {
+			    	getZigBeeDevice().unbind(ID);
+			    } catch (ZigBeeBasedriverException e) {
+					log.error("Unable to unbind to device for disabling reporting of carpet changes", e);
+					return false;
+			    }
+			    if ( getZigBeeDevice().removeClusterListener(bridge) == false ) {
+					log.error("Unable to unregister the cluster listener for 'Change status' command");
+					return false;
+			    }
+			}
+			return removed;		
+	    }
+	}
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CarpetMeasurementCluster.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CarpetMeasurementCluster.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/CarpetMeasurementCluster.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/ControllableHeaterTypeCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/ControllableHeaterTypeCluster.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/ControllableHeaterTypeCluster.java Thu May 26 16:19:16 2011
@@ -1,0 +1,49 @@
+package it.cnr.isti.zigbee.pcl.library.impl;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.ControllableHeaterType;
+import it.cnr.isti.zigbee.pcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2009
+ *               
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.5.0
+ *
+ */
+public class ControllableHeaterTypeCluster extends ZCLClusterBase implements ControllableHeaterType {
+
+	private final AttributeImpl controllableHeaterType;
+	
+	private final Attribute[] attributes;
+	
+	public ControllableHeaterTypeCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		controllableHeaterType = new AttributeImpl(zbDevice,this,Attributes.CONTROLLABLE_HEATER_TYPE);
+		attributes = new AttributeImpl[]{controllableHeaterType};
+	}
+	
+	@Override
+	public short getId() {
+		return ID;
+	}
+
+	@Override
+	public String getName() {
+		return NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeControllableHeaterType() {
+		return controllableHeaterType;
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/ControllableHeaterTypeCluster.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/ControllableHeaterTypeCluster.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/ControllableHeaterTypeCluster.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FaucetStateMeasurementCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FaucetStateMeasurementCluster.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FaucetStateMeasurementCluster.java Thu May 26 16:19:16 2011
@@ -1,0 +1,47 @@
+package it.cnr.isti.zigbee.pcl.library.impl;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.FaucetStateMeasurement;
+import it.cnr.isti.zigbee.pcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+public class FaucetStateMeasurementCluster extends ZCLClusterBase implements FaucetStateMeasurement {
+
+	private final AttributeImpl onOff;
+	private final AttributeImpl faucetStateType;
+	
+	private final Attribute[] attributes;
+	
+	public FaucetStateMeasurementCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		onOff = new AttributeImpl(zbDevice,this,Attributes.ON_OFF);
+		faucetStateType = new AttributeImpl(zbDevice,this,Attributes.FAUCET_STATE_TYPE);
+		attributes = new AttributeImpl[]{onOff, faucetStateType};
+	}
+	
+	@Override
+	public short getId() {
+		return ID;
+	}
+
+	@Override
+	public String getName() {
+		return NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+	
+	public Attribute getAttributeOnOff() {
+		return onOff;
+	}
+
+	public Attribute getAttributeFaucetStateType() {
+		return faucetStateType;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FaucetStateMeasurementCluster.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FaucetStateMeasurementCluster.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FaucetStateMeasurementCluster.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FloodMeasurementCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FloodMeasurementCluster.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FloodMeasurementCluster.java Thu May 26 16:19:16 2011
@@ -1,0 +1,48 @@
+package it.cnr.isti.zigbee.pcl.library.impl;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.FloodMeasurement;
+import it.cnr.isti.zigbee.pcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+public class FloodMeasurementCluster extends ZCLClusterBase implements
+		FloodMeasurement {
+
+	private final AttributeImpl onOff;
+	private final AttributeImpl flowIIType;
+	
+	private final Attribute[] attributes;
+	
+	public FloodMeasurementCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		onOff = new AttributeImpl(zbDevice,this,Attributes.ON_OFF);
+		flowIIType = new AttributeImpl(zbDevice,this,Attributes.FLOW_II_TYPE);
+		attributes = new AttributeImpl[]{onOff, flowIIType};
+	}
+	
+	@Override
+	public short getId() {
+		return ID;
+	}
+
+	@Override
+	public String getName() {
+		return NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeFlowIIType() {
+		return flowIIType;
+	}
+
+	public Attribute getAttributeOnOff() {
+		return onOff;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FloodMeasurementCluster.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FloodMeasurementCluster.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/FloodMeasurementCluster.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GasMeasurementCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GasMeasurementCluster.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GasMeasurementCluster.java Thu May 26 16:19:16 2011
@@ -1,0 +1,99 @@
+package it.cnr.isti.zigbee.pcl.library.impl;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.GasMeasurement;
+import it.cnr.isti.zigbee.pcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+public class GasMeasurementCluster extends ZCLClusterBase implements
+		GasMeasurement {
+	
+	private final AttributeImpl gasAlarmMask;
+	private final AttributeImpl gasHighDwellTripPoint;
+	private final AttributeImpl gasHighThreshold;
+	private final AttributeImpl gasLowDwellTripPoint;
+	private final AttributeImpl gasLowThreshold;
+	private final AttributeImpl gasType;
+	private final AttributeImpl maxMeasuredValue;
+	private final AttributeImpl measuredValue;
+	private final AttributeImpl minMeasuredValue;
+	private final AttributeImpl tollerance;
+	
+	private final Attribute[] attributes;
+	
+	public GasMeasurementCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		gasAlarmMask = new AttributeImpl(zbDevice,this,Attributes.GAS_ALARM_MASK);
+		gasHighDwellTripPoint = new AttributeImpl(zbDevice,this,Attributes.GAS_HIGH_DWELL_TRIP_POINT);
+		gasHighThreshold = new AttributeImpl(zbDevice,this,Attributes.GAS_HIGH_THRESHOLD);
+		gasLowDwellTripPoint = new AttributeImpl(zbDevice,this,Attributes.GAS_LOW_DWELL_TRIP_POINT);
+		gasLowThreshold = new AttributeImpl(zbDevice,this,Attributes.GAS_LOW_THRESHOLD);
+		gasType = new AttributeImpl(zbDevice,this,Attributes.GAS_TYPE);
+		maxMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MAX_MEASURED_VALUE);
+		measuredValue = new AttributeImpl(zbDevice,this,Attributes.MEASURED_VALUE);
+		minMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MIN_MEASURED_VALUE);
+		tollerance = new AttributeImpl(zbDevice,this,Attributes.TOLERANCE);
+		attributes = new AttributeImpl[]{gasAlarmMask,gasHighDwellTripPoint,gasHighThreshold,
+				gasLowDwellTripPoint, gasLowThreshold, gasType, maxMeasuredValue,
+				measuredValue, minMeasuredValue, tollerance};
+		
+	}
+
+	@Override
+	public short getId() {
+		return GasMeasurement.ID;
+	}
+
+	@Override
+	public String getName() {
+		return GasMeasurement.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeGasAlarmMask() {
+		return gasAlarmMask;
+	}
+
+	public Attribute getAttributeGasHighDwellTripPoint() {
+		return gasLowDwellTripPoint;
+	}
+
+	public Attribute getAttributeGasHighThreshold() {
+		return gasHighThreshold;
+	}
+
+	public Attribute getAttributeGasLowDwellTripPoint() {
+		return gasLowDwellTripPoint;
+	}
+
+	public Attribute getAttributeGasLowThreshold() {
+		return gasLowThreshold;
+	}
+
+	public Attribute getAttributeGasType() {
+		return gasType;
+	}
+
+	public Attribute getAttributeMaxMeasuredValue() {
+		return maxMeasuredValue;
+	}
+
+	public Attribute getAttributeMeasuredValue() {
+		return measuredValue;
+	}
+
+	public Attribute getAttributeMinMeasuredValue() {
+		return minMeasuredValue;
+	}
+
+	public Attribute getAttributeTolerance() {
+		return tollerance;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GasMeasurementCluster.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GasMeasurementCluster.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GasMeasurementCluster.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GestureGloveCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GestureGloveCluster.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GestureGloveCluster.java Thu May 26 16:19:16 2011
@@ -1,0 +1,181 @@
+/*
+   Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+   Institute of Information Science and Technologies 
+   of the Italian National Research Council 
+
+
+   See the NOTICE file distributed with this work for additional 
+   information regarding copyright ownership
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+*/
+
+package it.cnr.isti.zigbee.pcl.library.impl;
+
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.api.ClusterFilter;
+import it.cnr.isti.zigbee.api.ClusterListner;
+import it.cnr.isti.zigbee.api.ZigBeeBasedriverException;
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.GestureGlove;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.gesture.GestureListener;
+import it.cnr.isti.zigbee.pcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLFrame;
+
+import java.util.ArrayList;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.5.0
+ *
+ */
+public class GestureGloveCluster extends ZCLClusterBase implements GestureGlove{
+	
+	private final Logger log = LoggerFactory.getLogger(GestureGloveCluster.class);
+    
+    private final AttributeImpl lastGesture;
+	
+	private final Attribute[] attributes;	
+	
+	private final ArrayList<GestureListener> listeners = new ArrayList<GestureListener>();
+
+	private GestureListenerNotifier bridge;
+									
+	private final static ClusterFilter GESTURE_DONE_FILTER = new ClusterFilter() {
+		public boolean match(Cluster cluster) {
+			ZCLFrame frame = new ZCLFrame(cluster);
+			return frame.getHeader().getCommandId() == GestureGlove.GESTURE_DONE_ID
+			&& frame.getHeader().getFramecontrol().isClusterSpecificCommand();
+		}
+	};
+
+	private class GestureListenerNotifier implements ClusterListner {
+
+		private final ZigBeeDevice dev;
+
+		private GestureListenerNotifier(ZigBeeDevice d){
+			dev = d;
+		}
+		
+		public void handleCluster(ZigBeeDevice device, Cluster c) {
+			if ( device != dev ) return;
+			if ( c.getId() != GestureGlove.ID ) return;
+			
+			final ZCLFrame frame = new ZCLFrame(c);			
+			final byte[] msg = frame.getPayload();			
+			
+			ZBDeserializer deserializer = new DefaultDeserializer(msg, 0);
+			final byte gestureDone = deserializer.read_byte();
+			
+			ArrayList<GestureListener> localCopy;
+			synchronized (listeners) {
+				localCopy = new ArrayList<GestureListener>(listeners);					
+			}
+			log.debug("Notifying {} GestureListener", localCopy.size());
+			for (GestureListener alarmListner : localCopy) {
+				try{
+					log.debug("Notifying {}:{}", alarmListner.getClass().getName(), alarmListner);
+					alarmListner.gesture(gestureDone);
+				}catch(Exception e){
+					log.error("Error while notifying {}:{} caused by {}",new Object[]{
+							alarmListner.getClass().getName(), alarmListner, e.getStackTrace() 
+					});
+				}
+			}
+		}
+
+		public ClusterFilter getClusterFilter() {
+			return GESTURE_DONE_FILTER;
+		}
+
+		public void setClusterFilter(ClusterFilter filter) {			
+			log.debug("setClusterFilter has been invoked: WHY?!?!?");
+		}
+		
+	}
+	
+	public GestureGloveCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		lastGesture = new AttributeImpl(zbDevice,this,Attributes.LAST_GESTURE);
+		attributes = new AttributeImpl[]{lastGesture};
+		bridge = new GestureListenerNotifier(zbDevice);
+	}
+	
+
+	public short getId() {
+		return GestureGlove.ID;
+	}
+
+	public String getName() {
+		return GestureGlove.NAME;
+	}
+
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeLastGesture() {
+		return lastGesture;
+	}
+	
+	public boolean addGestureListerner(GestureListener listener) {
+	    synchronized (listeners) {
+			if ( listeners.size() == 0 ){
+			    try {
+			    	getZigBeeDevice().bind(ID);
+			    } catch (ZigBeeBasedriverException e) {
+					log.error("Unable to bind to device for enabling reporting of gesture recognized by the glove", e);
+					return false;
+			    }
+			    if ( getZigBeeDevice().addClusterListener(bridge) == false ) {
+					log.error("Unable to register the cluster listener for 'Gesture done' command");
+					return false;
+			    }
+			}
+			listeners.add(listener);
+			return true;		
+	    }
+	}
+
+
+	public boolean removeGestureListerner(GestureListener listener) {
+	    synchronized (listeners) {
+			boolean removed = listeners.remove(listener); 
+			if ( listeners.size() == 0 && removed ){
+			    try {
+			    	getZigBeeDevice().unbind(ID);
+			    } catch (ZigBeeBasedriverException e) {
+					log.error("Unable to unbind to device for disabling reporting of gesture recognized by the glove", e);
+					return false;
+			    }
+			    if ( getZigBeeDevice().removeClusterListener(bridge) == false ) {
+					log.error("Unable to unregister the cluster listener for 'Gesture done' command");
+					return false;
+			    }
+			}
+			return removed;		
+	    }
+	}
+
+
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GestureGloveCluster.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GestureGloveCluster.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/GestureGloveCluster.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/MagneticContactMeasurementCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/MagneticContactMeasurementCluster.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/MagneticContactMeasurementCluster.java Thu May 26 16:19:16 2011
@@ -1,0 +1,46 @@
+package it.cnr.isti.zigbee.pcl.library.impl;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.MagneticContactMeasurement;
+import it.cnr.isti.zigbee.pcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+public class MagneticContactMeasurementCluster extends ZCLClusterBase implements
+		MagneticContactMeasurement {
+
+	private final AttributeImpl onOff;
+	private final AttributeImpl type;
+	
+	private final Attribute[] attributes;
+	
+	public MagneticContactMeasurementCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		onOff = new AttributeImpl(zbDevice,this,Attributes.ON_OFF);
+		type = new AttributeImpl(zbDevice,this,Attributes.FLOW_II_TYPE);
+		attributes = new AttributeImpl[]{onOff, type};
+	}
+	
+	@Override
+	public short getId() {
+		return ID;
+	}
+
+	public String getName() {
+		return NAME;
+	}
+
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeOnOff() {
+		return onOff;
+	}
+
+	public Attribute getAttributeMagneticContactType() {
+		return type;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/MagneticContactMeasurementCluster.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/MagneticContactMeasurementCluster.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/MagneticContactMeasurementCluster.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/WeightMeasurementCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/WeightMeasurementCluster.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/WeightMeasurementCluster.java Thu May 26 16:19:16 2011
@@ -1,0 +1,68 @@
+package it.cnr.isti.zigbee.pcl.library.impl;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.WeightMeasurement;
+import it.cnr.isti.zigbee.pcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+/**
+ * Implementation of the {@link WeightMeasurementCluster} interface
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2009
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.4.0
+ *
+ */
+public class WeightMeasurementCluster extends ZCLClusterBase implements WeightMeasurement {
+
+	private final AttributeImpl measuredValue;
+	private final AttributeImpl minMeasuredValue;
+	private final AttributeImpl maxMeasuredValue;
+	private final AttributeImpl tolerance;
+	
+	private final Attribute[] attributes;
+
+	public WeightMeasurementCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		measuredValue = new AttributeImpl(zbDevice,this,Attributes.MEASURED_VALUE);
+		minMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MIN_MEASURED_VALUE);
+		maxMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MAX_MEASURED_VALUE);
+		tolerance = new AttributeImpl(zbDevice,this,Attributes.TOLERANCE);
+		attributes = new AttributeImpl[]{measuredValue, minMeasuredValue, maxMeasuredValue,tolerance};	
+	}
+	
+	@Override
+	public short getId() {
+		return ID;
+	}
+
+	@Override
+	public String getName() {
+		return NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeMaxMeasuredValue() {
+		return maxMeasuredValue;
+	}
+
+	public Attribute getAttributeMeasuredValue() {
+		return measuredValue;
+	}
+
+	public Attribute getAttributeMinMeasuredValue() {
+		return minMeasuredValue;
+	}
+
+	public Attribute getAttributeTolerance() {
+		return tolerance;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/WeightMeasurementCluster.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/WeightMeasurementCluster.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/WeightMeasurementCluster.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/attribute/Attributes.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/attribute/Attributes.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/attribute/Attributes.java Thu May 26 16:19:16 2011
@@ -1,0 +1,229 @@
+package it.cnr.isti.zigbee.pcl.library.impl.attribute;
+
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AbstractAttribute;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AttributeDescriptor;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari - ISTI-CNR
+ *         </a> - Copyright (c) 2008 - 2009
+ *         
+ * @version $LastChangedRevision$ ($LastChangedDate$)
+ * @since 0.1.0
+ *
+ */
+public class Attributes {
+	
+	final static public  AttributeDescriptor MEASURED_VALUE = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("MeasuredValue")
+	.setReportable(true)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(false);
+	
+	final static public  AttributeDescriptor MIN_MEASURED_VALUE = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("MinMeasuredValue")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(false);
+	
+	final static public  AttributeDescriptor MAX_MEASURED_VALUE = new AbstractAttribute()
+	.setId(0x0002)
+	.setName("MaxMeasuredValue")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(false);
+	
+	final static public  AttributeDescriptor TOLERANCE = new AbstractAttribute()
+	.setId(0x0003)
+	.setName("Tolerance")
+	.setReportable(true)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(false);
+	
+	final static public  AttributeDescriptor GAS_TYPE = new AbstractAttribute()
+	.setId(0x0010)
+	.setName("GasType")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+	
+	final static public  AttributeDescriptor GAS_ALARM_MASK = new AbstractAttribute()
+	.setId(0x0020)
+	.setName("GasAlarmMask")
+	.setReportable(false)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(true);
+	
+	final static public  AttributeDescriptor GAS_LOW_THRESHOLD = new AbstractAttribute()
+	.setId(0x0021)
+	.setName("GasLowThreshold")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(true);
+	
+	final static public  AttributeDescriptor GAS_HIGH_THRESHOLD = new AbstractAttribute()
+	.setId(0x0022)
+	.setName("GasHighThreshold")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(true);
+	
+	final static public  AttributeDescriptor GAS_LOW_DWELL_TRIP_POINT = new AbstractAttribute()
+	.setId(0x0023)
+	.setName("GasLowDwellTripPoint")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger24bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger24bit)
+	.setWritable(true);
+	
+	final static public  AttributeDescriptor GAS_HIGH_DWELL_TRIP_POINT = new AbstractAttribute()
+	.setId(0x0024)
+	.setName("GasHighDwellTripPoint")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger24bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger24bit)
+	.setWritable(true);
+	
+	final static public  AttributeDescriptor FLOW_II_TYPE = new AbstractAttribute()
+	.setId(0x0010)
+	.setName("FlowIIType")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+	
+	final static public  AttributeDescriptor ON_OFF = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("OnOff")
+	.setReportable(true)
+	.setType(ZigBeeType.Boolean.getJavaClass())
+	.setZigBeeType(ZigBeeType.Boolean)
+	.setWritable(false);
+
+	public static final AttributeDescriptor EXTENDED_ADDRESS = new AbstractAttribute()
+	.setId(0x0020)
+	.setName("ExtendedAddress")
+	.setReportable(false)
+	.setType(ZigBeeType.IEEEAddress.getJavaClass())
+	.setZigBeeType(ZigBeeType.IEEEAddress)
+	.setWritable(false);
+
+	public static AttributeDescriptor CALL_VALUE = new AbstractAttribute()
+	.setId(0x0070)
+	.setName("CallValue")
+	.setReportable(false)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(false);
+	
+	
+	final static public  AttributeDescriptor BREAK_ALARM_MASK = new AbstractAttribute()
+	.setId(0x0020)
+	.setName("BreakAlarmMask")
+	.setReportable(false)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(true);
+	
+	final static public  AttributeDescriptor BREAK_LOW_THRESHOLD = new AbstractAttribute()
+	.setId(0x0021)
+	.setName("BreakLowThreshold")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(true);
+	
+	final static public  AttributeDescriptor BREAK_HIGH_THRESHOLD = new AbstractAttribute()
+	.setId(0x0022)
+	.setName("BreakHighThreshold")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(true);
+	
+	final static public  AttributeDescriptor BREAK_LOW_DWELL_TRIP_POINT = new AbstractAttribute()
+	.setId(0x0023)
+	.setName("BreakLowDwellTripPoint")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger24bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger24bit)
+	.setWritable(true);
+	
+	final static public  AttributeDescriptor BREAK_HIGH_DWELL_TRIP_POINT = new AbstractAttribute()
+	.setId(0x0024)
+	.setName("BreakHighDwellTripPoint")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger24bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger24bit)
+	.setWritable(true);
+	
+	final static public  AttributeDescriptor MAGNETIC_CONTACT_TYPE = new AbstractAttribute()
+	.setId(0x0010)
+	.setName("MagneticContactType")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);	
+
+	final static public  AttributeDescriptor FAUCET_STATE_TYPE = new AbstractAttribute()
+	.setId(0x0010)
+	.setName("FaucetStateType")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+
+	public static final AttributeDescriptor CONTROLLABLE_HEATER_TYPE = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("ControllableHeaterType")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+
+	public static final AttributeDescriptor LAST_GESTURE = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("LastGesture")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+
+	public static final AttributeDescriptor CARPET_ID = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("CarpetID")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	public static final AttributeDescriptor ZONES_COUNT = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("ZonesCount")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	public static final AttributeDescriptor DATA_SENSE = new AbstractAttribute()
+	.setId(0x0010)
+	.setName("DataSense")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+	
+}
+

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/attribute/Attributes.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/attribute/Attributes.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/attribute/Attributes.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision

Added: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/carpet/RecalibrateOrRedefineSensibilityCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/carpet/RecalibrateOrRedefineSensibilityCommand.java (added)
+++ projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/carpet/RecalibrateOrRedefineSensibilityCommand.java Thu May 26 16:19:16 2011
@@ -1,0 +1,40 @@
+package it.cnr.isti.zigbee.pcl.library.impl.measurement_sensing.carpet;
+
+import it.cnr.isti.zigbee.pcl.library.api.measurement_sensing.CarpetMeasurement;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.LevelControl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+
+public class RecalibrateOrRedefineSensibilityCommand extends AbstractCommand {
+
+	private byte carpetId;
+	private byte calSense;
+	private byte dataSense;
+
+	public RecalibrateOrRedefineSensibilityCommand(byte carpet, byte cal, byte sense){
+		super(CarpetMeasurement.RECALIBRATE_OR_REDEFINE_SENSIBILITY_ID);
+		carpetId = carpet;
+		calSense = cal;
+		dataSense = sense;
+	}
+	
+	public RecalibrateOrRedefineSensibilityCommand(byte carpet, byte sense) {
+		this(carpet,(byte) 0,sense);
+	}
+	
+	public RecalibrateOrRedefineSensibilityCommand(byte carpet) {
+		this(carpet,(byte)0x80, (byte) 0);
+	}
+
+	public byte[] getPayload(){	
+		if( payload == null){
+			payload = new byte[3];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_byte(carpetId);
+			serializer.append_byte((byte) (calSense & 0x80 + dataSense & 0x7F));
+		}
+		return payload;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/carpet/RecalibrateOrRedefineSensibilityCommand.java
------------------------------------------------------------------------------
    svn-mine-type = text/plain

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/carpet/RecalibrateOrRedefineSensibilityCommand.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: projects/zb4osgi/sandbox/miguel.llorente/eclipse/zigbee.pcl.library/src/main/java/it/cnr/isti/zigbee/pcl/library/impl/measurement_sensing/carpet/RecalibrateOrRedefineSensibilityCommand.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date Revision




More information about the Commit mailing list