[zb4osgi-changeset] [scm] ZigBee 4 OSGi repository change: r433 - in /projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library: ./ .settings/ src/ src/main/ src/main/java/ src/main/java/it/ src/main/java/it/cnr/ src/main/java/it/cnr/isti/ src/main/java/it/cnr/isti/zigbee/ src/main/java/it/cnr/isti/zigbee/zcl/ src/main/java/it/cnr/isti/zigbee/zcl/library/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/identify/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/lighting/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/ src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/ias_zone/ src/main/resources/ src/test/ src/test/java/ src/test/java/it/ src/test/java/it/cnr/ src/test/java/it/cnr/isti/ src/test/java/it/cnr/isti/zigbee/ src/test/java/it/cnr/isti/zigbee/zcl/ src/test/java/it/cnr/isti/zigbee/zcl/cluster/ src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/ src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/core/ src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/global/ src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/global/reporting/ src/test/resources/

scm-notify at zb4osgi.aaloa.org scm-notify at zb4osgi.aaloa.org
Thu Jun 21 11:52:54 CEST 2012


Author: manlio.bacco
Date: Thu Jun 21 11:52:53 2012
New Revision: 433

Log:
MB

Added:
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.classpath   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.project   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/org.eclipse.jdt.core.prefs   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/org.eclipse.m2e.core.prefs   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/LICENSE
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/LICENSE.ZigBee
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/NOTICE
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/pom.xml   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/AnalogSubscription.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Attribute.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Command.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Message.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ReportListener.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Response.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Status.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Subscription.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZBDeserializer.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZBSerializer.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZCLCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZigBeeClusterException.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Alarms.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Basic.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Commissioning.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/DeviceTemperatureConfiguration.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Groups.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Identify.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/LevelControl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOff.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOffSwitch.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOffSwitchConfiguration.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/PowerConfiguration.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/RSSILocation.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Scenes.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Time.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/AlarmListener.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/AlarmResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/GetAlarmResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupOptions.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupParametersResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupPayload.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDeviceOptions.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDevicePayload.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDeviceResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestoreStartupParametersResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/SaveStartupParametersResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/AddGroupResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/GetGroupMembershipResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/RemoveGroupResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/ViewGroupResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/identify/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/identify/IdentifyQueryResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/AddScenePayload.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/AddSceneResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ExtensionFieldSetAddScene.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ExtensionFieldSetViewResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/GetSceneMembershipResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/RemoveAllSceneResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/RemoveSceneResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/StoreSceneResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ViewSceneResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeReport.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeReportingConfigurationRecord.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeStatusRecord.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ConfigureReportingResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/DefaultResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReadAttributesResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReadAttributesStatus.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReportAttributesResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributeRecord.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributesResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributesStatus.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/lighting/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/lighting/ColorControl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/IlluminanceMeasurement.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/OccupacySensing.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/RelativeHumidityMeasurement.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/TemperatureMeasurement.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/IASWD.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/IASZone.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ZoneEnrollResponse.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ZoneStatusChangeNotificationListener.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/ClusterImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/AbstractAttribute.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/AttributeDescriptor.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/Attributes.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AbstractCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AnalogSubscriptionImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AttributeImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultDeserializer.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultSerializer.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/EmptyPayloadCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionBase.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionClusterFilter.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLClusterBase.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLFrame.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLFrameControl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLHeader.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLLayer.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZigBeeType.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/AlarmsCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/BasicCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/DeviceTemperatureConfigurationCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/GroupsCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/IdentifyCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/LevelControlCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/OnOffCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/OnOffSwitchConfigurationCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/PowerConfigurationCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/ScenesCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/TimeCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/AlarmResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/AlarmsClusterFilter.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/GetAlarmResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/ResetAlarmCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/ResetStartupParametersResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/RestartDeviceResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/RestoreStartupParametersResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/SaveStartupParametersResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupIfIdentyfingCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/GetGroupMembershipCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/GetGroupMembershipResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/RemoveGroupCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/RemoveGroupResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ViewGroupCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ViewGroupResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/IdentifyCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/IdentifyQueryResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/MoveCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/MoveToLevelCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/StepCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddSceneCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddScenePayloadImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddSceneResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ExtensionFieldSetAddSceneImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ExtensionFieldSetViewResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/GetSceneMembershipCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/GetSceneMembershipResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RecallSceneCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveAllSceneResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveSceneCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveSceneResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/StoreSceneCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/StoreSceneResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ViewSceneCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ViewSceneResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/DefaultResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributeCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributeStatusImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributesResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeReportImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeReportingConfigurationRecordImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeStatusRecordImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ConfigureReportingCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ConfigureReportingResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ReportAttributesCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeCommand.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeRecordImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeStatusImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributesResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/IlluminanceMeasurementCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/OccupacySensingCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/RelativeHumidityMeasurementCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/TemperatureMeasurementCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/IASZoneCluster.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/ias_zone/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/ias_zone/ZoneEnrollResponseImpl.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/resources/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/core/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/core/DefaultDeserializerSerializerTest.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/global/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/global/reporting/
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/global/reporting/ConfigureReportingCommandTest.java   (with props)
    projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/resources/

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.classpath
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.classpath (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.classpath Thu Jun 21 11:52:53 2012
@@ -1,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.classpath
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.project
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.project (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.project Thu Jun 21 11:52:53 2012
@@ -1,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.aaloa.zb4osgi.zigbee.zcl.library</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+	</natures>
+</projectDescription>

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.project
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/org.eclipse.jdt.core.prefs
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/org.eclipse.jdt.core.prefs (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/org.eclipse.jdt.core.prefs Thu Jun 21 11:52:53 2012
@@ -1,0 +1,5 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/org.eclipse.jdt.core.prefs
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/org.eclipse.m2e.core.prefs
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/org.eclipse.m2e.core.prefs (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/org.eclipse.m2e.core.prefs Thu Jun 21 11:52:53 2012
@@ -1,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/.settings/org.eclipse.m2e.core.prefs
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/LICENSE
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/LICENSE (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/LICENSE Thu Jun 21 11:52:53 2012
@@ -1,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   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.

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/LICENSE.ZigBee
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/LICENSE.ZigBee (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/LICENSE.ZigBee Thu Jun 21 11:52:53 2012
@@ -1,0 +1,37 @@
+The ZigBee Specification is available to individuals, companies and institutions free of
+charge for all non-commercial purposes (including university research, technical
+evaluation, and development of non-commercial software, tools, or documentation). No
+part of this specification may be used in development of a product for sale without
+becoming a member of ZigBee Alliance.
+
+Copyright © ZigBee Alliance, Inc. (2007). All Rights Reserved. The information within this
+document is the property of the ZigBee Alliance and its use and disclosure are restricted.
+
+Elements of ZigBee Alliance specifications may be subject to third party intellectual
+property rights, including without limitation, patent, copyright or trademark rights (such a
+third party may or may not be a member of ZigBee). ZigBee is not responsible and shall not
+be held responsible in any manner for identifying or failing to identify any or all such third
+party intellectual property rights.
+
+This document and the information contained herein are provided on an ?AS IS? basis and
+ZigBee DISCLAIMS ALL WARRANTIES EXPRESS OR IMPLIED, INCLUDING BUT NOT
+LIMITED TO (A) ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN
+WILL NOT INFRINGE ANY RIGHTS OF THIRD PARTIES (INCLUDING WITHOUT
+LIMITATION ANY INTELLECTUAL PROPERTY RIGHTS INCLUDING PATENT,
+COPYRIGHT OR TRADEMARK RIGHTS) OR (B) ANY IMPLIED WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT.
+IN NO EVENT WILL ZIGBEE BE LIABLE FOR ANY LOSS OF
+PROFITS, LOSS OF BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF
+BUSINESS, OR FOR ANY OTHER DIRECT, INDIRECT, SPECIAL OR EXEMPLARY,
+INCIDENTIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND, IN
+CONTRACT OR IN TORT, IN CONNECTION WITH THIS DOCUMENT OR THE
+INFORMATION CONTAINED HEREIN, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH LOSS OR DAMAGE. All Company, brand and product names may be trademarks
+that are the sole property of their respective owners.
+
+The above notice and this paragraph must be included on all copies of this document that
+are made.
+
+ZigBee Alliance, Inc.
+2400 Camino Ramon, Suite 375
+San Ramon, CA 94583

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/NOTICE
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/NOTICE (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/NOTICE Thu Jun 21 11:52:53 2012
@@ -1,0 +1,39 @@
+ZigBee Common Cluster Library
+
+Copyright 2008-2010 CNR-ISTI, http://isti.cnr.it
+Institute of Information Science and Technologies  of the 
+Italian National Research Council.
+
+
+I. Included Software
+
+This does not include any software developed by 3rd parties
+
+
+II. Used Software
+
+This product uses software developed at
+The Codehaus (http://www.codehaus.org)
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+The OPS4J (http://www.ops4j.org)
+Licensed under the Apache License 2.0.
+
+This product uses software developed at
+The Apache Software Foundation (http://www.apache.org/).
+Licensed under the Apache License 2.0.
+
+
+III. Specification used
+
+Part of this software is based on the specification 
+provided by The ZigBee Alliance (http://www.zigbee.org) 
+Licensed under ZigBee specific license for non-member 
+of the ZigBee Allinace (see LICENSE.ZigBee file )
+
+
+IV. License Summary
+
+- Apache License 2.0
+- ZigBee Non-Member License

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/pom.xml
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/pom.xml (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/pom.xml Thu Jun 21 11:52:53 2012
@@ -1,0 +1,184 @@
+<?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>
+    <groupId>org.aaloa.zb4osgi</groupId>
+    <artifactId>org.aaloa.zb4osgi.pom</artifactId>
+    <version>9-SNAPSHOT</version>
+    <relativePath>../pom/pom.xml</relativePath>
+  </parent>
+
+  <groupId>org.aaloa.zb4osgi</groupId>
+  <artifactId>org.aaloa.zb4osgi.zigbee.zcl.library</artifactId>
+  <packaging>bundle</packaging>  
+  <version>0.8.0-SNAPSHOT</version>
+
+  <name>ZigBee Common Cluster Library</name>
+  <url>http://zb4osgi.aaloa.org/</url>
+  <description><![CDATA[
+A set of Java classes reppresenting the ZigBee Common Cluster library
+  ]]></description>
+  
+  <inceptionYear>2008</inceptionYear>
+  <organization>
+    <name>Institute of Information Science and Technologies of the Italian National Research Council</name>
+    <url>http://isti.cnr.it/</url>
+  </organization> 
+  
+  <licenses>
+    <license>
+      <name>The Apache Software License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  
+  <developers>
+    <developer>
+      <id>slenzi</id>
+      <name>Stefano "Kismet" Lenzi</name>
+      <email>stefano.lenzi at isti.cnr.it</email>
+      <organization>Institute of Information Science and Technologies of the Italian National Research Council</organization>
+      <organizationUrl>http://www.isti.cnr.it/</organizationUrl>
+      <timezone>+1</timezone>
+    </developer>
+    <developer>
+      <id>ffurfari</id>
+      <name>Francesco Furfari</name>
+      <email>francesco.furfari at isti.cnr.it</email>
+      <organization>Institute of Information Science and Technologies of the Italian National Research Council</organization>
+      <organizationUrl>http://www.isti.cnr.it/</organizationUrl>
+      <timezone>+1</timezone>
+    </developer>
+    <developer>
+      <id>alessandro</id>
+      <name>Alessandro Giari</name>
+      <email>alessandro.giari at isti.cnr.it</email>
+      <organization>Institute of Information Science and Technologies of the Italian National Research Council</organization>
+      <organizationUrl>http://www.isti.cnr.it/</organizationUrl>
+      <timezone>+1</timezone>
+    </developer>
+  </developers>  
+
+  <scm>
+    <connection>scm:svn:svn://svn.aaloa.org/projects/zb4osgi/trunk/zigbee.zcl.library</connection>
+    <developerConnection>scm:svn:svn://svn.aaloa.org/projects/zb4osgi/trunk/zigbee.zcl.library</developerConnection>
+    <url>http://zb4osgi.aaloa.org/projects/zb4osgi/repository/show/trunk/zigbee.zcl.library</url>
+  </scm>
+
+  <repositories>
+    <repository>
+      <id>nexus.aaloa.org</id>
+      <url>http://nexus.aaloa.org/content/repositories/releases/</url>
+      <snapshots><enabled>false</enabled></snapshots>
+    </repository>
+  </repositories>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.aaloa.zb4osgi</groupId>
+      <artifactId>org.aaloa.zb4osgi.zigbee.basedriver.api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.aaloa.zb4osgi</groupId>
+      <artifactId>org.aaloa.zb4osgi.zigbee.common</artifactId>
+    </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>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+    </dependency>    
+  </dependencies>
+
+  <build>
+    <plugins>   
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <configuration>
+          <groups>
+	  <group>
+	    <title>ZigBee Cluster Library API</title>
+	    <packages>it.cnr.isti.zigbee.zcl.library.api*</packages>
+	  </group>
+	  <group>
+	    <title>Default ZigBee Cluster Library implementation</title>
+	    <packages>it.cnr.isti.zigbee.zcl.library.impl*</packages>
+	  </group>
+	</groups>
+        </configuration>
+      </plugin>
+      <plugin>    
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <version>1.4.3</version>
+        <extensions>true</extensions>
+        <configuration>
+          <instructions>
+            <Bundle-Author><![CDATA[
+	    Stefano "Kismet" Lenzi <stefano.lenzi at isti.cnr.it>, 
+	    Francesco Furfari <francesco.furfari at isti.cnr.it>, 
+	    Alessandro Giari <alessandro.giari at isti.cnr.it>
+            ]]></Bundle-Author>
+            <Bundle-Name>${project.name}</Bundle-Name>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+            <Bundle-Activator />
+            <Private-Package>
+            </Private-Package>
+            <Import-Package>
+              it.cnr.isti.primitvetypes.util,
+              it.cnr.isti.zigbee.api,
+              org.slf4j; provider=paxlogging                
+            </Import-Package>
+            <Export-Package>
+              it.cnr.isti.zigbee.zcl.*;version=${pom.version}
+            </Export-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">2010-10-24</date>
+            <date implementation="java.lang.String">2029-12-31</date>
+          </dates>
+          <dateFormat>yyyy-MM-dd</dateFormat>
+        </configuration>
+      </plugin>
+    </plugins>
+  </reporting>
+</project>

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/AnalogSubscription.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/AnalogSubscription.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/AnalogSubscription.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,58 @@
+/*
+   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.zcl.library.api.core;
+
+/**
+ * 
+ * This interface extends the {@link Subscription} interface for the analog attribute.<br>
+ * In fact, for the analog attribute a report is sent only if the value changes by a value<br>
+ * that is greater than the <i>ReportableChagne</i> property.  
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface AnalogSubscription extends Subscription {
+	
+	/**
+	 * By default all the new {@link AnalogSubscription} will reported when the value change is greater<br>
+	 * equal of the following value
+	 */
+	public static final double DEFAULT_REPORTABLE_CHANGE_INTERVAL = 0.0d;
+	
+	/**
+	 * 
+	 * @return the current value of the <i>ReportableChagne</i> property
+	 */
+	public Object getReportableChange();
+
+	/**
+	 * Set the value of the <i>ReportableChagne</i> property to the <code>value</code>
+	 *  
+	 * @param value the new value for the <i>ReportableChagne</i>
+	 */
+	public void setReportableChange(Object value);
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/AnalogSubscription.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Attribute.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Attribute.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Attribute.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,86 @@
+/*
+   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.zcl.library.api.core;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+
+/**
+ * This class represent an Attribute as defined by the <i>ZigBee Cluster Library</i> specification
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Attribute {
+
+	/**
+	 * @return the <b>16-bit</b> identifier of the attribute as specified by the cluster
+	 */
+	public int getId();
+	
+	/**
+	 * @return the {@link String} associated to this attribute as specified by the cluster
+	 */
+	public String getName();
+	
+	/**
+	 * @return the java {@link Class} used to represent the attribute value
+	 */
+	@SuppressWarnings("unchecked")
+	public Class getType();
+	
+	/**
+	 * @return the {@link ZigBeeType} that describes the attribute type
+	 */
+	public ZigBeeType getZigBeeType();
+			
+	/**
+	 * @return the true if and only if the attribute can be written
+	 */
+	public boolean isWritable();
+	
+	/**
+	 * @return the true if and only if the attribute support the {@link Subscription}
+	 */
+	public boolean isReportable();	
+	
+	/**
+	 * @return the current value of the attribute 
+	 */
+	public Object getValue() throws ZigBeeClusterException;
+	
+	/**
+	 * If the attribute can be written ({@link #isWritable()} this method set its value.
+	 * 
+	 * @param o the value of to set the attribute to
+	 */
+	public void setValue(Object o) throws ZigBeeClusterException;
+	
+	/**
+	 * @return the {@link Subscription}
+	 */
+	public Subscription getSubscription();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Attribute.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Command.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Command.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Command.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,44 @@
+/*
+   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.zcl.library.api.core;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Command extends Message{
+	
+	/**
+	 * 
+	 * @return the an <code>int[]</code> containing the list of possible {@link Response}<br>
+	 * 		to this {@link Command}
+	 */
+	public byte[] getAllowedResponseId();
+
+
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Command.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Message.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Message.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Message.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,53 @@
+/*
+   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.zcl.library.api.core;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Message {
+	
+	
+	/**
+	 * @return the field <i>Command identifier</i> as defined in the <b>ZCL header</b><br>
+	 * 		of the <i>ZigBee Cluster Library</i> specification 
+	 */
+	public byte getHeaderCommandId();
+		
+	/**
+	 * 
+	 * @return <code>true</code> if and only if the {@link Message} <i>id</i> refers to<br>
+	 * 		a particular cluster definition.
+	 */
+	public boolean isClusterSpecific();	
+	public boolean isManufacturerExtension();
+	public boolean isClientServerDirection();
+	public byte[]  getManufacturerId();
+	public byte[] getPayload();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Message.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ReportListener.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ReportListener.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ReportListener.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,44 @@
+/*
+   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.zcl.library.api.core;
+
+import java.util.Dictionary;
+
+/**
+ *
+ * This class represent interface that must be implemented to be reported by driver,
+ * according to the {@link Subscription} where this object is added to. 
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface ReportListener {
+	
+	/**
+	 *  This is the method invoked by the driver when a report arrives
+	 */
+	public void receivedReport( Dictionary<Attribute, Object> reports);
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ReportListener.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Response.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Response.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Response.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,42 @@
+/*
+   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.zcl.library.api.core;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLHeader;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Response extends Message{
+
+	public boolean isDefaultResponseEnabled();
+	
+	public ZCLHeader getZCLHeader();
+	
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Response.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Status.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Status.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Status.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,109 @@
+/*
+   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.zcl.library.api.core;
+
+import java.util.Hashtable;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public enum Status {
+
+	SUCCESS(0x00,"Operation was successful."),
+	FAILURE(0x01,"Operation was not successful."),
+	RESERVED_01(0x02,0x7f,"Value is reserved"),
+	MALFORMED_COMMAND(0x80,
+			"The command appears to contain the wrong fields, as detected either by the presence of one or more invalid field entries or by there " + 
+			"being missing fields. Command not carried out. Implementer has discretion as to whether to return this error or INVALID_FIELD."
+			),
+	UNSUP_CLUSTER_COMMAND(0x81,"The specified general ZCL command is not supported on the device. Command not carried out."),
+	UNSUP_GENERAL_COMMAND(0x82,"The specified cluster command is not supported on the device."),
+
+	UNSUP_MANUF_CLUSTER_COMMAND(0x83,
+			"A manufacturer specific unicast, cluster specific command was received with an "+ 
+			"unknown manufacturer code, or the manufacturer code was recognized but the "+ 
+			"command is not supported."),			
+	UNSUP_MANUF_GENERAL_COMMAND(0x84,"A manufacturer specific unicast, ZCL specific command was " +
+			"received with an unknown manufacturer code, or the manufacturer code " +
+			"was recognized but the command is not supported."), 
+	INVALID_FIELD(0x85,"At least one field of the command contains an incorrect value, " +
+			"according to the specification the device is implemented to."), 
+	UNSUPPORTED_ATTRIBUTE(0x86,"The specified attribute does not exist on the device."),
+	INVALID_VALUE(0x87,"Out of range error, or set to a reserved value. Attribute keeps its old value. " +
+				"Note that an attribute value may be out of range if an attribute is related to another, " +
+				"e.g. with minimum and maximum attributes. See the individual attribute descriptions for " +
+				"specific details."), 
+	READ_ONLY(0x88,"Attempt to write a read only attribute."),
+	INSUFFICIENT_SPACE(0x89,"An operation (e.g. an attempt to create an entry in a table) failed due to an insufficient " + 
+			"amount of free space available."),
+	DUPLICATE_EXISTS(0x8a,"An attempt to create an entry in a table failed due to a duplicate entry already being present " + 
+			"in the table."),
+	NOT_FOUND(0x8b,"The requested information (e.g. table entry) could not be found."),
+	UNREPORTABLE_ATTRIBUTE(0x8c,"Periodic reports cannot be issued for this attribute."),
+	INVALID_DATA_TYPE(0x8d,"The data type given for an attribute is incorrect. Command not carried out."), 
+	RESERVED_02(0x8e,0xbf,"Value is reserved"),
+	HARDWARE_FAILURE(0xc0,"An operation was unsuccessful due to a hardware failure."),
+	SOFTWARE_FAILURE(0xc1,"An operation was unsuccessful due to a software failure."),
+	CALIBRATION_ERROR(0xc2,"An error occurred during calibration."),
+	RESERVED_03(0xc3,0xff,"Value is reserved");
+	
+	public final int id;
+	public final String description;
+	private final int range;
+	private static Status[] map;
+	
+	private Status(int  id, String description){
+		this.id = id;
+		this.description = description;
+		this.range = 1;
+		getMap()[id & 0xFF] = this; 
+	}
+	
+	private Status(int start, int end, String description){
+		this.id = start;
+		this.range = end-start;
+		this.description = description;
+		
+		for (int i = id; i<end; i++){
+			getMap()[i & 0xFF] = this; 
+		}
+	}
+		
+	public static Status getStatus(byte b){
+		return map[b & 0xFF];
+	}
+	
+	private static Status[] getMap(){
+		if( map == null ){
+			map = new Status[256];
+		}
+		return map;
+	}
+	
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Status.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Subscription.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Subscription.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Subscription.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,79 @@
+/*
+   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.zcl.library.api.core;
+
+/**
+ * 
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Subscription {
+	
+	/**
+	 * By default all the new subscription will reported up to one per minute
+	 */
+	public static final int DEFAULT_MAX_REPORTING_INTERVAL = 60;
+	
+	/**
+	 * By default all the new subscription will notify only when the value of the attribute change
+	 */
+	public static final int DEFAULT_MIN_REPORTING_INTERVAL = 0;
+		
+	public boolean addReportListner(ReportListener listner);	
+	public boolean removeReportListner(ReportListener listner);
+	
+	public int getMinimumReportingInterval();
+	public int setMinimumReportingInterval(int value);
+	
+	public int getMaximumReportingInterval();
+	public int setMaximumReportingInterval(int value);
+	
+	/**
+	 * Remove all the {@link ReportListener} from this subscription
+	 */
+	public void clear();
+	
+	/**
+	 * @return true if and only if a {@link ReportListener} is subscribed
+	 * @see #getReportListenersCount()
+	 * @since 0.2.0
+	 */
+	public boolean isActive();
+	
+	/**
+	 * @return the number of {@link ReportListener} subscribed
+	 * @see #isActive()
+	 * @since 0.2.0
+	 */
+	public int getReportListenersCount();	
+	
+	/**
+	 * @return update the subscription configuration for the device
+	 * @since 0.6.0
+	 */
+	public boolean updateConfiguration();	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/Subscription.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZBDeserializer.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZBDeserializer.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZBDeserializer.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,100 @@
+/*
+   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.zcl.library.api.core;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+
+/**
+ * 
+ * The interface for helping the deserialization ZCL frame on array of byte 
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface ZBDeserializer {
+	
+	/**
+	 * 
+	 * @param the {@link ZigBeeType} to use for parsing the data 
+	 * @return the parsed {@link Object} 
+	 * @since 0.4.0
+	 */
+	public Object readZigBeeType(ZigBeeType type);
+	
+	
+	/**
+	 * Parse a {@link String} from the stream considering the first byte as the length of the<br>
+	 * String itself as specified by the <b>ZigBee Cluster Library</b> (<i>Document 075123r01ZB</i> 
+	 * 
+	 * @return the parsed {@link String} 
+	 * @since 0.4.0
+	 */
+	public String readString();
+	
+	/**
+	 * Since version <b>0.4.0</b> the method must not used, use {@link #readZigBeeType(ZigBeeType)} instead.<br>
+	 * This method has a conceptual bug in respect to the parsing of 8, 16, or 24 bit long data, in fact<br>
+	 * the methods can only fail in such cases.
+	 * 
+	 * @param clazz the {@link Class} used to select the proper parsing
+	 * @return the parse {@link Object} from the stream depending the {@link Class} specified
+	 * @deprecated Use {@link #readZigBeeType(ZigBeeType)} instead 
+	 */
+	public Object readObject(Class clazz);
+	public Boolean readBoolean();
+	public Byte readByte();
+	public Short readShort();
+	public Integer readInteger();
+	public Long readLong();
+	
+	public boolean read_boolean();
+	public byte read_byte();
+	public short read_short();
+	public int read_int();
+	
+	/**
+	 * 
+	 * @return the 24bit parsed
+	 * @since 0.4.0
+	 */
+	public int read_int24bit();
+	public long read_long();
+	
+	/**
+	 * 
+	 * @return
+	 * @since 0.2.0
+	 */
+	public int getPosition();
+	
+	/**
+	 * 
+	 * @param n
+	 * @since 0.2.0
+	 */
+	public void skip(int n);
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZBDeserializer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZBSerializer.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZBSerializer.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZBSerializer.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,85 @@
+/*
+   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.zcl.library.api.core;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+
+/**
+ * 
+ * The interface for helping the serialization ZCL frame on array of byte 
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface ZBSerializer {
+	
+	/**
+	 * 
+	 * @param data {@link Object} containing the value to append
+	 * @param type {@link ZigBeeType} to select of data has to be appended
+	 * @since 0.4.0
+	 */
+	public void appendZigBeeType(Object data, ZigBeeType type);
+	
+	/**
+	 * Append a {@link String} to the stream by prefixing it with the length of the String itself <br>
+	 * as specified by the <b>ZigBee Cluster Library</b> (<i>Document 075123r01ZB</i> 
+	 * 
+	 * @param str the {@link String} to append 
+	 * @since 0.4.0
+	 * @throws IllegalArgumentException if the length of the {@link String} is greater then 255
+	 */	
+	public void appendString(String str);
+	
+	/**
+	 * Since version <b>0.4.0</b> the method must not used, use {@link #appendZigBeeType(Object, ZigBeeType)} instead.<br>
+	 * This method has a conceptual bug in respect to appending 8, 16, or 24 bit long data, in fact<br>
+	 * the methods can only fail in such cases.
+	 * 
+	 * @param data {@link Object} to serialize as Java type 
+	 * @deprecated Use {@link #appendZigBeeType(Object, ZigBeeType)} instead 
+	 */
+	public void appendObject(Object data);
+	public void appendBoolean(Boolean  data);
+	public void appendByte(Byte data);
+	public void appendShort(Short data);
+	public void appendInteger(Integer data);
+	public void appendLong(Long data);
+	
+	public void append_boolean(boolean data);
+	public void append_byte(byte data);
+	public void append_short(short data);
+	public void append_int(int data);
+	
+	/**
+	 * 
+	 * @param data int value to append
+	 * @since 0.4.0
+	 */
+	public void append_int24bit(int data);
+	public void append_long(long data);
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZBSerializer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZCLCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZCLCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZCLCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,128 @@
+/*
+   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.zcl.library.api.core;
+
+import it.cnr.isti.zigbee.api.ZigBeeBasedriverException;
+
+import java.io.IOException;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface ZCLCluster {
+
+	/**
+	 * 
+	 * @return <code>true</code> if and only if the <i>Default response</i> command is enabled
+	 */
+	public boolean isDefaultResponseEnabled();
+
+	/**
+	 * This method enable the <i>Default response</i> command to be sent by the device that<br>
+	 * receives the {@link Command}
+	 */
+	public void enableDefaultResponse();
+
+	/**
+	 * This method return the actual <i>ClusterId</i>. Please remember that the final and official <i>ClusterId</i><br>
+	 * is defined by the <i>Profile</i> even if the Cluster is defined by a <i>Cluster Library</i>.
+	 * 
+	 * @return the <i>ClusterId</i>
+	 */
+	public short getId();
+
+	/**
+	 * 
+	 * @return This method returns -1 if and only if no <b>Manufacturer</b> specific extension<br>
+	 * 			are implement, otherwise it returns the <i>ManufacturerId</i> 	
+	 * 
+	 */
+	public int getManufacturerId();
+
+	/**
+	 * 
+	 * @return This method return the {@link String} identifying the human readable name of the cluster.<br>
+	 * 		The name is assigned by the document defining the Cluster, either the <i>Cluster Library</i> or<br>
+	 * 		or the <i>Profile</i> 
+	 */
+	public String getName();
+
+
+
+	/**
+	 * 
+	 * This method returns an {@link Attribute} array containing the {@link Attribute} that are actually<br> 
+	 * implemented on the cluster instance. Hence this method should return even the {@link Attribute}<br>
+	 * defined by the <b>Manufacturer</b>.
+	 * 
+	 * @return The {@link Attribute} arrays 
+	 */
+	Attribute[] getAvailableAttributes();
+
+	/**
+	 * 
+	 * This method returns an {@link Attribute} array containing the {@link Attribute} defined by<br> 
+	 * the specification of the cluster. Hence, this method returns all {@link Attribute} defined<br>
+	 * either as <b>Mandatory</b> or as <b>Optional</b>, but does not return the {@link Attribute}<br>
+	 * defined by the <b>Manufacturer</b>.
+	 * 
+	 * @return The {@link Attribute} arrays 
+	 */
+	Attribute[] getStandardAttributes();
+
+
+	/**
+	 * This method is an alias for {@link #invoke(Command, false)} 
+	 * @throws IOException 
+	 * @throws ZigBeeClusterException 
+	 * 
+	 * @see #invoke(Command, boolean)
+	 */
+	public Response invoke(Command cmd) throws  ZigBeeClusterException;
+
+
+	/**
+	 * This method invokes the {@link Command} on this Cluster and <b>wait</b> for its {@link Response}
+	 * 
+	 * @param cmd the {@link Command} to invoke
+	 * @param if suppressResponse true <i>Default response</i> are disabled
+	 * @return {@link Response} the response to the invoked {@link Command}. This method returns <code>null</code> 
+	 * @throws IOException 
+	 * @throws ZigBeeBasedriverException 
+	 */
+	public Response invoke(Command cmd, boolean suppressResponse) throws ZigBeeClusterException; //TODO Remove
+
+	/**
+	 * 
+	 * @param id the id of attribute to get
+	 * @return {@link Attribute} identified by the given id
+	 * @since 0.2.0
+	 */
+	public Attribute getAttribute(int id);
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZCLCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZigBeeClusterException.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZigBeeClusterException.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZigBeeClusterException.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,55 @@
+/*
+   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.zcl.library.api.core;
+//TODO discuss about the Exception Hierarchy from the basedriver to the refinement drivers
+
+import it.cnr.isti.zigbee.api.ZigBeeException;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ZigBeeClusterException extends ZigBeeException {
+
+	private Response response;
+
+	public ZigBeeClusterException(String msg) {
+		super(msg);
+	}
+
+	public ZigBeeClusterException(Throwable ex) {
+		super(ex);
+	}
+
+	public ZigBeeClusterException(String msg, Response response) {
+		super(msg);
+		this.response = response;
+	}
+	
+	public Response getResponse(){
+		return response;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/core/ZigBeeClusterException.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Alarms.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Alarms.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Alarms.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,62 @@
+/*
+   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.zcl.library.api.general;
+
+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;
+import it.cnr.isti.zigbee.zcl.library.api.general.alarms.AlarmListener;
+
+/**
+ * This class represent the <b>Alarm</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Alarms extends ZCLCluster {
+
+	static final short ID = 0x0009;
+	static final String NAME = "Alarms";
+	static final String DESCRIPTION = "Attributes and commands for sending notifications and configuring alarm functionaly";
+
+	static final byte RESET_ALARM_ID = 0x00;
+	static final byte RESET_ALL_ALARMS_ID = 0x01;
+	static final byte GET_ALARM_ID = 0x03;
+	static final byte RESET_ALARM_LOG_ID = 0x03;
+
+	public Attribute getAttributeAlarmCount();
+
+	public Response resetAlarm(int clusterId, int attributeId) throws ZigBeeClusterException;
+	public Response resetAllAlarms() throws ZigBeeClusterException;
+	public Response getAlarm() throws ZigBeeClusterException;
+	public Response resetAlarmLog() throws ZigBeeClusterException;
+
+	public boolean addAlarmListerner(AlarmListener listener);
+	public boolean removeAlarmListerner(AlarmListener listener);
+}
+

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Alarms.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Basic.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Basic.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Basic.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,66 @@
+/*
+   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.zcl.library.api.general;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.global.DefaultResponse;
+
+/**
+ * This class represent the <b>Basic</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a>
+ * @version  $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Basic extends ZCLCluster {
+	
+	static final short ID = 0x0000;
+	static final String NAME = "Basic";
+	static final String DESCRIPTION = "Attributes and commands for determining basic information about a device, setting user device information such as location, and enabling a device.";
+
+	static final byte RESET_TO_FACTORY_DEFAULT_ID = 0x00;
+	
+	public Attribute getAttributeZCLVersion();
+	public Attribute getAttributeApplicationVersion();
+	public Attribute getAttributeStackVersion();
+	public Attribute getAttributeHWVersion();
+	public Attribute getAttributeManufacturerName();
+	public Attribute getAttributeModelIdentifier();
+	public Attribute getAttributeDateCode();
+	public Attribute getPowerSource();
+	
+	public Attribute getAttributeLocationDescription();
+	public Attribute getAttributePhysicalEnviroment();
+	public Attribute getAttributeDeviceEnabled();
+	public Attribute getAttributeAlarmMask();
+	
+		
+	
+	public DefaultResponse resetToFactoryDefault() throws ZigBeeClusterException;
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Basic.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Commissioning.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Commissioning.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Commissioning.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,91 @@
+/*
+   Copyright 2008-2012 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.zcl.library.api.general;
+
+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;
+import it.cnr.isti.zigbee.zcl.library.api.general.commissioning.ResetStartupPayload;
+import it.cnr.isti.zigbee.zcl.library.api.general.commissioning.RestartDevicePayload;
+
+/**
+ * This class represent the <b>Commissioning</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075366r01
+ * 
+ * @author <a href="mailto:manlio.bacco at isti.cnr.it">Manlio Bacco</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * version  $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * since 0.1.0
+ *
+ */
+
+public interface Commissioning extends ZCLCluster {
+
+	static final short ID = 0x0015;
+	static final String NAME = "Commissioning";
+	static final String DESCRIPTION = "Attributes and commands pertaining to the commissioning and management of Zigbee devices operating in a network.";
+
+	static final byte RESTART_DEVICE_ID = 0x00;
+	static final byte SAVE_STARTUP_PARAMETERS_ID = 0x01;
+	static final byte RESTORE_STARTUP_PARAMETERS_ID = 0x02;
+	static final byte RESET_STARTUP_PARAMETERS_ID = 0x03;
+
+	// Startup Parameters
+	public Attribute getAttributeShortAddress();
+	public Attribute getAttributeExtendedPanID();
+	public Attribute getAttributePanID();
+	public Attribute getAttributeChannelMask();
+	public Attribute getAttributeProtocolVersion();
+	public Attribute getAttributeStackProfile();
+	public Attribute getAttributeStartupControl();
+	public Attribute getAttributeTrustCenterAddress();
+	public Attribute getAttributeTrustCenterMasterKey();
+	public Attribute getAttributeNetworkKey();
+	public Attribute getAttributeUseInsecureJoin();
+	public Attribute getAttributePreconfiguredLinkKey();
+	public Attribute getAttributeNetworkKeySeqNum();
+	public Attribute getAttributeNetworkKeyType();
+	public Attribute getAttributeNetworkManagerAddress();
+
+	// Join Parameters
+	public Attribute getAttributeScanAttempts();
+	public Attribute getAttributeTimeBetweenScans();
+	public Attribute getAttributeRejoinInterval();
+	public Attribute getAttributeMaxRejoinInterval();
+
+	// End Device Parameters
+	public Attribute getAttributeIndirectPollRate();
+	public Attribute getAttributeParentRetryThreshold();
+
+	// Concentrator Parameters
+	public Attribute getAttributeConcentratorFlag();
+	public Attribute getAttributeConcentratorRadius();
+	public Attribute getAttributeConcentratorDiscoveryTime();
+
+	// Commands
+	public Response restartDevice(RestartDevicePayload payload) throws ZigBeeClusterException;
+	public Response saveStartupParameters(int index) throws ZigBeeClusterException;
+	public Response restoreStartupParameters(int index) throws ZigBeeClusterException;
+	public Response resetStartupParameters(ResetStartupPayload payload) throws ZigBeeClusterException;
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Commissioning.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/DeviceTemperatureConfiguration.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/DeviceTemperatureConfiguration.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/DeviceTemperatureConfiguration.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,57 @@
+/*
+   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.zcl.library.api.general;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * This class represent the <b>Device Temperature Configuration</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a>
+ * @version  $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface DeviceTemperatureConfiguration extends ZCLCluster {
+	
+	static final short ID = 0x0002;
+	static final String NAME = "DeviceTemperatureConfiguration";
+	static final String DESCRIPTION = "Attributes for determining information about a device's internal temperature, and for configuring under/over temperature alarms.";
+
+	
+	public Attribute getAttributeCurrentTemperature();
+	public Attribute getAttributeMinTempExperienced();
+	public Attribute getAttributeMaxTempExperienced();
+	public Attribute getAttributeOverTempTotalDwell();
+	
+	public Attribute getAttributeDeviceTempAlarmMask();
+	public Attribute getAttributeLowTempThreshold();
+	public Attribute getAttributeHighTempThreshold();
+	public Attribute getAttributeLowTempDwellTripPoint();
+	public Attribute getAttributeHighTempDwellTripPoint();
+		
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/DeviceTemperatureConfiguration.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Groups.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Groups.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Groups.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,62 @@
+/*
+   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.zcl.library.api.general;
+
+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>Groups</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a>
+ * @version  $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Groups extends ZCLCluster {
+	
+	static final short ID = 0x0004;
+	static final String NAME = "Groups";
+	static final String DESCRIPTION = "Attributes and commands for group configuration and manipulation";
+
+	static final byte ADD_GROUP_ID = 0x00;
+	static final byte VIEW_GROUP_ID = 0x01;
+	static final byte GET_GROUP_MEMBERSHIP_ID = 0x02;
+	static final byte REMOVE_GROUP_ID = 0x03;
+	static final byte REMOVE_ALL_GROUP_ID = 0x04;
+	static final byte ADD_GROUP_IF_IDENTIFYING_ID = 0x05;
+	
+	public Attribute getAttributeNameSupport();
+	
+	public Response addGroup(int groupId) throws ZigBeeClusterException;
+	public Response viewGroup(int groupId) throws ZigBeeClusterException;
+	public Response getGroupMembership(int[] groupList) throws ZigBeeClusterException;
+	public Response removeGroup(int groupId) throws ZigBeeClusterException;
+	public Response removeAllGroup() throws ZigBeeClusterException;
+	public Response addGroupIfIdentifying(int groupId, String name) throws ZigBeeClusterException;
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Groups.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Identify.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Identify.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Identify.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,55 @@
+/*
+   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.zcl.library.api.general;
+
+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>Identify</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a>
+ * @version  $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Identify extends ZCLCluster {
+
+	static final short ID = 0x0003;
+	static final String NAME = "Identify";
+	static final String DESCRIPTION = "Attributes and commands for putting a device into Identification mode.";
+
+	static final byte IDENTIFY_ID = 0x00;
+	static final byte IDENTIFY_QUERY_ID = 0x01;
+
+
+	public Attribute getAttributeIdentifyTime();
+
+	public Response identify(int time) throws ZigBeeClusterException;
+	public Response identifyQuery() throws ZigBeeClusterException;	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Identify.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/LevelControl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/LevelControl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/LevelControl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,87 @@
+/*
+   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.zcl.library.api.general;
+
+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>Level Control</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a>
+ * @version  $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface LevelControl extends ZCLCluster {
+	
+	static final short ID = 0x0008;
+	static final String NAME = "LevelControl";
+	static final String DESCRIPTION = "Attributes and commands for controlling devices that";
+
+	static final byte MOVE_TO_LEVEL_ID = 0x00;
+	static final byte MOVE_ID = 0x01;
+	static final byte STEP_ID = 0x02;
+	static final byte STOP_ID = 0x03;
+	
+	static final byte MOVE_TO_LEVEL_WITH_ONOFF_ID = 0x04;
+	static final byte MOVE_WITH_ONOFF_ID = 0x05;
+	static final byte STEP_WITH_ONOFF_ID = 0x06;
+	static final byte STOP_WITH_ONOFF_ID  = 0x07;
+	
+	public Attribute getAttributeCurrentLevel();
+	public Attribute getAttributeRemainingTime();
+	public Attribute getAttributeOnOffTransactionTime();
+	public Attribute getAttributeOnLevel();
+	
+	public Response moveToLevel(short level, int time) throws ZigBeeClusterException;
+	public Response move(byte mode, short rate) throws ZigBeeClusterException;
+	public Response step(byte mode, short step, int time) throws ZigBeeClusterException;
+	public Response stop() throws ZigBeeClusterException;
+	
+	/**
+	 * @since 0.6.0
+	 */
+	public Response moveToLevelWithOnOff(short level, int time) throws ZigBeeClusterException;
+
+	/**
+	 * @since 0.6.0
+	 */
+	public Response moveWithOnOff(byte mode, short rate) throws ZigBeeClusterException;
+	
+	/**
+	 * @since 0.6.0
+	 */
+	public Response stepWithOnOff(byte mode, short step, int time) throws ZigBeeClusterException;
+	
+	/**
+	 * @since 0.6.0
+	 */
+	public Response stopWithOnOff() throws ZigBeeClusterException;
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/LevelControl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOff.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOff.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOff.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,56 @@
+/*
+   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.zcl.library.api.general;
+
+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>On/off</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface OnOff extends ZCLCluster {
+	
+	static final short ID = 0x0006;
+	static final String NAME = "OnOff";
+	static final String DESCRIPTION = "Attributes and commands for switching devices between 'On' and  'Off' states.";
+
+	static final byte OFF_ID = 0x00;
+	static final byte ON_ID = 0x01;
+	static final byte TOGGLE_ID = 0x02;
+		
+	public Attribute getAttributeOnOff();
+	
+	public Response on() throws ZigBeeClusterException;
+	public Response off() throws ZigBeeClusterException;
+	public Response toggle() throws ZigBeeClusterException;
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOff.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOffSwitch.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOffSwitch.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOffSwitch.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,65 @@
+/*
+   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.zcl.library.api.general;
+
+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;
+
+/**
+ * This class represent the <b>On/off</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface OnOffSwitch extends ZCLCluster {
+	
+	public Attribute getAttributeOnOff();
+	
+	public Response on(boolean disableDefatultResponse);
+	public Response off(boolean disableDefatultResponse);
+	public Response toggle(boolean disableDefatultResponse);
+
+	
+	/**
+	 * Alias for the method {@link #on(true)}
+	 * @see #on(boolean)
+	 */
+	public void on();
+	
+	/**
+	 * Alias for the method {@link #off(true)}
+	 * @see #off(boolean)
+	 */
+	public void off();
+	
+	/**
+	 * Alias for the method {@link #toggle(true)}
+	 * @see #toggle(boolean)
+	 */
+	public void toggle();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOffSwitch.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOffSwitchConfiguration.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOffSwitchConfiguration.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOffSwitchConfiguration.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,48 @@
+/*
+   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.zcl.library.api.general;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * This class represent the <b>On Off Switch Configuration</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a>
+ * @version  $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface OnOffSwitchConfiguration extends ZCLCluster{
+	
+	static final short ID = 0x0007;
+	static final String NAME = "OnOffSwitchConfiguratio";
+	static final String DESCRIPTION = "Attributes and commands for configuring OnOff switching devices.";
+	
+	public Attribute getAttributeSwitchType();
+	public Attribute getAttributeSwitchActions();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/OnOffSwitchConfiguration.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/PowerConfiguration.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/PowerConfiguration.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/PowerConfiguration.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,64 @@
+/*
+   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.zcl.library.api.general;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * This class represent the <b>Power Configuration</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a> *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface PowerConfiguration extends ZCLCluster {
+	
+	static final short ID = 0x0001;
+	static final String NAME = "PowerConfiguration";
+	static final String DESCRIPTION = "Attributes for determining more detailed information about a device's power source, and for configuring under/over voltage alarms.";
+
+	
+	public Attribute getAttributeMainsVoltage();
+	public Attribute getAttributeMainsFrequency();
+	
+	public Attribute getAttributeMainsAlarmMask();
+	public Attribute getAttributeMainsVoltageMinThreshold();
+	public Attribute getAttributeMainsVoltageMaxThreshold();
+	public Attribute getAttributeMainsDwellTripPoint();
+	
+	public Attribute getAttributeBatteryVoltage();
+	
+	public Attribute getAttributeBatteryManufacturer();
+	public Attribute getAttributeBatterySize();
+	public Attribute getAttributeBatteryAHrRating();
+	public Attribute getAttributeBatteryQuantity();
+	public Attribute getAttributeBatteryRatedVoltage();
+	public Attribute getAttributeBatteryAlarmMask();
+	public Attribute getAttributeBatteryVoltageMinThreshold();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/PowerConfiguration.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/RSSILocation.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/RSSILocation.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/RSSILocation.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,67 @@
+/*
+   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.zcl.library.api.general;
+
+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;
+
+/**
+ * This class represent the <b>On/off</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * <b>NODE: THIS CLASS IS ONLY A PLACEHOLDER THE INTERFACE IS WRONG</b>
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface RSSILocation extends ZCLCluster {
+	
+	//TODO Generate this class
+	
+	public Attribute getAttributeOnOff();
+	
+	public Response on(boolean disableDefatultResponse);
+	public Response off(boolean disableDefatultResponse);
+	public Response toggle(boolean disableDefatultResponse);
+
+	
+	/**
+	 * Alias for the method {@link #on(true)}
+	 * @see #on(boolean)
+	 */
+	public void on();
+	
+	/**
+	 * Alias for the method {@link #off(true)}
+	 * @see #off(boolean)
+	 */
+	public void off();
+	
+	/**
+	 * Alias for the method {@link #toggle(true)}
+	 * @see #toggle(boolean)
+	 */
+	public void toggle();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/RSSILocation.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Scenes.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Scenes.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Scenes.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,71 @@
+/*
+   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.zcl.library.api.general;
+
+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;
+import it.cnr.isti.zigbee.zcl.library.api.general.scenes.AddScenePayload;
+
+/**
+ * This class represent the <b>Scenes</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a> *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Scenes extends ZCLCluster {
+	
+	static final short ID = 0x0005;
+	static final String NAME = "Scenes";
+	static final String DESCRIPTION = "Attributes and commands for scene configuration and manipulation.";
+
+	static final byte ADD_SCENE = 0x00;
+	static final byte VIEW_SCENE = 0x01;
+	static final byte REMOVE_SCENE = 0x02;
+	static final byte REMOVE_ALL_SCENES = 0x03;
+	static final byte STORE_SCENE = 0x04;
+	static final byte RECALL_SCENE = 0x05;
+	static final byte GET_SCENE_MEMBERSHIP = 0x06;
+	
+	public Attribute getAttributeSceneCount();
+	public Attribute getAttributeCurrentScene();
+	public Attribute getAttributeCurrentGroup();
+	public Attribute getAttributeSceneValid();
+	public Attribute getAttributeNameSupport();
+	public Attribute getAttributeLastConfiguredBy();
+	
+	public Response addScene(AddScenePayload scenepayload) throws ZigBeeClusterException; //TODO Create proper class
+	public Response viewScene(int groupId, short sceneId) throws ZigBeeClusterException;
+	public Response removeScene(int groupId, short sceneId) throws ZigBeeClusterException;
+	public Response removeAllScene() throws ZigBeeClusterException;
+	public Response storeScene(int groupId, short sceneId) throws ZigBeeClusterException;
+	public void recallScene(int groupId, short sceneId) throws ZigBeeClusterException;
+	public Response getSceneMembership(int groupId) throws ZigBeeClusterException;
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Scenes.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Time.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Time.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Time.java Thu Jun 21 11:52:53 2012
@@ -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.zcl.library.api.general;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * This class represent the <b>Time</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a> *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface Time extends ZCLCluster {
+	
+	static final short ID = 0x000A;
+	static final String NAME = "Time";
+	static final String DESCRIPTION = "Attributes and commands that provide a basic interface to a real-time clock.";
+
+	
+	public Attribute getAttributeTime();
+	public Attribute getAttributeTimeStatus();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/Time.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/AlarmListener.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/AlarmListener.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/AlarmListener.java Thu Jun 21 11:52:53 2012
@@ -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.zcl.library.api.general.alarms;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface AlarmListener {
+	
+	public void alarm(int code, int clusterId);	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/AlarmListener.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/AlarmResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/AlarmResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/AlarmResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,53 @@
+/*
+   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.zcl.library.api.general.alarms;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+
+/**
+ * 
+ * This class represent the <i>Get Alarm Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.4.0
+ *
+ */
+public interface AlarmResponse extends Response{
+
+	public static final byte ID = 0x00;
+
+	/**
+	 * 
+	 * @return the int representing the <i>Alarm Code</i> field.
+	 */
+	public int getAllarmCode();
+
+	/**
+	 * 
+	 * @return the int representing the <i>Cluster ID</i> field.
+	 */
+	public int getClusterID();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/AlarmResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/GetAlarmResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/GetAlarmResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/GetAlarmResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,68 @@
+/*
+   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.zcl.library.api.general.alarms;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+/**
+ * 
+ * This class represent the <i>Alarm Command</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.4.0
+ *
+ */
+public interface GetAlarmResponse extends Response{
+    
+	public static final byte ID = 0x01;
+	
+	/**
+	 * 
+	 * @return the {@link Status} representing the <i>Status</i> field
+	 */
+	public Status getStatus();
+
+	/**
+	 * 
+	 * @return the int representing the <i>Alarm Code</i> field. The value is valid only if <code>getStatus() = Status.SUCCESS</code>
+	 */
+	public int getAllarmCode();
+
+	/**
+	 * 
+	 * @return the int representing the <i>Cluster ID</i> field. The value is valid only if <code>getStatus() = Status.SUCCESS</code>
+	 */
+	public int getClusterID();
+
+	/**
+	 * 
+	 * @return the long representing the <i>Time stamp</i> field. The value is valid only if <code>getStatus() = Status.SUCCESS</code>
+	 */
+	public long getTimestamp();
+
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/alarms/GetAlarmResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupOptions.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupOptions.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupOptions.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,9 @@
+package it.cnr.isti.zigbee.zcl.library.api.general.commissioning;
+
+public interface ResetStartupOptions {
+
+	byte getResetCurrent();
+	byte getResetAll();
+	byte getEraseIndex();
+	// byte[] getReserved();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupOptions.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupParametersResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupParametersResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupParametersResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,11 @@
+package it.cnr.isti.zigbee.zcl.library.api.general.commissioning;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+public interface ResetStartupParametersResponse extends Response {
+
+	public static final byte ID = 0x03;
+
+	public Status getStatus();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupParametersResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupPayload.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupPayload.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupPayload.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,7 @@
+package it.cnr.isti.zigbee.zcl.library.api.general.commissioning;
+
+public interface ResetStartupPayload {
+
+	ResetStartupOptions getOptions();
+	int getIndex();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/ResetStartupPayload.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDeviceOptions.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDeviceOptions.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDeviceOptions.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,19 @@
+package it.cnr.isti.zigbee.zcl.library.api.general.commissioning;
+
+public interface RestartDeviceOptions {
+
+	/* startup mode
+	 * 0b000: restart installing and using current startup parameters set
+	 * 0b001: restart using and not replacing current set of stack attributes	 * 
+	 */
+	byte[] getStartupMode();
+	
+	/* immediate
+	 * 1: 	restart either immediately on receipt of the RestartDeviceRequest frame if delay 0
+	 * 		or immediately after prescribed delay and jitter has transpired if not
+	 * 0: 	restart until after prescribed delay and jitter (if any) has transpired
+	 * 		but can also wait for a "convenient" moment (i.e. all pending frames have been transmitted)
+	 */
+	byte getImmediate(); 
+	// byte[] getReserved();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDeviceOptions.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDevicePayload.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDevicePayload.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDevicePayload.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,9 @@
+package it.cnr.isti.zigbee.zcl.library.api.general.commissioning;
+
+public interface RestartDevicePayload {
+
+	RestartDeviceOptions getOptions();
+	int getDelay();
+	int getJitter();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDevicePayload.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDeviceResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDeviceResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDeviceResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,11 @@
+package it.cnr.isti.zigbee.zcl.library.api.general.commissioning;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+public interface RestartDeviceResponse extends Response {
+
+	public static final byte ID = 0x00;
+
+	public Status getStatus();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestartDeviceResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestoreStartupParametersResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestoreStartupParametersResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestoreStartupParametersResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,11 @@
+package it.cnr.isti.zigbee.zcl.library.api.general.commissioning;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+public interface RestoreStartupParametersResponse extends Response {
+
+	public static final byte ID = 0x02;
+
+	public Status getStatus();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/RestoreStartupParametersResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/SaveStartupParametersResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/SaveStartupParametersResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/SaveStartupParametersResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,11 @@
+package it.cnr.isti.zigbee.zcl.library.api.general.commissioning;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+public interface SaveStartupParametersResponse extends Response {
+
+	public static final byte ID = 0x01;
+
+	public Status getStatus();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/commissioning/SaveStartupParametersResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/AddGroupResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/AddGroupResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/AddGroupResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,56 @@
+/*
+   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.zcl.library.api.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+/**
+ * 
+ * This class represent the <i>Add Group Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface AddGroupResponse extends Response{
+	
+	public static final byte ID = 0x00;
+	
+	/**
+	 * 
+	 * @return {@link Status} representing the <i>Status</i> field 
+	 */
+	public Status getStatus();
+	
+	/**
+	 * 
+	 * @return the int representing the <i>Group ID</i> field
+	 */
+	public int getGroupId();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/AddGroupResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/GetGroupMembershipResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/GetGroupMembershipResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/GetGroupMembershipResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,55 @@
+/*
+   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.zcl.library.api.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+
+/**
+ * 
+ * This class represent the <i>Add Group Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface GetGroupMembershipResponse extends Response{
+	
+	public static final byte ID = 0x02;
+	
+	/**
+	 * 
+	 * @return a <code>short</code> representing the <i>Capacity</i> field
+	 */
+	public short getCapacity();
+	
+	/**
+	 * 
+	 * @return <code>int[]</code> representing the <i>Group list</i> and <i>Group count</i> field
+	 */
+	public int[] getGroupList();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/GetGroupMembershipResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/RemoveGroupResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/RemoveGroupResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/RemoveGroupResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,57 @@
+/*
+   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.zcl.library.api.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+/**
+ * 
+ * This class represent the <i>Remove Group Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface RemoveGroupResponse extends Response{
+	
+	public static final byte ID = 0x03;
+	
+	/**
+	 * 
+	 * @return {@link Status} representing the <i>Status</i> field 
+	 */
+	public Status getStatus();
+	
+	/**
+	 * 
+	 * @return the int representing the <i>Group ID</i> field
+	 */
+	public int getGroupId();
+
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/RemoveGroupResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/ViewGroupResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/ViewGroupResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/ViewGroupResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,62 @@
+/*
+   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.zcl.library.api.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+/**
+ * 
+ * This class represent the <i>View Group Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface ViewGroupResponse extends Response{
+	
+	public static final byte ID = 0x01;
+	
+	/**
+	 * 
+	 * @return {@link Status} representing the <i>Status</i> field 
+	 */
+	public Status getStatus();
+	
+	/**
+	 * 
+	 * @return the int representing the <i>Group ID</i> field
+	 */
+	public int getGroupId();
+
+	/**
+	 * 
+	 * @return the {@link String} representing the <i>Group Name</i> field
+	 */
+	public String getGroupName();	
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/groups/ViewGroupResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/identify/IdentifyQueryResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/identify/IdentifyQueryResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/identify/IdentifyQueryResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,47 @@
+/*
+   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.zcl.library.api.general.identify;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+
+/**
+ * 
+ * This class represent the <i>Identify Query Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface IdentifyQueryResponse extends Response{
+	public static final byte ID = 0x00;
+	
+	/**
+	 * 
+	 * @return the int representing the <i>Timeout</i> field
+	 */
+	public int getTimeout();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/identify/IdentifyQueryResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/AddScenePayload.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/AddScenePayload.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/AddScenePayload.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,39 @@
+/*
+   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.zcl.library.api.general.scenes;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface AddScenePayload {
+	
+	int getGroupId();
+	short getSceneId();
+	int getTransitionTime();
+	String getSceneName();
+	ExtensionFieldSetAddScene[] getExtensionFieldSet();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/AddScenePayload.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/AddSceneResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/AddSceneResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/AddSceneResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,63 @@
+/*
+   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.zcl.library.api.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+/**
+ * 
+ * This class represent the <i>Add Scene Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface AddSceneResponse extends Response{
+	
+	public static final byte ID = 0x00;
+	
+	/**
+	 * 
+	 * @return {@link Status} representing the <i>Status</i> field 
+	 */
+	public Status getStatus();
+	
+	/**
+	 * 
+	 * @return the int representing the <i>Group ID</i> field
+	 */
+	public int getGroupId();
+
+	
+	/**
+	 * 
+	 * @return the short representing the <i>Scene ID</i> field
+	 */
+	public short getSceneId();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/AddSceneResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ExtensionFieldSetAddScene.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ExtensionFieldSetAddScene.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ExtensionFieldSetAddScene.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,54 @@
+/*
+   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.zcl.library.api.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+
+/**
+ * 
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface ExtensionFieldSetAddScene {
+	//TODO This signatures of this interface has to be confirmed by practical experiment
+	
+	public int getClusterId();
+	public Attribute[] getAttributes(int clusterId);
+	public Object getValue(Attribute attribute);
+	public int getLength(); 
+	
+	
+	
+	/*
+	public int[] getClusters();
+	public int[] getAttributes(int clusterId);
+	public Object getValue(int clusterId, int attributeId);
+	*/
+	
+	
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ExtensionFieldSetAddScene.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ExtensionFieldSetViewResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ExtensionFieldSetViewResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ExtensionFieldSetViewResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,41 @@
+/*
+   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.zcl.library.api.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface ExtensionFieldSetViewResponse {
+	
+	public int getClusterId();
+	public int[] getAttributes(int clusterId);
+	public Object getValue(int attribute);
+	public boolean endSet();
+	
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ExtensionFieldSetViewResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/GetSceneMembershipResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/GetSceneMembershipResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/GetSceneMembershipResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,69 @@
+/*
+   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.zcl.library.api.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+/**
+ * 
+ * This class represent the <i>Get Scene Membership Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface GetSceneMembershipResponse extends Response{
+	
+	public static final byte ID = 0x06;
+	
+	/**
+	 * 
+	 * @return {@link Status} representing the <i>Status</i> field 
+	 */
+	public Status getStatus();
+	
+	/**
+	 * 
+	 * @return the short representing the <i>Capacity</i> field
+	 */
+	public short getCapacity();
+
+	/**
+	 * 
+	 * @return the int representing the <i>Group ID</i> field
+	 */
+	public int getGroupId();
+
+	
+	/**
+	 * 
+	 * @return the short representing the <i>Scene Count</i> and <i>Scene List</i> field
+	 */
+	public short[] getSceneList();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/GetSceneMembershipResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/RemoveAllSceneResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/RemoveAllSceneResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/RemoveAllSceneResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,56 @@
+/*
+   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.zcl.library.api.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+/**
+ * 
+ * This class represent the <i>Remove All Scene Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface RemoveAllSceneResponse extends Response{
+	
+	public static final byte ID = 0x03;
+	
+	/**
+	 * 
+	 * @return {@link Status} representing the <i>Status</i> field 
+	 */
+	public Status getStatus();
+	
+	/**
+	 * 
+	 * @return the int representing the <i>Group ID</i> field
+	 */
+	public int getGroupId();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/RemoveAllSceneResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/RemoveSceneResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/RemoveSceneResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/RemoveSceneResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,63 @@
+/*
+   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.zcl.library.api.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+/**
+ * 
+ * This class represent the <i>Remove Scene Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface RemoveSceneResponse extends Response{
+	
+	public static final byte ID = 0x02;
+	
+	/**
+	 * 
+	 * @return {@link Status} representing the <i>Status</i> field 
+	 */
+	public Status getStatus();
+	
+	/**
+	 * 
+	 * @return the int representing the <i>Group ID</i> field
+	 */
+	public int getGroupId();
+
+	
+	/**
+	 * 
+	 * @return the short representing the <i>Scene ID</i> field
+	 */
+	public short getSceneId();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/RemoveSceneResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/StoreSceneResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/StoreSceneResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/StoreSceneResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,63 @@
+/*
+   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.zcl.library.api.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+/**
+ * 
+ * This class represent the <i>Store Scene Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface StoreSceneResponse extends Response{
+	
+	public static final short ID = 0x04;
+	
+	/**
+	 * 
+	 * @return {@link Status} representing the <i>Status</i> field 
+	 */
+	public Status getStatus();
+	
+	/**
+	 * 
+	 * @return the int representing the <i>Group ID</i> field
+	 */
+	public int getGroupId();
+
+	
+	/**
+	 * 
+	 * @return the short representing the <i>Scene ID</i> field
+	 */
+	public short getSceneId();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/StoreSceneResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ViewSceneResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ViewSceneResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ViewSceneResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,81 @@
+/*
+   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.zcl.library.api.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+
+/**
+ * 
+ * This class represent the <i>View Scene Response</i> as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ *   
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface ViewSceneResponse extends Response{	
+	
+	public static final short ID = 0x01;
+	
+	/**
+	 * 
+	 * @return {@link Status} representing the <i>Status</i> field 
+	 */
+	public Status getStatus();
+	
+	/**
+	 * 
+	 * @return the int representing the <i>Group ID</i> field
+	 */
+	public int getGroupId();
+
+	
+	/**
+	 * 
+	 * @return the short representing the <i>Scene ID</i> field
+	 */
+	public short getSceneId();
+	
+	/**
+	 * 
+	 * @return the int representing the <i>Transition time</i> field
+	 */
+	public int getTransitionTime();
+	
+	/**
+	 * 
+	 * @return the {@link String} representing the <i>Scene Name</i> field
+	 */
+	public String getSceneName();
+	
+	/**
+	 * 
+	 * @return the {@link ExtensionFieldSet} representing the <i>Extension</i> field
+	 */
+	public ExtensionFieldSetViewResponse[] getExstensionFieldSet();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/general/scenes/ViewSceneResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeReport.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeReport.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeReport.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,40 @@
+/*
+   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.zcl.library.api.global;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface AttributeReport {
+
+	public int getAttributeId();
+	
+	public ZigBeeType getAttributeDataType();
+	
+	public Object getAttributeData();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeReport.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeReportingConfigurationRecord.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeReportingConfigurationRecord.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeReportingConfigurationRecord.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,43 @@
+/*
+   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.zcl.library.api.global;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface AttributeReportingConfigurationRecord {
+
+	public int getDiretion();
+	public int getAttributeId();
+	public ZigBeeType getAttributeDataType();
+	public int getMinimumReportingInterval();
+	public int getMaximumReportinInterval();
+	public Object getReportableChange();
+	public int getTimeoutPeriod();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeReportingConfigurationRecord.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeStatusRecord.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeStatusRecord.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeStatusRecord.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,39 @@
+/*
+   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.zcl.library.api.global;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface AttributeStatusRecord {
+
+	public byte getStatus();
+	
+	public int getDirection();
+	
+	public int getAttributeId();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/AttributeStatusRecord.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ConfigureReportingResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ConfigureReportingResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ConfigureReportingResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,38 @@
+/*
+   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.zcl.library.api.global;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface ConfigureReportingResponse extends Response {
+
+	public static byte ID = 0x7;
+	
+	public AttributeStatusRecord[] getAttributeStatusRecord();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ConfigureReportingResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/DefaultResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/DefaultResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/DefaultResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,56 @@
+/*
+   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.zcl.library.api.global;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+import it.cnr.isti.zigbee.zcl.library.api.general.identify.IdentifyQueryResponse;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface DefaultResponse extends Response{
+
+
+	public static final byte ID = 0x0b;
+	
+	/**
+	 * 
+	 * @return the short representing the id of the invoking command that generated as result<br>
+	 * 		this {@link IdentifyQueryResponse}
+	 */
+	public byte getCommandId();
+	
+	/**
+	 * 
+	 * @return the {@link Status} of result of the invoked command
+	 */
+	
+	public Status getStatus();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/DefaultResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReadAttributesResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReadAttributesResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReadAttributesResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,38 @@
+/*
+   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.zcl.library.api.global;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface ReadAttributesResponse extends Response {
+
+	public static byte ID = 0x1;
+
+	public ReadAttributesStatus[] getReadAttributeStatus();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReadAttributesResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReadAttributesStatus.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReadAttributesStatus.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReadAttributesStatus.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,41 @@
+/*
+   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.zcl.library.api.global;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface ReadAttributesStatus {
+	
+	public int getAttributeId();
+	
+	public byte getStatus();
+	
+	public byte getAttributeDataType();
+	
+	public Object getAttributeData();
+		
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReadAttributesStatus.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReportAttributesResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReportAttributesResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReportAttributesResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,38 @@
+/*
+   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.zcl.library.api.global;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface ReportAttributesResponse extends Response{
+	public  static byte ID = 0x0a;
+	
+	public AttributeReport[] getAttributeReports();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/ReportAttributesResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributeRecord.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributeRecord.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributeRecord.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,41 @@
+/*
+   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.zcl.library.api.global;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface WriteAttributeRecord {
+
+    public int getAttributeId();
+	
+	public ZigBeeType getAttributeDataType();
+	
+	public Object getAttributeData();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributeRecord.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributesResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributesResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributesResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,38 @@
+/*
+   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.zcl.library.api.global;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface WriteAttributesResponse extends Response {
+	
+	public static byte ID = 0x4;
+
+	public WriteAttributesStatus[] getWriteAttributesStatus();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributesResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributesStatus.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributesStatus.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributesStatus.java Thu Jun 21 11:52:53 2012
@@ -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.zcl.library.api.global;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface WriteAttributesStatus {
+
+	public int getAttributeId();
+	
+	public byte getStatus();
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/global/WriteAttributesStatus.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/lighting/ColorControl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/lighting/ColorControl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/lighting/ColorControl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,48 @@
+/*
+   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.zcl.library.api.lighting;
+
+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;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface ColorControl extends ZCLCluster{
+	
+	public Attribute getAttributeCurrentHue();
+	public Attribute getAttributeCurrentSaturation();
+	public Attribute getAttributeRemainingTime();
+	
+	public Response moveToHue(short hue, byte direction, int transitionTime);
+	public Response moveHue(byte moveMode, short rate);
+	public Response stepHue(byte stepMode, short transtionTime);
+	public Response movetoSaturation(short saturation, int transitionTime);
+	public Response moveSaturation(byte moveMode, short rate);
+	public Response stepSaturation(byte stepMode, short transitionTime);
+	public Response movetoHue_Saturation(short Hue, short saturation, int transitionTime);
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/lighting/ColorControl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/IlluminanceMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/IlluminanceMeasurement.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/IlluminanceMeasurement.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,17 @@
+package it.cnr.isti.zigbee.zcl.library.api.measureament_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+public interface IlluminanceMeasurement extends ZCLCluster {
+
+	static final short ID = 0x0400;
+	static final String NAME = "Illuminance Measurement";
+	static final String DESCRIPTION = "Attributes and commands for configuring the measurement of illuminance and reporting illuminance measurement.";
+
+	public Attribute getMeasuredValue();
+	public Attribute getMinMeasuredValue();	
+	public Attribute getMaxMeasuredValue();
+	public Attribute getTolerance();	
+	public Attribute getLightSensorType();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/IlluminanceMeasurement.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/OccupacySensing.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/OccupacySensing.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/OccupacySensing.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,53 @@
+/*
+   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.zcl.library.api.measureament_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * This class represent the <b>Occupancy sensing</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a> *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface OccupacySensing extends ZCLCluster {
+	
+	static final short ID = 0x0406;
+	static final String NAME = "Occupacy Sensing";
+	static final String DESCRIPTION = "Attributes and commands for configuring occupancy sensing, and reporting occupancy status.";
+
+	public Attribute getAttributeOccupancy();
+	public Attribute getAttributeOccupancySensorType();
+	
+	public Attribute getAttributePIROccupiedToUnoccupiedDelay();
+	public Attribute getAttributePIRUnoccupiedToOccupiedDelay();
+	
+	public Attribute getAttributeUltraSonicOccupiedToUnoccupiedDelay();
+	public Attribute getAttributeUltraSonicUnoccupiedToOccupiedDelay();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/OccupacySensing.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/RelativeHumidityMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/RelativeHumidityMeasurement.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/RelativeHumidityMeasurement.java Thu Jun 21 11:52:53 2012
@@ -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.zcl.library.api.measureament_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * This class represent the <b>Relative Humidity Measurement</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.4.0
+ *
+ */
+public interface RelativeHumidityMeasurement extends ZCLCluster{
+	
+	static final short ID = 0x0405;
+	static final String NAME = "Relative Humidity Measurement";
+	static final String DESCRIPTION = "Attributes and commands for configuring the measurement of temperature, and reporting relative humidity measurements.";
+
+	public Attribute getAttributeMeasuredValue();
+	public Attribute getAttributeMinMeasuredValue();
+	public Attribute getAttributeMaxMeasuredValue();
+	public Attribute getAttributeTolerance();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/RelativeHumidityMeasurement.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/TemperatureMeasurement.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/TemperatureMeasurement.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/TemperatureMeasurement.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,51 @@
+/*
+   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.zcl.library.api.measureament_sensing;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+
+/**
+ * This class represent the <b>Temperature Measurement</b> Cluster as defined by the document:<br>
+ * <i>ZigBee Cluster Library</i> public release version 075123r01ZB
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a> *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface TemperatureMeasurement extends ZCLCluster{
+
+	static final short ID = 0x0402;
+	static final String NAME = "Temperature Measurement";
+	static final String DESCRIPTION = "Attributes and commands for configuring the measurement of temperature, and reporting temperature measurements.";
+
+
+	public Attribute getAttributeMeasuredValue();
+	public Attribute getAttributeMinMeasuredValue();
+	public Attribute getAttributeMaxMeasuredValue();
+	public Attribute getAttributeTolerance();
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/measureament_sensing/TemperatureMeasurement.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/IASWD.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/IASWD.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/IASWD.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,46 @@
+/*
+   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.zcl.library.api.security_safety;
+
+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;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface IASWD extends ZCLCluster {
+
+	public static final short ID = 0x0502;
+	
+	public Attribute getAttributeMaxDuration();
+	
+	public Response startWaiting(short warningMode, short strobe, long warningDuration);
+	
+	public Response squawk(short squawkMode, short strobe, short squawkLevel);
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/IASWD.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/IASZone.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/IASZone.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/IASZone.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,56 @@
+/*
+   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.zcl.library.api.security_safety;
+
+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.security_safety.ias_zone.ZoneEnrollResponse;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public interface IASZone extends ZCLCluster{
+
+	public static final short ID = 0x0500;
+	static final String NAME = "IAS Zone";
+	static final String DESCRIPTION = "Attributes and commands for IAS security zone device.";
+
+	// zone information attribute set
+	public Attribute getAttributeZoneState();
+	public Attribute getAttributeZoneType();
+	public Attribute getAttributeZoneStatus();
+	
+	// zone settings attribute set
+	public Attribute getAttributeIASCIEAddress();
+
+	// commands generated
+	public Response ZoneStatusChangeNotification(byte zoneStatus, byte extendedStatus);
+
+	public ZoneEnrollResponse ZoneEnrollRequest(byte zoneType, byte manufacturerCode);
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/IASZone.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ZoneEnrollResponse.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ZoneEnrollResponse.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ZoneEnrollResponse.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,40 @@
+/*
+   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.zcl.library.api.security_safety.ias_zone;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface ZoneEnrollResponse extends Response {
+
+	public static final byte ID = 0x00;
+
+	public int getEnrollResponseCode();
+
+	public int getZoneID();
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ZoneEnrollResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ZoneStatusChangeNotificationListener.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ZoneStatusChangeNotificationListener.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ZoneStatusChangeNotificationListener.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,5 @@
+package it.cnr.isti.zigbee.zcl.library.api.security_safety.ias_zone;
+
+public interface ZoneStatusChangeNotificationListener {
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/api/security_safety/ias_zone/ZoneStatusChangeNotificationListener.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/ClusterImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/ClusterImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/ClusterImpl.java Thu Jun 21 11:52:53 2012
@@ -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.zcl.library.impl;
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLFrame;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ClusterImpl implements Cluster {
+	
+	private ZCLFrame frame;
+	private short id;
+
+	public ClusterImpl(short id, ZCLFrame frame) {
+		this.frame = frame;
+		this.id = id;
+	}
+
+	public byte[] getClusterMsg() {
+		return frame.toByte();
+	}
+
+	public short getId() {
+		return id;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/ClusterImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/AbstractAttribute.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/AbstractAttribute.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/AbstractAttribute.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,103 @@
+/*
+   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.zcl.library.impl.attribute;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AbstractAttribute implements AttributeDescriptor{
+
+	private int id;
+	private String name;
+	private Class clazz;
+	private ZigBeeType zbType;
+	private boolean isReportable;
+	private boolean isWritable;
+	private boolean hasRange;
+	private Object min;
+	private Object max;
+
+	public AbstractAttribute() {
+	}
+
+	final public int getId() {
+		return id;
+	}
+
+	public AbstractAttribute setId(int id){
+		this.id=id;
+		return this;	
+	}
+
+	final public String getName() {
+		return name;
+	}
+
+	public AbstractAttribute setName(String name){
+		this.name=name;
+		return this;	
+	}
+
+	final public Class getType() {
+		return clazz;
+	}
+
+	public AbstractAttribute setType(Class clazz){
+		this.clazz=clazz;
+		return this;	
+	}
+
+
+	final public boolean isReportable() {
+		return isReportable;
+	}
+
+	public AbstractAttribute setReportable(boolean isReportable){
+		this.isReportable=isReportable;
+		return this;	
+	}
+
+	final public boolean isWritable() {
+		return isWritable;
+	}
+
+	public AbstractAttribute setWritable(boolean isWritable){
+		this.isWritable=isWritable;
+		return this;	
+	}
+
+	public AbstractAttribute setZigBeeType(ZigBeeType type){
+		this.zbType = type;
+		return this;
+	}
+
+	final public ZigBeeType getZigBeeType() {
+		return zbType;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/AbstractAttribute.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/AttributeDescriptor.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/AttributeDescriptor.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/AttributeDescriptor.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,44 @@
+/*
+   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.zcl.library.impl.attribute;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public interface AttributeDescriptor {
+	public int getId();
+	public String getName();
+	public Class getType();
+		
+	public boolean isWritable();
+	
+	public boolean isReportable();
+	public ZigBeeType getZigBeeType();	
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/AttributeDescriptor.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/Attributes.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/Attributes.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/Attributes.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,602 @@
+/*
+   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.zcl.library.impl.attribute;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class Attributes  {
+
+	final static public  AttributeDescriptor ON_OFF = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("OnOff")
+	.setReportable(true)
+	.setType(Boolean.class)
+	.setZigBeeType(ZigBeeType.Boolean)
+	.setWritable(false);
+
+	final static public    AttributeDescriptor ZCL_VERSION = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("ZCLVersion")
+	.setReportable(false)
+	.setType(Integer.class)
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor APPLICATION_VERSION = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("ApplicationVersion")
+	.setReportable(false)
+	.setType(Integer.class)
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor STACK_VERSION = new AbstractAttribute()
+	.setId(0x0002)
+	.setName("StackVersion")
+	.setReportable(false)
+	.setType(Integer.class)
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor HW_VERSION = new AbstractAttribute()
+	.setId(0x0003)
+	.setName("HWVersion")
+	.setReportable(false)
+	.setType(Integer.class)
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MANUFACTURER_NAME = new AbstractAttribute()
+	.setId(0x0004)
+	.setName("ManufacturerName")
+	.setReportable(false)
+	.setType(String.class)
+	.setZigBeeType(ZigBeeType.CharacterString)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MODEL_IDENTIFIER = new AbstractAttribute()
+	.setId(0x0005)
+	.setName("ModelIdentifier")
+	.setReportable(false)
+	.setType(String.class)
+	.setZigBeeType(ZigBeeType.CharacterString)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor DATA_CODE = new AbstractAttribute()
+	.setId(0x0006)
+	.setName("DataCode")
+	.setReportable(false)
+	.setType(String.class)
+	.setZigBeeType(ZigBeeType.CharacterString)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor POWER_SOURCE = new AbstractAttribute()
+	.setId(0x0007)
+	.setName("PowerSource")
+	.setReportable(false)
+	.setType(Byte.class)
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor LOCATION_DESCRIPTION = new AbstractAttribute()
+	.setId(0x0010)
+	.setName("LocationDescription")
+	.setReportable(false)
+	.setType(String.class)
+	.setZigBeeType(ZigBeeType.CharacterString)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor PHISICAL_ENVIROMENT = new AbstractAttribute()
+	.setId(0x0011)
+	.setName("PhysicalEnviroment")
+	.setReportable(false)
+	.setType(Byte.class)
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor DEVICE_ENABLED = new AbstractAttribute()
+	.setId(0x0012)
+	.setName("DeviceEnabled")
+	.setReportable(false)
+	.setType(Byte.class)
+	.setZigBeeType(ZigBeeType.Boolean)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor ALARM_MASK = new AbstractAttribute()
+	.setId(0x0013)
+	.setName("AlarmMask")
+	.setReportable(false)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor IDENTIFY_TIME = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("IdentifyTime")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor SCENE_COUNT = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("SceneCount")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor CURRENT_SCENE = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("CurrentScene")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor CURRENT_GROUP = new AbstractAttribute()
+	.setId(0x0002)
+	.setName("CurrentGroup")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor SCENE_VALID = new AbstractAttribute()
+	.setId(0x0003)
+	.setName("SceneValid")
+	.setReportable(false)
+	.setType(ZigBeeType.Boolean.getJavaClass())
+	.setZigBeeType(ZigBeeType.Boolean)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor LAST_CONFIGURED_BY = new AbstractAttribute()
+	.setId(0x0005)
+	.setName("LastConfiguredBy")
+	.setReportable(false)
+	.setType(ZigBeeType.IEEEAddress.getJavaClass())
+	.setZigBeeType(ZigBeeType.IEEEAddress)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor NAME_SUPPORT_GROUPS = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("NameSupport")
+	.setReportable(false)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor NAME_SUPPORT_SCENES = new AbstractAttribute()
+	.setId(0x0004)
+	.setName("NameSupport")
+	.setReportable(false)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor OCCUPANCY = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("Occupancy")
+	.setReportable(true)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor OCCUPANCY_SENSOR_TYPE = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("OccupancySensorType")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor PIR_OCCUPIED_TO_UNOCCUPIED_DELAY = new AbstractAttribute()
+	.setId(0x0010)
+	.setName("PIROccupiedToUnoccupiedDelay")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor PIR_UNOCCUPIED_TO_OCCUPIED_DELAY = new AbstractAttribute()
+	.setId(0x0011)
+	.setName("PIRUnoccupiedToOccupiedDelay")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor ULTRA_SONIC_OCCUPIED_TO_UNOCCUPIED_DELAY = new AbstractAttribute()
+	.setId(0x0020)
+	.setName("UltraSonicOccupiedToUnoccupiedDelay")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor ULTRA_SONIC_UNOCCUPIED_TO_OCCUPIED_DELAY = new AbstractAttribute()
+	.setId(0x0021)
+	.setName("UltraSonicUnoccupiedToOccupiedDelay")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor MAINS_VOLTAGE = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("MainsVoltage")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MAINS_FREQUENCY = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("MainsFrequency")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MAINS_ALARM_MASK = new AbstractAttribute()
+	.setId(0x0010)
+	.setName("MainsAlarmMask")
+	.setReportable(false)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor MAINS_VOLTAGE_MIN_THRESHOLD = new AbstractAttribute()
+	.setId(0x0011)
+	.setName("MainsVoltageMinThreshold")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor MAINS_VOLTAGE_MAX_THRESHOLD = new AbstractAttribute()
+	.setId(0x0012)
+	.setName("MainsVoltageMaxThreshold")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor MAINS_VOLTAGE_DWELL_TRIP_POINT = new AbstractAttribute()
+	.setId(0x0013)
+	.setName("MainsVoltageDwellTripPoint")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor BATTERY_VOLTAGE = new AbstractAttribute()
+	.setId(0x0020)
+	.setName("BatteryVoltage")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor BATTERY_MANUFACTURER = new AbstractAttribute()
+	.setId(0x0030)
+	.setName("BatteryManufaturer")
+	.setReportable(false)
+	.setType(ZigBeeType.CharacterString.getJavaClass())
+	.setZigBeeType(ZigBeeType.CharacterString)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor BATTERY_SIZE = new AbstractAttribute()
+	.setId(0x0031)
+	.setName("BatterySize")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor BATTERY_AHr_RATING = new AbstractAttribute()
+	.setId(0x0032)
+	.setName("BatteryAHrRating")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor BATTERY_QUANTITY = new AbstractAttribute()
+	.setId(0x0033)
+	.setName("BatteryQuantity")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor BATTERY_RATED_VOLTAGE = new AbstractAttribute()
+	.setId(0x0034)
+	.setName("BatteryRatedVoltage")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor BATTERY_ALARM_MASK = new AbstractAttribute()
+	.setId(0x0035)
+	.setName("BatteryAlarmMask")
+	.setReportable(false)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor BATTERY_VOLTAGE_MIN_THRESHOLD = new AbstractAttribute()
+	.setId(0x0036)
+	.setName("BatteryVoltageMinThreshold")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor CURRENT_TEMPERATURE = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("CurrentTemperature")
+	.setReportable(false)
+	.setType(ZigBeeType.SignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.SignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MIN_TEMP_EXPERIENCED = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("MinTempExperienced")
+	.setReportable(false)
+	.setType(ZigBeeType.SignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.SignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MAX_TEMP_EXPERIENCED = new AbstractAttribute()
+	.setId(0x0002)
+	.setName("MaxTempExperienced")
+	.setReportable(false)
+	.setType(ZigBeeType.SignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.SignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor OVER_TEMP_TOTAL_DWELL = new AbstractAttribute()
+	.setId(0x0003)
+	.setName("OverTempTotalDwell")
+	.setReportable(false)
+	.setType(ZigBeeType.SignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.SignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor DEVICE_TEMP_ALARM_MASK = new AbstractAttribute()
+	.setId(0x0010)
+	.setName("DeviceTempAlarmMask")
+	.setReportable(false)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor LOW_TEMP_THRESHOLD = new AbstractAttribute()
+	.setId(0x0011)
+	.setName("LowTempThreshold")
+	.setReportable(false)
+	.setType(ZigBeeType.SignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.SignedInteger16bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor HIGH_TEMP_THRESHOLD = new AbstractAttribute()
+	.setId(0x0012)
+	.setName("HighTempThreshold")
+	.setReportable(false)
+	.setType(ZigBeeType.SignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.SignedInteger16bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor LOW_TEMP_DWELL_TRIP_POINT = new AbstractAttribute()
+	.setId(0x0013)
+	.setName("LowTempDwellTripPoint")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger24bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger24bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor HIGH_TEMP_DWELL_TRIP_POINT = new AbstractAttribute()
+	.setId(0x0014)
+	.setName("HighTempDwellTripPoint")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger24bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger24bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor SWITCH_TYPE = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("SwitchType")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor SWITCH_ACTIONS = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("SwitchActions")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor CURRENT_LEVEL = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("CurrentLevel")
+	.setReportable(true)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor REMAINING_TIME = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("RemainingTime")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor ON_OFF_TRANSATION_TIME = new AbstractAttribute()
+	.setId(0x0010)
+	.setName("OnOffTRansationTime")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor ON_LEVEL = new AbstractAttribute()
+	.setId(0x0011)
+	.setName("OnLevel")
+	.setReportable(true)
+	.setType(ZigBeeType.UnsignedInteger8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor TIME = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("Time")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger32bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger32bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor TIME_STATUS = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("TimeStatus")
+	.setReportable(false)
+	.setType(ZigBeeType.Bitmap8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Bitmap8bit)
+	.setWritable(true);
+
+	final static public   AttributeDescriptor MEASURED_VALUE_SIGNED_16_BIT = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("MeasuredValue")
+	.setReportable(true)
+	.setType(ZigBeeType.SignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.SignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MIN_MEASURED_VALUE_SIGNED_16_BIT = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("MinMeasuredValue")
+	.setReportable(false)
+	.setType(ZigBeeType.SignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.SignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MAX_MEASURED_VALUE_SIGNED_16_BIT = new AbstractAttribute()
+	.setId(0x0002)
+	.setName("MaxMeasuredValue")
+	.setReportable(false)
+	.setType(ZigBeeType.SignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.SignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MEASURED_VALUE_UNSIGNED_16_BIT = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("MeasuredValue")
+	.setReportable(true)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MIN_MEASURED_VALUE_UNSIGNED_16_BIT = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("MinMeasuredValue")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor MAX_MEASURED_VALUE_UNSIGNED_16_BIT = 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 ALLARM_COUNT = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("AlarmCount")
+	.setReportable(false)
+	.setType(ZigBeeType.UnsignedInteger16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.UnsignedInteger16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor LIGHT_SENSOR_TYPE = new AbstractAttribute()
+	.setId(0x0004)
+	.setName("LightSensorType")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor ZONE_STATE = new AbstractAttribute()
+	.setId(0x0000)
+	.setName("ZoneState")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration8bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration8bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor ZONE_TYPE = new AbstractAttribute()
+	.setId(0x0001)
+	.setName("ZoneType")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor ZONE_STATUS = new AbstractAttribute()
+	.setId(0x0002)
+	.setName("ZoneStatus")
+	.setReportable(false)
+	.setType(ZigBeeType.Enumeration16bit.getJavaClass())
+	.setZigBeeType(ZigBeeType.Enumeration16bit)
+	.setWritable(false);
+
+	final static public   AttributeDescriptor IAS_CIE_ADDRESS = new AbstractAttribute()
+	.setId(0x00010)
+	.setName("IASCieAddress")
+	.setReportable(false)
+	.setType(ZigBeeType.IEEEAddress.getJavaClass())
+	.setZigBeeType(ZigBeeType.IEEEAddress)
+	.setWritable(true);
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/attribute/Attributes.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AbstractCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AbstractCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AbstractCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,112 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Command;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AbstractCommand implements Command {
+
+	private byte id;
+	private byte[] manufacturerId;
+	private boolean isClientServerDirection;
+	private boolean isClusterSpecific;
+	private boolean isManufacturerExtension;
+	private byte[] allowedResponseIds;
+	protected byte[] payload = null;	
+	protected int freeIdxPayload = 0;
+	
+	public AbstractCommand(byte id) {
+		this(id,null,true);
+	}
+
+	public AbstractCommand(byte id, boolean isClusterSpecific) {
+		this(id,null,true,isClusterSpecific,null);
+	}
+	
+	public AbstractCommand(byte id, byte[] manufacturerId, boolean isClientServerDirection) {
+		this(id, manufacturerId, isClientServerDirection, true, null);
+	}
+	
+	public AbstractCommand(byte id, byte[] manufacturerId,
+			boolean isClientServerDirection, boolean isClusterSpecific) {
+		this(id, manufacturerId, isClientServerDirection, isClusterSpecific, null);
+	}
+	
+	public AbstractCommand(byte id, byte[] manufacturerId,
+			boolean isClientServerDirection, boolean isClusterSpecific,
+			byte[] allowedResponseIds) {
+		super();
+		this.id = id;
+		this.manufacturerId = manufacturerId;
+		this.isClientServerDirection = isClientServerDirection;
+		this.isClusterSpecific = isClusterSpecific;
+		this.isManufacturerExtension = manufacturerId != null;
+		this.allowedResponseIds = allowedResponseIds;
+	}
+
+	public byte[] getAllowedResponseId() {
+		return allowedResponseIds;
+	}
+	
+	protected AbstractCommand setAllowedResponseId(byte[] allowedResponseIds){
+		this.allowedResponseIds = allowedResponseIds;
+		return this;	
+	}
+
+	public byte getHeaderCommandId() {
+		return id;
+	}
+	
+	public byte[] getManufacturerId() {
+		return manufacturerId;
+	}
+	
+	public boolean isClientServerDirection() {
+		return isClientServerDirection;
+	}
+	
+	public boolean isClusterSpecific() {
+		return isClusterSpecific;
+	}
+
+	public boolean isManufacturerExtension() {
+		return isManufacturerExtension;
+	}
+	
+	protected void setId(byte id) {
+		this.id = id;
+	}
+		
+	public  byte[] getPayload() {
+		if( payload == null ) {
+			payload = new byte[0];
+		}
+		return payload;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AbstractCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AnalogSubscriptionImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AnalogSubscriptionImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AnalogSubscriptionImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,130 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.api.ZigBeeBasedriverException;
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.AnalogSubscription;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.global.AttributeReportingConfigurationRecord;
+import it.cnr.isti.zigbee.zcl.library.api.global.AttributeStatusRecord;
+import it.cnr.isti.zigbee.zcl.library.impl.ClusterImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.reporting.AttributeReportingConfigurationRecordImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.reporting.ConfigureReportingCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.global.reporting.ConfigureReportingResponseImpl;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ *
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.6.0
+ *
+ */
+public class AnalogSubscriptionImpl extends SubscriptionBase implements AnalogSubscription {
+
+	private final Logger log = LoggerFactory.getLogger(AnalogSubscriptionImpl.class);
+	
+	private Object minimumChange = null;
+		
+	public AnalogSubscriptionImpl(final ZigBeeDevice zb, final ZCLCluster c, final Attribute attrib) {
+		super(zb, c, attrib);
+		final ZigBeeType type = attrib.getZigBeeType();
+		if ( type.isAnalog() == false ) {
+			throw new IllegalArgumentException(
+					"AnalogSubscription applies only to Attribute with analog data type, " +
+					"the attribute " + attrib.getName() + " ("+attrib.getId()+") of type "+type.toString() +
+					" is DISCRETE"
+			);
+		}
+		setReportableChangeValue(new Double(AnalogSubscription.DEFAULT_REPORTABLE_CHANGE_INTERVAL));
+	}
+	
+	protected boolean doConfigureServer() throws ZigBeeClusterException {
+		
+		log.debug(
+				"Subscring to analog attribute {} ( {} )with the following parameter min = {}, max = {}, change = {}",
+				new Object[]{attribute.getName(), attribute.getId(), min, max, minimumChange}
+		);
+		
+		AttributeReportingConfigurationRecordImpl config = new AttributeReportingConfigurationRecordImpl(
+				attribute, 0x00, max, min, minimumChange, max 
+		);
+		ConfigureReportingCommand cmd = new ConfigureReportingCommand(
+				new AttributeReportingConfigurationRecord[]{config}
+		);
+
+		final ZCLFrame frame = new ZCLFrame(cmd, true);
+		final ClusterImpl input = new ClusterImpl(cluster.getId(),frame);
+		Cluster cluster = null;
+		try {
+			cluster = device.invoke(input);
+			final ConfigureReportingResponseImpl response = new ConfigureReportingResponseImpl(
+					new ResponseImpl(cluster,cluster.getId()), new Attribute[]{attribute}
+			);
+			final AttributeStatusRecord[] results = response.getAttributeStatusRecord();
+			if ( results[0].getStatus() != 0 ) {
+				throw new ZigBeeClusterException("ConfigureReporting answered with a Failed status: {} "+results[0].getStatus());
+			}
+		} catch (ZigBeeBasedriverException e) {
+			throw new ZigBeeClusterException(e);
+		}
+		
+		return true;		
+	}
+		
+	public Object getReportableChange() {
+		return minimumChange;
+	}
+
+	private void setReportableChangeValue(Number n) {
+		final ZigBeeType type = attribute.getZigBeeType();
+		if( type.getJavaClass() == Long.class ) {
+			minimumChange = new Long(n.longValue());
+		}else if( type.getJavaClass() == Integer.class ){
+			minimumChange = new Integer(n.intValue());
+		}else if( type.getJavaClass() == Float.class ){
+			minimumChange = new Float(n.floatValue());
+		}else if( type.getJavaClass() == Double.class ){
+			minimumChange = new Double(n.doubleValue());
+		} else {
+			throw new IllegalArgumentException(
+					"Java class used for the interpretation of the " +
+					"the attribute " + attribute.getName() + " ("+attribute.getId()+") of type "+type.toString() +
+					" is not recognized "
+			);
+		}
+		
+	}
+	
+	public void setReportableChange(Object value) {
+		setReportableChangeValue((Number) value);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AnalogSubscriptionImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AttributeImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AttributeImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AttributeImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,208 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.api.ZigBeeBasedriverException;
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+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.Status;
+import it.cnr.isti.zigbee.zcl.library.api.core.Subscription;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.global.DefaultResponse;
+import it.cnr.isti.zigbee.zcl.library.api.global.ReadAttributesResponse;
+import it.cnr.isti.zigbee.zcl.library.api.global.ReadAttributesStatus;
+import it.cnr.isti.zigbee.zcl.library.api.global.WriteAttributeRecord;
+import it.cnr.isti.zigbee.zcl.library.api.global.WriteAttributesResponse;
+import it.cnr.isti.zigbee.zcl.library.api.global.WriteAttributesStatus;
+import it.cnr.isti.zigbee.zcl.library.impl.ClusterImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AttributeDescriptor;
+import it.cnr.isti.zigbee.zcl.library.impl.global.DefaultResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.read.ReadAttributeCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.global.read.ReadAttributesResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.write.WriteAttributeCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.global.write.WriteAttributeRecordImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.write.WriteAttributesResponseImpl;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public class AttributeImpl implements Attribute{
+
+	private static final Logger logger = LoggerFactory.getLogger(AttributeImpl.class);
+
+	final private Object LazyInstantiation = new Object();
+	private ZigBeeDevice zbDevice;
+	private ZCLCluster zclCluster;
+	private Subscription subscription;
+	private AttributeDescriptor descriptor;
+
+	public AttributeImpl(ZigBeeDevice zbDevice, ZCLCluster zclCluster, AttributeDescriptor descriptor) {
+		this.zbDevice = zbDevice;
+		this.zclCluster = zclCluster;
+		this.descriptor = descriptor;
+	}
+
+	public int getId() {
+		return descriptor.getId();
+	}
+
+	public String getName() {
+		return descriptor.getName();
+	}	
+
+	@SuppressWarnings("unchecked")
+	public Class getType() {
+		return descriptor.getType();
+	}
+
+	public ZigBeeType getZigBeeType(){
+		return descriptor.getZigBeeType();
+	}
+
+	public boolean isReportable() {
+		return descriptor.isReportable();
+	}
+
+	public boolean isWritable() {
+		return descriptor.isWritable();
+	}
+
+
+	public void setValue(Object o) throws ZigBeeClusterException {
+		if( isWritable() == false ) {
+			throw new ZigBeeClusterException(
+					"Trying to set the attribute "+getName()+"("+getId()+") that is Read Only"
+					);
+		}
+		doClusterWideWrite(o);
+
+	}
+	public Object getValue() throws ZigBeeClusterException {
+		return doClusterWideRead();
+	}
+
+	public Subscription getSubscription() {
+		if ( isReportable() == false ) 
+			return null;
+
+		synchronized (LazyInstantiation) {
+			if (subscription == null){
+				if ( getZigBeeType().isAnalog() ) {
+					subscription = new AnalogSubscriptionImpl(zbDevice, zclCluster, this);
+				} else {
+					subscription = new SubscriptionImpl(zbDevice, zclCluster, this);
+				}
+			}
+		}
+		return subscription;
+	}
+
+	private Object doClusterWideRead() throws ZigBeeClusterException {
+
+		ReadAttributeCommand readAttrCom = new ReadAttributeCommand(new int[]{getId()});
+		ZCLFrame frame = new ZCLFrame(readAttrCom,zclCluster.isDefaultResponseEnabled());
+		ClusterImpl input;
+		input = new ClusterImpl(zclCluster.getId(),frame);
+		Cluster cluster = null;
+		try {
+			cluster = zbDevice.invoke(input);
+			Response response = new ResponseImpl(cluster,zclCluster.getId());
+			if ( response.getZCLHeader().getTransactionId() != frame.getHeader().getTransactionId() ){
+				logger.error(
+						"Received mismatching transaction response, " +
+								"we have to change heuristic for dispatching. Received {} while sent {}",
+								response.getZCLHeader().getTransactionId(),frame.getHeader().getTransactionId()
+						);
+				return null;
+			}
+			AttributeDescriptor[] requestedAttributes = new AttributeDescriptor[]{descriptor};
+
+			switch ( response.getZCLHeader().getCommandId() ) {
+			case ReadAttributesResponse.ID:
+				ReadAttributesResponse readResponse = new ReadAttributesResponseImpl(response,requestedAttributes);
+				ReadAttributesStatus attributeStatus = readResponse.getReadAttributeStatus()[0];
+				if( attributeStatus.getStatus() == Status.SUCCESS.id ) {
+					return attributeStatus.getAttributeData();
+				} else {
+					Status state = Status.getStatus(attributeStatus.getStatus());
+					throw new ZigBeeClusterException(
+							"Read Attribute of "+getId()+" failed." +
+									"Due to "+state+" that means "+state.description 
+							);
+				}
+			case DefaultResponse.ID:
+				//Means that the read command is not supported
+				final DefaultResponse result = new DefaultResponseImpl(response);
+				Status state = result.getStatus();
+				throw new ZigBeeClusterException(
+						"Read Attribute of "+getId()+" failed because command is not supported." +
+								"Due to "+state+" that means "+state.description 
+						);
+
+			default:
+				throw new ZigBeeClusterException(
+						"Read Attribute of "+getId()+" failed." +
+								"Due to: Unsupported answer: "+response
+						);
+			}
+		} catch (ZigBeeBasedriverException e) {
+			throw new ZigBeeClusterException(e);
+		}
+	}
+
+	private void doClusterWideWrite(Object o) throws ZigBeeClusterException  {
+		WriteAttributeRecord writeAttrComRec = new WriteAttributeRecordImpl(this,o);
+		WriteAttributeCommand writeAttrCom = new WriteAttributeCommand(new WriteAttributeRecord[]{writeAttrComRec});
+		ZCLFrame frame = new ZCLFrame(writeAttrCom,zclCluster.isDefaultResponseEnabled());
+		ClusterImpl input = new ClusterImpl(zclCluster.getId(),frame);
+		try {
+			Cluster cluster = zbDevice.invoke(input);
+			Response response = new ResponseImpl(cluster,zclCluster.getId());
+			AttributeDescriptor[] requestedAttributes = new AttributeDescriptor[]{descriptor};
+			WriteAttributesResponse writeResposne = new WriteAttributesResponseImpl(response,requestedAttributes);
+			WriteAttributesStatus attributeStatus = writeResposne.getWriteAttributesStatus()[0];
+			if( attributeStatus.getStatus() != Status.SUCCESS.id ){
+				Status state = Status.getStatus(attributeStatus.getStatus());
+				throw new ZigBeeClusterException(
+						"Unable to write value " + o.toString() + 
+						". It failed with error "+state+"("+state.id+"):"+state.description
+						);
+			}
+		}  catch (ZigBeeBasedriverException e) {
+			throw new ZigBeeClusterException(e);
+		}
+		return ;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/AttributeImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultDeserializer.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultDeserializer.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultDeserializer.java Thu Jun 21 11:52:53 2012
@@ -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.zcl.library.impl.core;
+
+import it.cnr.isti.primitvetypes.util.Integers;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBDeserializer;
+
+/**
+ * 
+ * The defualt implementation of the {@link ZBDeserializer} 
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public class DefaultDeserializer implements ZBDeserializer {
+	int index = 0;
+	private byte[] payload;
+	
+	public DefaultDeserializer(byte[] payload, int index ) {
+		this.payload = payload;
+		this.index = index;
+	}
+	
+	public Boolean readBoolean() {
+		Object value = Integers.readBooleanObject(payload, index);
+		index++;
+		return (Boolean) value;
+	}
+
+	public Byte readByte() {
+		Byte value = Integers.readByteObject(payload, index);
+		index+=1;
+		return value;
+	}
+
+	public Integer readInteger() {
+		Integer value = Integers.readIntObject(payload, index);
+		index+=4;
+		return value;
+	}
+
+	public Long readLong() {
+		Long value = Integers.readLongObject(payload, index);
+		index+=8;
+		return value;
+	}
+
+	@SuppressWarnings("unchecked")
+	public Object readObject(Class clazz) {
+		Object[] value = new Object[1];
+		int step = Integers.readObject(payload, index, clazz, value);
+		index += step;
+		return value[0];
+	}
+	
+	public Short readShort() {
+		Short value = Integers.readShortObject(payload, index);
+		index+=2;
+		return value;
+	}
+
+	public boolean read_boolean() {
+		boolean value = Integers.readBoolean(payload, index);
+		index+=1;
+		return value;
+	}
+
+	public byte read_byte() {
+		byte value = Integers.readByte(payload, index);
+		index+=1;
+		return value;
+	}
+
+	public int read_int() {
+		int value = Integers.readInt(payload, index);
+		index+=4;
+		return value;
+	}
+
+	public long read_long() {
+		long value = Integers.readLong(payload, index);
+		index+=8;
+		return value;
+	}
+
+	public short read_short() {
+		short value = Integers.readShort(payload, index);
+		index+=2;
+		return value;
+	}
+
+	public int getPosition() {
+		return index;
+	}
+
+	public void skip(int n) {
+		index += n;
+	}
+	
+	public String readString() {
+		final String result = new String(payload, index+1, payload[index] & 0xFF);
+		index += payload[index]+1;
+		return result;
+	}
+
+	public Object readZigBeeType(ZigBeeType type) {
+		Object[] value = new Object[1];
+		switch(type){
+			case Boolean:
+				value[0] = readBoolean();
+			break;
+			case Data8bit: case Bitmap8bit: case Enumeration8bit: case UnsignedInteger8bit: case SignedInteger8bit:
+				byte b = read_byte();				
+				if ( type == ZigBeeType.UnsignedInteger8bit ) {
+					value[0] = new Integer(b & 0xFF);
+				}else{
+					value[0] = new Integer(b);
+				}
+			break;
+			case Data16bit: case Bitmap16bit: case Enumeration16bit: case UnsignedInteger16bit: case SignedInteger16bit: 
+				short s = read_short();
+				if ( type == ZigBeeType.UnsignedInteger16bit ) {
+					value[0] = new Integer(s & 0xFFFF);
+				}else{
+					value[0] = new Integer(s);
+				}
+			break;
+			case Data24bit: case Bitmap24bit: case UnsignedInteger24bit: case SignedInteger24bit:
+				int i = read_int24bit();
+				if ( type == ZigBeeType.UnsignedInteger32bit ) {
+					value[0] = new Long(i & 0xFFFFFFFF);
+				}else{
+					value[0] = new Integer(i);
+				}
+			break;
+			case Data32bit: case Bitmap32bit: case UnsignedInteger32bit: case SignedInteger32bit:
+				int i24 = read_int24bit();
+				value[0] = new Integer(i24);
+			break;
+			case CharacterString:
+				value[0] = readString();
+			break;
+			default:
+				throw new IllegalArgumentException(
+						"No reader defined by this "+ZBDeserializer.class.getName()+
+						" for "+type.toString()+" ("+type.getId()+")"
+				);
+		}
+		return value[0];
+	}
+
+	public int read_int24bit() {
+		int value = Integers.readInt24bit(payload, index);
+		index+=3;
+		return value;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultDeserializer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultSerializer.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultSerializer.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultSerializer.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,149 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.primitvetypes.util.Integers;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBDeserializer;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+
+/**
+ * 
+ * The defualt implementation of the {@link ZBSerializer} 
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public class DefaultSerializer implements ZBSerializer {
+	int index = 0;
+	private byte[] payload;
+	
+	public DefaultSerializer(byte[] payload, int index ) {
+		this.payload = payload;
+		this.index = index;
+	}
+	
+	public void appendBoolean(Boolean data) {
+		index += Integers.writeBooleanObject(payload, index, data);
+	}
+
+	public void appendByte(Byte data) {
+		index += Integers.writeByteObject(payload, index, data);
+	}
+
+	public void appendInteger(Integer data) {
+		index += Integers.writeIntObject(payload, index, data);
+	}
+
+	public void appendLong(Long data) {
+		index += Integers.writeLongObject(payload, index, data);
+	}
+	
+	public void appendString(String str){
+		final byte[] raw = str.getBytes();
+		if ( raw.length > 255 ) {
+			throw new IllegalArgumentException("String give '"+str+"' is too long maxium String size is 255");
+		}
+		index += raw.length + 1;
+		payload[index] = (byte) (raw.length & 0xFF);
+		System.arraycopy(raw, 0, payload, index+1, raw.length);
+	}
+
+	public void appendZigBeeType(Object data, ZigBeeType type) {
+		if ( data == null ) {
+			throw new NullPointerException("You can not append null data to a stream");
+		}
+		switch (type) {
+			case Boolean:
+				appendBoolean((Boolean) data);
+			break;
+			case Data8bit: case SignedInteger8bit: case Bitmap8bit: case UnsignedInteger8bit: case Enumeration8bit:
+				final Integer b = (Integer) data;
+				append_byte(b.byteValue());
+			break;
+			case Data16bit: case SignedInteger16bit: case Bitmap16bit: case UnsignedInteger16bit: case Enumeration16bit:
+				final Integer s = (Integer) data;
+				append_short(s.shortValue());
+			break;
+			case Data24bit: case SignedInteger24bit: case Bitmap24bit: case UnsignedInteger24bit:
+				new IllegalArgumentException(
+						"No reader defined by this "+ZBDeserializer.class.getName()+
+						" for "+type.toString()+" ("+type.getId()+")"
+				);
+			break;
+			case Data32bit: case SignedInteger32bit: case Bitmap32bit: case UnsignedInteger32bit:
+				if(type == ZigBeeType.UnsignedInteger32bit){
+					final Long l = (Long) data;
+					append_int(l.intValue());
+				}else{
+					final Integer i = (Integer) data;
+					append_int(i.intValue());
+				}				
+			break;
+			case CharacterString:
+				final String str = (String) data;
+				appendString(str);
+			break;
+			default:
+				throw new IllegalArgumentException(
+						"No reader defined by this "+ZBDeserializer.class.getName()+
+						" for "+type.toString()+" ("+type.getId()+")"
+				);				
+		}
+	}
+	
+	public void appendObject(Object data) {
+		index += Integers.writeObject(payload, index, data);
+	}
+
+	public void appendShort(Short data) {
+		index += Integers.writeShortObject(payload, index, data);
+	}
+
+	public void append_boolean(boolean data) {
+		index += Integers.writeBoolean(payload, index, data);
+	}
+
+	public void append_byte(byte data) {
+		index += Integers.writeByte(payload, index, data);
+	}
+
+	public void append_int(int data) {
+		index += Integers.writeInt(payload, index, data);
+	}
+	
+	public void append_int24bit(int data) {
+		index += Integers.writeInt24bit(payload, index, data);
+	}
+
+	public void append_long(long data) {
+		index += Integers.writeLong(payload, index, data);
+	}
+
+	public void append_short(short data) {
+		index += Integers.writeShort(payload, index, data);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/DefaultSerializer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/EmptyPayloadCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/EmptyPayloadCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/EmptyPayloadCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,107 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Command;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class EmptyPayloadCommand implements Command {
+
+	private byte id;
+	private byte[] manufacturerId;
+	private boolean isClientServerDirection;
+	private boolean isClusterSpecific;
+	private boolean isManufacturerExtension;
+	private byte[] allowedResponseIds;
+	protected byte[] payload = null;	
+	protected int freeIdxPayload = 0;
+	
+
+	public EmptyPayloadCommand() {
+	}
+
+	public byte[] getAllowedResponseId() {
+		return allowedResponseIds;
+	}
+	
+	protected EmptyPayloadCommand setAllowedResponseId(byte[] allowedResponseIds){
+		this.allowedResponseIds = allowedResponseIds;
+		return this;	
+	}
+
+	public byte getHeaderCommandId() {
+		return id;
+	}
+	
+	public EmptyPayloadCommand setId(byte id){
+		this.id = id;
+		return this;	
+	}
+
+	public byte[] getManufacturerId() {
+		return manufacturerId;
+	}
+	
+	protected EmptyPayloadCommand setManufacturerId(byte[] manufacturerId){
+		this.manufacturerId = manufacturerId;
+		return this;	
+	}
+
+	public boolean isClientServerDirection() {
+		return isClientServerDirection;
+	}
+	
+	public EmptyPayloadCommand setClientServerDirection(boolean isClientServerDirection){
+		this.isClientServerDirection = isClientServerDirection;
+		return this;	
+	}
+
+	public boolean isClusterSpecific() {
+		return isClusterSpecific;
+	}
+	public EmptyPayloadCommand setClusterSpecific(boolean isClusterSpecific){
+		this.isClusterSpecific = isClusterSpecific;
+		return this;	
+	}
+
+	public boolean isManufacturerExtension() {
+		return isManufacturerExtension;
+	}
+	
+	public EmptyPayloadCommand setManufacturerExtension(boolean isManufacturerExtension){
+		this.isManufacturerExtension = isManufacturerExtension;
+		return this;	
+	}
+	
+	public  byte[] getPayload() {
+		if( payload == null ) {
+			payload = new byte[0];
+		}
+		return payload;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/EmptyPayloadCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,109 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.global.DefaultResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.global.DefaultResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ResponseImpl implements Response {
+
+	protected ZCLHeader header;
+	private byte[] payload;
+	
+	public ResponseImpl(Cluster cluster, short expectedClusterId) throws ZigBeeClusterException{		
+		if (expectedClusterId != cluster.getId()){
+			throw new ZigBeeClusterException("Expected Response for cluster Id: " + expectedClusterId + " but received message for cluster Id: "+cluster.getId());
+		}
+		ZCLFrame frame = new ZCLFrame(cluster);
+		header = frame.getHeader();
+		payload = frame.getPayload();
+	}
+	
+	public ResponseImpl(Response response){
+		header = response.getZCLHeader();
+		payload = response.getPayload();
+	}
+
+	public byte getHeaderCommandId() {
+		return header.getCommandId();
+	}
+	
+	public byte[] getManufacturerId() {
+		return header.getManufacturerId();
+	}
+	
+	public boolean isClientServerDirection() {
+		return header.getFramecontrol().isClientServerDirection();
+	}
+	
+	public boolean isClusterSpecific() {
+		return header.getFramecontrol().isClusterSpecificCommand();
+	}
+	
+	public boolean isManufacturerExtension() {
+		return header.getFramecontrol().isManufacturerExtension();
+	}	
+
+	public boolean isDefaultResponseEnabled() {
+		return header.getFramecontrol().isDefaultResponseEnabled();
+	}
+
+	public ZCLHeader getZCLHeader() {
+		return header;
+	}
+
+	public byte[] getPayload() {
+		return payload;
+	}
+
+	public static void checkGeneralCommandFrame(Response response, byte expectedCommandId) throws ZigBeeClusterException{
+		if (response.getZCLHeader().getFramecontrol().isClusterSpecificCommand()){
+			throw new ZigBeeClusterException(
+					"Received response is not a General Command Frame !");
+		}		
+		byte commandId = response.getHeaderCommandId();
+		if (commandId != expectedCommandId) {
+			if (commandId == DefaultResponse.ID){
+				DefaultResponse  defaultResponse = new DefaultResponseImpl(response);
+				throw new ZigBeeClusterException(
+						"Expected GeneralCommandFrame ("+ expectedCommandId +") but received a DefaultResponse" 
+						+ "\nSTATUS:" +defaultResponse.getStatus() +" CMD:"+ defaultResponse.getCommandId()
+						,response);
+			}
+			throw new ZigBeeClusterException(
+					"Expected GeneralCommandFrame ("+ expectedCommandId +") but received:" +commandId
+					,response);
+		}
+
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionBase.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionBase.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionBase.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,230 @@
+/*
+   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.zcl.library.impl.core;
+
+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.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ReportListener;
+import it.cnr.isti.zigbee.zcl.library.api.core.Subscription;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.global.AttributeReport;
+import it.cnr.isti.zigbee.zcl.library.impl.global.reporting.ReportAttributesCommand;
+
+import java.util.ArrayList;
+import java.util.Dictionary;
+import java.util.Hashtable;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.6.0
+ *
+ */
+public abstract class SubscriptionBase implements Subscription {
+
+	private final Logger log = LoggerFactory.getLogger(SubscriptionBase.class);
+	
+	protected final ArrayList<ReportListener> listeners = new ArrayList<ReportListener>();
+	protected final ReportListenerNotifier bridge = new ReportListenerNotifier(); 
+	protected final ZigBeeDevice device;
+	protected final ZCLCluster cluster;
+	protected final Attribute attribute;
+	
+	protected int max =  Subscription.DEFAULT_MAX_REPORTING_INTERVAL; 
+	protected int min =  Subscription.DEFAULT_MIN_REPORTING_INTERVAL; 
+		
+	protected class ReportListenerNotifier implements ClusterListner {
+
+		public void handleCluster(ZigBeeDevice device, Cluster c) {
+			try {
+				ResponseImpl response = new ResponseImpl(c, cluster.getId());
+				AttributeReport[] reports = new ReportAttributesCommand(response).getAttributeReports();
+				Dictionary<Attribute, Object> event = new Hashtable<Attribute, Object>();
+				for (int i = 0; i < reports.length; i++) {
+					event.put(
+							cluster.getAttribute(reports[i].getAttributeId()), 
+							reports[i].getAttributeData() 
+					);
+				}
+				ArrayList<ReportListener> localCopy;
+				synchronized (listeners) {
+					localCopy = new ArrayList<ReportListener>(listeners);					
+				}
+				log.debug("Notifying {} ReportListener", localCopy.size());
+				for (ReportListener reportListner : localCopy) {
+					try{
+						log.debug("Notifying {}:{}", reportListner.getClass().getName(), reportListner);
+						reportListner.receivedReport(event);
+					}catch(Exception e){
+						log.error("Error while notifying {}:{} caused by {}",new Object[]{
+								reportListner.getClass().getName(), reportListner, e.getStackTrace() 
+						});
+					}
+				}
+				
+			} catch (ZigBeeClusterException e) {
+				e.printStackTrace();
+			}
+		}
+
+		public ClusterFilter getClusterFilter() {
+			return SubscriptionClusterFilter.FILTER;
+		}
+
+		public void setClusterFilter(ClusterFilter filter) {			
+		}
+		
+	}
+	
+	public SubscriptionBase(final ZigBeeDevice zb, final ZCLCluster c, final Attribute attrib) {
+		device = zb;
+		cluster = c;
+		attribute = attrib;
+	}
+	
+	private boolean doBindToDevice() {
+		try {
+			return device.bind( cluster.getId() );
+		} catch (ZigBeeBasedriverException e) {
+			log.debug("Unable to bind to device {} on cluster {}", device, cluster.getId());
+			log.error("Binding failed", e);
+			return false;
+		}
+	}
+
+	private boolean doUnbindToDevice() {
+		try {
+			return device.unbind( cluster.getId() );
+		} catch (ZigBeeBasedriverException e) {
+			log.debug("Unable to bind to device {} on cluster {}", device, cluster.getId());
+			log.error("Binding failed", e);
+			return false;
+		}
+	}
+	
+	protected abstract boolean doConfigureServer() throws ZigBeeClusterException;
+	
+	public boolean addReportListner(ReportListener listener) {
+		synchronized (listeners) {
+			if ( listeners.size() == 0 ) {
+				if( ! doBindToDevice() ) {
+					return false;
+				}
+				try {
+					doConfigureServer();
+				} catch (ZigBeeClusterException e) {
+					log.error("Unable to configure server for Reporting", e);
+					return false;
+				}
+				device.addClusterListener(bridge);
+			}
+			listeners.add(listener);
+		}
+		return true;
+	}
+
+	public void clear() {
+		if ( doUnbindToDevice() == true ) { 
+			synchronized (listeners) {
+				listeners.clear();
+			}
+		}
+	}
+
+	public int getMaximumReportingInterval() {
+		// TODO Auto-generated method stub
+		return 0;
+	}
+
+	public int getMinimumReportingInterval() {
+		// TODO Auto-generated method stub
+		return 0;
+	}
+
+	public boolean removeReportListner(ReportListener listener) {
+		synchronized (listeners) {
+			if ( listeners.size() == 1 ) {
+				if( ! doUnbindToDevice() ) {
+					return false;
+				}
+				//TODO Change the configuration only if there were no subscriber
+				try {
+					doConfigureServer();
+				} catch (ZigBeeClusterException e) {
+					log.error("Unable to configure server for Reporting", e);
+					return false;
+				}
+				device.removeClusterListener(bridge);
+			}
+			listeners.remove(listener);
+		}
+		return true;
+	}
+
+	public int setMaximumReportingInterval(int value) {
+		//TODO Check the real value
+		max = value;
+		return max;
+	}
+
+	public int setMinimumReportingInterval(int value) {
+		min = value;
+		return min;
+	}
+
+	public int getReportListenersCount() {
+		synchronized (listeners) {
+			return listeners.size();
+		}
+	}
+
+	public boolean isActive() {
+		synchronized (listeners) {
+			return listeners.size() == 0;
+		}
+	}
+	
+	public boolean updateConfiguration() {
+		try{
+			if( isActive() ) {
+				return doConfigureServer();
+			} else {
+				return true;
+			}
+		}catch (Exception e) {
+			log.error("Unable to update Report configuration");
+			return false;
+		}
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionBase.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionClusterFilter.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionClusterFilter.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionClusterFilter.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,59 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.api.ClusterFilter;
+import it.cnr.isti.zigbee.zcl.library.impl.global.reporting.ReportAttributesCommand;
+
+/**
+ * This class should filter out all the ZigBee cluster that do not belong to the<br>
+ * {@link ReportAttributesCommand} type, by checking the cluster data itself.<br>
+ * <br>
+ * <b>NOTE:</b>to use this class the {@link #FILTER} constant should be used
+ * 
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.3.0
+ *
+ */
+public class SubscriptionClusterFilter implements ClusterFilter {
+
+	/**
+	 * Singelton instance of the filter
+	 */
+	public final static SubscriptionClusterFilter FILTER = new SubscriptionClusterFilter();
+	
+	private SubscriptionClusterFilter() {
+		
+	}
+	
+	public boolean match(Cluster cluster) {
+		ZCLFrame frame = new ZCLFrame(cluster);
+		return frame.getHeader().getCommandId() == ReportAttributesCommand.ID
+		&& !frame.getHeader().getFramecontrol().isClusterSpecificCommand();
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionClusterFilter.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,91 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.api.ZigBeeBasedriverException;
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+import it.cnr.isti.zigbee.zcl.library.api.core.Subscription;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.global.AttributeReportingConfigurationRecord;
+import it.cnr.isti.zigbee.zcl.library.api.global.AttributeStatusRecord;
+import it.cnr.isti.zigbee.zcl.library.impl.ClusterImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.reporting.AttributeReportingConfigurationRecordImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.reporting.ConfigureReportingCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.global.reporting.ConfigureReportingResponseImpl;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public class SubscriptionImpl extends SubscriptionBase implements Subscription {
+
+	private final Logger log = LoggerFactory.getLogger(SubscriptionImpl.class);
+			
+	public SubscriptionImpl(final ZigBeeDevice zb, final ZCLCluster c, final Attribute attrib) {
+		super(zb,c,attrib);
+	}
+	
+	protected boolean doConfigureServer() throws ZigBeeClusterException {
+		log.debug(
+				"Subscring to discrete attibute {} ( {} )with the following parameter min = {}, max = {} ",
+				new Object[]{attribute.getName(), attribute.getId(), min, max}
+		);
+		
+		AttributeReportingConfigurationRecordImpl config = new AttributeReportingConfigurationRecordImpl(
+				attribute, 0x00, max, min, null, max 
+		);
+		ConfigureReportingCommand cmd = new ConfigureReportingCommand(
+				new AttributeReportingConfigurationRecord[]{config}
+		);
+
+		final ZCLFrame frame = new ZCLFrame(cmd, true);
+		final ClusterImpl input = new ClusterImpl(cluster.getId(),frame);
+		Cluster cluster = null;
+		try {
+			cluster = device.invoke(input);
+			final ConfigureReportingResponseImpl response = new ConfigureReportingResponseImpl(
+					new ResponseImpl(cluster,cluster.getId()), new Attribute[]{attribute}
+			);
+			final AttributeStatusRecord results = response.getAttributeStatusRecord()[0];
+			if ( results.getStatus() != 0 ) {
+				throw new ZigBeeClusterException("ConfigureReporting answered with a Failed status: "+Status.getStatus(results.getStatus()));
+			}
+		} catch (ZigBeeBasedriverException e) {
+			throw new ZigBeeClusterException(e);
+		}
+		
+		return true;		
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/SubscriptionImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLClusterBase.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLClusterBase.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLClusterBase.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,131 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.api.ZigBeeBasedriverException;
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.Command;
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Subscription;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZCLCluster;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.impl.ClusterImpl;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+
+/**
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public abstract class ZCLClusterBase implements ZCLCluster {
+
+	private ZigBeeDevice zbDevice;
+	private boolean isDefaultResponseEnabled;
+	private HashMap<Integer, Attribute> attributes;
+
+	public  ZCLClusterBase(ZigBeeDevice zbDevice){
+		this.zbDevice = zbDevice;
+	}
+
+	public abstract short getId();
+	public abstract String getName();
+	public abstract Attribute[] getStandardAttributes() ;
+
+	protected ZigBeeDevice getZigBeeDevice() {
+		return zbDevice;
+	}
+
+	public void enableDefaultResponse() {
+		isDefaultResponseEnabled = true;
+	}
+
+	public boolean isDefaultResponseEnabled() {
+		return isDefaultResponseEnabled;
+	}
+
+	public Attribute getAttribute(int id) {
+		if ( attributes ==  null ) {
+			attributes = new HashMap<Integer, Attribute>();
+			Attribute[] list = getAvailableAttributes();
+			for (int i = 0; i < list.length; i++) {
+				attributes.put(list[i].getId(), list[i]);
+			}
+		}
+
+		return attributes.get(id);
+	}
+
+	public Attribute[] getAvailableAttributes() {
+		//TODO use Discovery Attribute command to find the real attribute
+		return getStandardAttributes();
+	}
+
+	public int getManufacturerId() {
+		return -1;
+	}
+
+	public Response invoke(Command cmd) throws ZigBeeClusterException {
+		return invoke(cmd, !isDefaultResponseEnabled);
+	}
+
+	public Response invoke(Command cmd, boolean suppressResponse) throws ZigBeeClusterException  {
+		ZCLFrame inFrame = new ZCLFrame(cmd, isDefaultResponseEnabled);
+		Cluster input = new ClusterImpl(getId(),inFrame);
+		if (suppressResponse) {
+			try {
+				zbDevice.send(input);
+				return null;
+			} catch (ZigBeeBasedriverException e) {
+				throw new ZigBeeClusterException(e);
+			}
+		} else{
+			Cluster cluster;
+			try {
+				cluster = zbDevice.invoke(input);
+				Response response = new ResponseImpl(cluster,getId());
+				return response;
+			} catch (ZigBeeBasedriverException e) {
+				throw new ZigBeeClusterException(e);
+			}
+		}
+	}
+
+	public Subscription[] getActiveSubscriptions() {
+		final ArrayList<Subscription> actives = new ArrayList<Subscription>();
+		final Attribute[] attributes = getAvailableAttributes();
+		for (int i = 0; i < attributes.length; i++) {
+			final Subscription subscription = attributes[i].getSubscription(); 
+			if( subscription != null ){
+				actives.add(subscription);
+			}
+		}
+		return actives.toArray(new Subscription[]{});
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLClusterBase.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLFrame.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLFrame.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLFrame.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,80 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.zcl.library.api.core.Command;
+ /**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ZCLFrame {
+
+	private ZCLHeader header;
+	private byte[] payload;
+	private byte[] frame;
+	
+	public ZCLFrame(Cluster cluster) {
+		byte[] frame = cluster.getClusterMsg();
+		header = new ZCLHeader(frame);
+		
+		int srcPos = header.size(); 
+		int lenght = frame.length - header.size();
+		payload = new byte[lenght];
+		System.arraycopy(frame, srcPos, payload, 0, lenght);
+	}
+
+	public ZCLFrame(Command cmd, boolean isEnableddefaultResponse) {
+		header = new ZCLHeader(cmd, isEnableddefaultResponse);
+		payload = cmd.getPayload();
+		frame = createFrame();
+	}
+	
+	public ZCLHeader getHeader(){
+		return header;
+	}
+	
+	public byte[] getPayload(){
+		return payload;
+	}
+	
+	private byte[] createFrame(){
+		byte[] frame = new byte[header.size() + payload.length];
+		System.arraycopy(header.toByte(), 0, frame, 0, header.size());
+		System.arraycopy(payload, 0, frame, header.size(), payload.length);
+		return frame;
+	}
+	
+   public byte[] toByte(){
+	   return frame;
+   }
+	
+	public int size(){
+		return toByte().length;
+	}
+
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLFrame.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLFrameControl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLFrameControl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLFrameControl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,105 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Command;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ZCLFrameControl {
+	public static final byte NULL_BYTE = 0x00;  				//0b0000_0000
+
+	public static final byte FRAME_TYPE_MASK = (byte) 0x03;  	//0b0000_0011
+	public static final byte MANUFACTURER_MASK = 0x04;  		//0b0000_0100
+	public static final byte DIRECTION_MASK = 0x08;  			//0b0000_1000
+	public static final byte RESPONSE_TYPE_MASK = 0x10;  		//0b0001_0000
+
+	public static final byte CLUSTER_COMMAND = 0x01;			//0b0000_0001
+	public static final byte MANUFACTURER_EXT = 0x04;			//0b0000_0100
+	public static final byte SERVER_CLIENT_DIRECTION = 0x08;	//0b0001_1000
+	public static final byte DISABLE_DEFAULT_RESPONSE = 0x10;	//0b0001_0000
+	
+	private boolean isClusterSpecificCommand;
+	private boolean isManufacturerExtension;
+	private boolean isClientServerDirection;
+	private boolean isDefaultResponseEnabled;
+	private byte frameControl;
+
+	public ZCLFrameControl(Command cmd,boolean isDefaultResponseEnabled ) {
+		
+		byte frameType = cmd.isClusterSpecific()? CLUSTER_COMMAND : NULL_BYTE;
+		byte manufacturerBit = cmd.isManufacturerExtension()? MANUFACTURER_EXT : NULL_BYTE;
+		byte directionBit = cmd.isClientServerDirection()? NULL_BYTE : SERVER_CLIENT_DIRECTION;
+		byte defaultResponse = isDefaultResponseEnabled ? NULL_BYTE : DISABLE_DEFAULT_RESPONSE;
+		
+		isClusterSpecificCommand = cmd.isClusterSpecific();		
+		isManufacturerExtension = cmd.isManufacturerExtension();				
+		isClientServerDirection = cmd.isClientServerDirection();		
+		this.isDefaultResponseEnabled =isDefaultResponseEnabled;
+		
+		frameControl = (byte) (frameType | manufacturerBit | directionBit | defaultResponse);
+	}
+	
+	
+	public ZCLFrameControl(byte frameControl) {
+		this.frameControl = frameControl;
+		
+		byte frameType = (byte) (frameControl & FRAME_TYPE_MASK)  ;
+		byte manufacturerBit = (byte) (frameControl & MANUFACTURER_MASK);
+		byte directionBit = (byte) (frameControl & DIRECTION_MASK);
+		byte defaultResponse = (byte) (frameControl & RESPONSE_TYPE_MASK);
+		
+		isClusterSpecificCommand = (frameType & CLUSTER_COMMAND) > 0 ;
+		
+		isManufacturerExtension = (manufacturerBit & MANUFACTURER_EXT)> 0 ;
+				
+		isClientServerDirection = !((directionBit & SERVER_CLIENT_DIRECTION) > 0) ;
+		
+		isDefaultResponseEnabled =! ((defaultResponse & DISABLE_DEFAULT_RESPONSE)> 0) ;
+	}
+	
+	public boolean isClusterSpecificCommand() {
+		return isClusterSpecificCommand;
+	}
+	
+	public boolean isManufacturerExtension() {
+		return isManufacturerExtension;
+	}
+	
+	public boolean isClientServerDirection() {
+		return isClientServerDirection;
+	}
+	
+	public boolean isDefaultResponseEnabled() {
+		return isDefaultResponseEnabled;
+	}
+	
+	public byte toByte(){
+		return frameControl;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLFrameControl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLHeader.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLHeader.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLHeader.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,129 @@
+/*
+   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.zcl.library.impl.core;
+
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLLayer;
+import it.cnr.isti.zigbee.zcl.library.api.core.Command;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ZCLHeader {
+	
+	private ZCLFrameControl frameControl;
+	private byte[] manufacturerId;
+	private byte transcationId;
+	private byte commandId;
+	
+	
+	private Command cmd;	
+	private byte[] header;
+	private byte[] frame;
+
+	public ZCLHeader(Command cmd, boolean isDefaultResponseEnabled) {
+		this.cmd = cmd;		
+		
+		frameControl = new ZCLFrameControl(cmd,isDefaultResponseEnabled);
+		manufacturerId = cmd.getManufacturerId();
+		transcationId = ZCLLayer.getTranscactionId();
+		commandId = cmd.getHeaderCommandId();
+		
+		header = createHeader();
+	}
+	
+	private byte[] createHeader(){
+		byte[] newHeader;
+		if (cmd.isManufacturerExtension()){
+			newHeader = new byte[5];
+			newHeader[0] = frameControl.toByte();
+			newHeader[1] = manufacturerId[0];
+			newHeader[2] = manufacturerId[1];
+			newHeader[3] = transcationId;
+			newHeader[4] = commandId;
+		}
+		else {
+			newHeader = new byte[3];
+			newHeader[0] = frameControl.toByte();
+			newHeader[1] = transcationId;
+			newHeader[2] = commandId;			
+		}
+		return newHeader;
+	}
+	
+	public ZCLHeader(byte[] frame) {
+		this.frame = frame;
+		frameControl = new ZCLFrameControl(frame[0]);
+		header = copyHeader(frameControl.isManufacturerExtension());			
+	}
+	
+  
+	private byte[] copyHeader(boolean extendedHeader) {
+		byte[] resultHeader;
+		if(extendedHeader){
+			resultHeader = new byte[5];
+			System.arraycopy(frame, 0, resultHeader, 0, 5);
+			manufacturerId = new byte[2];
+			manufacturerId[0] = resultHeader[1];
+			manufacturerId[1] = resultHeader[2];
+			transcationId = resultHeader[3];
+			commandId = resultHeader[4];	
+		} else{
+			resultHeader = new byte[3];
+			System.arraycopy(frame, 0, resultHeader, 0, 3);
+			transcationId = resultHeader[1];
+			commandId = resultHeader[2];				
+		}
+		return resultHeader;
+	}
+
+
+
+	public ZCLFrameControl getFramecontrol(){
+		return frameControl;
+	}
+	
+	public byte[] getManufacturerId() {
+		return manufacturerId;
+	}
+	
+	public byte getTransactionId() {
+		return transcationId;
+	}
+	
+	public byte	 getCommandId() {
+		return commandId;
+	}
+		
+	
+	public byte[] toByte() {
+		return header;
+	}
+	
+	public int size(){
+		return toByte().length;
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLHeader.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLLayer.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLLayer.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLLayer.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,39 @@
+/*
+   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.zcl.library.impl.core;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ZCLLayer {
+
+	static int transactionId;
+	
+	public synchronized static byte getTranscactionId() {
+		return (byte) transactionId++;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZCLLayer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZigBeeType.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZigBeeType.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZigBeeType.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,109 @@
+/*
+   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.zcl.library.impl.core;
+
+import java.util.Hashtable;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public enum ZigBeeType {
+	
+	Boolean(0x10, 1, false, Boolean.class),
+	Data8bit(0x08, 1, false, Integer.class),
+	Data16bit(0x09, 2, false, Integer.class),
+	Data24bit(0x0a, 3, false, Integer.class),
+	Data32bit(0x0b, 4, false, Integer.class),
+	Bitmap32bit(0x1b, 4, false, Integer.class),
+	Bitmap24bit(0x1a, 3, false, Integer.class),
+	Bitmap16bit(0x19, 2, false, Integer.class),
+	Bitmap8bit(0x18, 1, false, Integer.class),
+	UnsignedInteger8bit(0x20, 1, true, Integer.class),
+	UnsignedInteger16bit(0x21, 2, true, Integer.class),
+	UnsignedInteger24bit(0x22, 3, true, Integer.class),
+	UnsignedInteger32bit(0x23, 4, true, Long.class),
+	CharacterString(0x42, -1, false, String.class),
+	Enumeration8bit(0x30, 1, false, Byte.class),
+	Enumeration16bit(0x31, 2, false, Byte.class),
+	IEEEAddress(0xf0, -1, false, String.class), // TODO: Check 
+	SignedInteger8bit(0x28, 1, true, Integer.class),
+	SignedInteger16bit(0x29, 2, true, Integer.class),
+	SignedInteger24bit(0x2a, 3, true, Integer.class),
+	SignedInteger32bit(0x2b, 4, true, Integer.class);
+	
+	
+	static Hashtable<Byte, ZigBeeType> MAP;
+	
+	private int id;
+	private int length;
+	private boolean analog;
+	private Class javaClass; 
+
+	private ZigBeeType(int id, int length, boolean analog, Class javaClass){
+		this.id = id;
+		this.length = length;
+		this.analog = analog;
+		this.javaClass = javaClass;
+		if (ZigBeeType.getMap() == null) ZigBeeType.setMap();
+		ZigBeeType.getMap().put(Byte.valueOf((byte) id),this);
+	}
+
+	public int getId() {
+		return id;
+	}
+
+	/**
+	 * 
+	 * @return the length, in bytes, required for storing the data. <code>-1</code> if and
+	 * 	only if the type has a variable length
+	 */
+	public int getLength() {
+		return length;
+	}
+
+	public boolean isAnalog() {
+		return analog;
+	}
+	
+	public Class getJavaClass() {
+		return javaClass;
+	}
+
+	public static ZigBeeType getType(byte b){
+		return MAP.get(Byte.valueOf(b));
+	}
+	
+	private static Hashtable<Byte, ZigBeeType> getMap(){
+		return MAP;
+	}
+	
+	private static void setMap(){
+		 MAP = new Hashtable<Byte, ZigBeeType>();
+	}
+
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/core/ZigBeeType.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/AlarmsCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/AlarmsCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/AlarmsCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,214 @@
+/*
+   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.zcl.library.impl.general;
+
+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.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.general.Alarms;
+import it.cnr.isti.zigbee.zcl.library.api.general.alarms.AlarmListener;
+import it.cnr.isti.zigbee.zcl.library.api.general.alarms.AlarmResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.EmptyPayloadCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+import it.cnr.isti.zigbee.zcl.library.impl.general.alarms.AlarmResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.alarms.AlarmsClusterFilter;
+import it.cnr.isti.zigbee.zcl.library.impl.general.alarms.GetAlarmResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.alarms.ResetAlarmCommand;
+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</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AlarmsCluster extends ZCLClusterBase implements Alarms{
+
+	private final Logger log = LoggerFactory.getLogger(AlarmsCluster.class);
+
+	private final AttributeImpl alarmCount;
+
+	private final Attribute[] attributes;	
+
+	private final ArrayList<AlarmListener> listeners = new ArrayList<AlarmListener>();
+
+	private AlarmsListenerNotifier bridge;
+
+	private static final EmptyPayloadCommand RESET_ALL_ALARMS = new EmptyPayloadCommand()
+	.setId(Alarms.RESET_ALL_ALARMS_ID)
+	.setClientServerDirection(true)
+	.setClusterSpecific(true)
+	.setManufacturerExtension(false);
+
+	private static final EmptyPayloadCommand GET_ALARM = new EmptyPayloadCommand()
+	.setId(Alarms.GET_ALARM_ID)
+	.setClientServerDirection(true)
+	.setClusterSpecific(true)
+	.setManufacturerExtension(false);
+
+	private static final EmptyPayloadCommand RESET_ALARM_LOG = new EmptyPayloadCommand()
+	.setId(Alarms.RESET_ALARM_LOG_ID)
+	.setClientServerDirection(true)
+	.setClusterSpecific(true)
+	.setManufacturerExtension(false);
+
+
+	private class AlarmsListenerNotifier implements ClusterListner {
+
+		public void handleCluster(ZigBeeDevice device, Cluster c) {
+			try {
+				ResponseImpl response = new ResponseImpl(c, ID);
+				AlarmResponse alarm = new AlarmResponseImpl(response);
+				ArrayList<AlarmListener> localCopy;
+				synchronized (listeners) {
+					localCopy = new ArrayList<AlarmListener>(listeners);					
+				}
+				log.debug("Notifying {} AlarmListener", localCopy.size());
+				for (AlarmListener alarmListner : localCopy) {
+					try{
+						log.debug("Notifying {}:{}", alarmListner.getClass().getName(), alarmListner);
+						alarmListner.alarm(alarm.getAllarmCode(), alarm.getClusterID());
+					}catch(Exception e){
+						log.error("Error while notifying {}:{} caused by {}",new Object[]{
+								alarmListner.getClass().getName(), alarmListner, e.getStackTrace() 
+						});
+					}
+				}
+
+			} catch (ZigBeeClusterException e) {
+				e.printStackTrace();
+			}
+		}
+
+		public ClusterFilter getClusterFilter() {
+			return AlarmsClusterFilter.FILTER;
+		}
+
+		public void setClusterFilter(ClusterFilter filter) {			
+		}
+
+	}
+
+
+	public AlarmsCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		alarmCount = new AttributeImpl(zbDevice,this,Attributes.ALLARM_COUNT);
+		attributes = new AttributeImpl[]{alarmCount};
+		bridge = new AlarmsListenerNotifier();
+	}
+
+	public short getId() {
+		return Alarms.ID;
+	}
+
+	public String getName() {
+		return Alarms.NAME;
+	}
+
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeAlarmCount() {
+		return alarmCount;
+	}
+
+	public boolean addAlarmListerner(AlarmListener listener) {
+		synchronized (listeners) {
+			if ( listeners.size() == 0 ){
+				try {
+					getZigBeeDevice().bind(ID);
+				} catch (ZigBeeBasedriverException e) {
+					log.error("Unable to bind to device for Alarms reporting", e);
+					return false;
+				}
+				if ( getZigBeeDevice().addClusterListener(bridge) == false ) {
+					log.error("Unable to register the cluster listener for Alarms reporting");
+					return false;
+				}
+			}
+			listeners.add(listener);
+			return true;		
+		}
+	}
+
+	public boolean removeAlarmListerner(AlarmListener 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 Alarms reporting", e);
+					return false;
+				}
+				if ( getZigBeeDevice().removeClusterListener(bridge) == false ) {
+					log.error("Unable to unregister the cluster listener for Alarms reporting");
+					return false;
+				}
+			}
+			return removed;		
+		}
+	}
+
+	public Response getAlarm() throws ZigBeeClusterException {
+		enableDefaultResponse();
+		Response response = invoke(GET_ALARM);
+		if ( response.getZCLHeader().getFramecontrol().isClusterSpecificCommand() ){
+			return new GetAlarmResponseImpl(response);
+		}else{
+			return new DefaultResponseImpl(response);
+		}
+	}
+
+	public Response resetAlarm(int clusterId, int attributeId) throws ZigBeeClusterException {
+		ResetAlarmCommand resetAlarmCmd = new ResetAlarmCommand((byte)clusterId,(short)attributeId);
+		Response response = invoke(resetAlarmCmd);
+		return  new DefaultResponseImpl(response);	    
+	}
+
+	public Response resetAlarmLog() throws ZigBeeClusterException {
+		enableDefaultResponse();
+		Response response = invoke(RESET_ALARM_LOG);
+		return new DefaultResponseImpl(response);
+	}
+
+	public Response resetAllAlarms() throws ZigBeeClusterException {
+		enableDefaultResponse();
+		Response response = invoke(RESET_ALL_ALARMS);
+		return new DefaultResponseImpl(response);
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/AlarmsCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/BasicCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/BasicCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/BasicCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,156 @@
+/*
+   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.zcl.library.impl.general;
+
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+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.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.general.Basic;
+import it.cnr.isti.zigbee.zcl.library.api.global.DefaultResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.EmptyPayloadCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+import it.cnr.isti.zigbee.zcl.library.impl.global.DefaultResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class BasicCluster extends ZCLClusterBase implements Basic {
+
+	private final AttributeImpl zclVersion;  
+	private final AttributeImpl applicationVersion;
+	private final AttributeImpl stackVersion;
+	private final AttributeImpl hwVersion;
+	private final AttributeImpl manufacturerName;
+	private final AttributeImpl modelIdentifier;
+	private final AttributeImpl dataCode;
+	private final AttributeImpl powerSource;
+
+	private final AttributeImpl locationDescription;
+	private final AttributeImpl physicalEnviroment;
+	private final AttributeImpl deviceEnabled;
+	private final AttributeImpl alarmMask;
+
+	private final Attribute[] attributes;
+
+	public BasicCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		zclVersion = new AttributeImpl(zbDevice,this,Attributes.ZCL_VERSION);
+		applicationVersion = new AttributeImpl(zbDevice,this,Attributes.APPLICATION_VERSION);
+		stackVersion = new AttributeImpl(zbDevice,this,Attributes.STACK_VERSION);
+		hwVersion = new AttributeImpl(zbDevice,this,Attributes.HW_VERSION);
+		manufacturerName = new AttributeImpl(zbDevice,this,Attributes.MANUFACTURER_NAME);
+		modelIdentifier = new AttributeImpl(zbDevice,this,Attributes.MODEL_IDENTIFIER);
+		dataCode = new AttributeImpl(zbDevice,this,Attributes.DATA_CODE);
+		powerSource = new AttributeImpl(zbDevice,this,Attributes.POWER_SOURCE);
+		locationDescription = new AttributeImpl(zbDevice,this,Attributes.LOCATION_DESCRIPTION);
+		physicalEnviroment = new AttributeImpl(zbDevice,this,Attributes.PHISICAL_ENVIROMENT);
+		deviceEnabled = new AttributeImpl(zbDevice,this,Attributes.DEVICE_ENABLED);
+		alarmMask = new AttributeImpl(zbDevice,this,Attributes.ALARM_MASK);
+		attributes = new AttributeImpl[]{zclVersion, applicationVersion, stackVersion,
+				hwVersion, manufacturerName, modelIdentifier, dataCode, powerSource,
+				locationDescription, physicalEnviroment, deviceEnabled, alarmMask};
+	}
+
+	private static EmptyPayloadCommand CMD_RESET_TO_FACTORY_DEFAULT = new EmptyPayloadCommand()
+	.setId(Basic.RESET_TO_FACTORY_DEFAULT_ID)
+	.setClientServerDirection(true)
+	.setClusterSpecific(true)
+	.setManufacturerExtension(false);
+
+	@Override
+	public short getId() {
+		return Basic.ID;
+	}
+
+	@Override
+	public String getName() {
+		return Basic.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeAlarmMask() {
+		return alarmMask;
+	}
+
+	public Attribute getAttributeApplicationVersion() {
+		return alarmMask;
+	}
+
+	public Attribute getAttributeDateCode() {
+		return dataCode;
+	}
+
+	public Attribute getAttributeDeviceEnabled() {
+		return deviceEnabled;
+	}
+
+	public Attribute getAttributeHWVersion() {
+		return hwVersion;
+	}
+
+	public Attribute getAttributeLocationDescription() {
+		return locationDescription;
+	}
+
+	public Attribute getAttributeManufacturerName() {
+		return manufacturerName;
+	}
+
+	public Attribute getAttributeModelIdentifier() {
+		return modelIdentifier;
+	}
+
+	public Attribute getAttributePhysicalEnviroment() {
+		return physicalEnviroment;
+	}
+
+	public Attribute getAttributeStackVersion() {
+		return stackVersion;
+	}
+
+	public Attribute getAttributeZCLVersion() {
+		return zclVersion;
+	}
+
+	public Attribute getPowerSource() {
+		return powerSource;
+	}
+
+	public DefaultResponse resetToFactoryDefault() throws ZigBeeClusterException{
+		enableDefaultResponse();
+		Response response = invoke(CMD_RESET_TO_FACTORY_DEFAULT);
+		return new DefaultResponseImpl(response);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/BasicCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/DeviceTemperatureConfigurationCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/DeviceTemperatureConfigurationCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/DeviceTemperatureConfigurationCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,123 @@
+/*
+   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.zcl.library.impl.general;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.general.DeviceTemperatureConfiguration;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+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</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class DeviceTemperatureConfigurationCluster extends ZCLClusterBase
+		implements DeviceTemperatureConfiguration {
+	
+	private final AttributeImpl currentTemperature;
+	private final AttributeImpl minTempExperienced;
+	private final AttributeImpl maxTempExperienced;
+	private final AttributeImpl overTempTotalDwell;
+	private final AttributeImpl deviceTempAlarmMask;
+	private final AttributeImpl lowTempThreshold;
+	private final AttributeImpl highTempThreshold;
+	private final AttributeImpl lowTempDwellTripPoint;
+	private final AttributeImpl highTempDwellTripPoint;
+	
+	private final Attribute[] attributes;
+	
+	public DeviceTemperatureConfigurationCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		
+		currentTemperature = new AttributeImpl(zbDevice,this,Attributes.CURRENT_TEMPERATURE);
+		minTempExperienced = new AttributeImpl(zbDevice,this,Attributes.MIN_TEMP_EXPERIENCED);
+		maxTempExperienced = new AttributeImpl(zbDevice,this,Attributes.MAX_TEMP_EXPERIENCED);
+		overTempTotalDwell = new AttributeImpl(zbDevice,this,Attributes.OVER_TEMP_TOTAL_DWELL);
+		deviceTempAlarmMask = new AttributeImpl(zbDevice,this,Attributes.DEVICE_TEMP_ALARM_MASK);
+		lowTempThreshold = new AttributeImpl(zbDevice,this,Attributes.LOW_TEMP_THRESHOLD);
+		highTempThreshold = new AttributeImpl(zbDevice,this,Attributes.HIGH_TEMP_THRESHOLD);
+		lowTempDwellTripPoint = new AttributeImpl(zbDevice,this,Attributes.LOW_TEMP_DWELL_TRIP_POINT);
+		highTempDwellTripPoint = new AttributeImpl(zbDevice,this,Attributes.HIGH_TEMP_DWELL_TRIP_POINT);
+		
+		attributes = new AttributeImpl[]{currentTemperature, minTempExperienced, 
+				maxTempExperienced, overTempTotalDwell, deviceTempAlarmMask, 
+				lowTempThreshold,highTempThreshold,lowTempDwellTripPoint, 
+				highTempDwellTripPoint};
+		}
+
+	@Override
+	public short getId() {
+		return DeviceTemperatureConfiguration.ID;
+	}
+
+	@Override
+	public String getName() {
+		return DeviceTemperatureConfiguration.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeCurrentTemperature() {
+		return currentTemperature;
+	}
+
+	public Attribute getAttributeDeviceTempAlarmMask() {
+		return deviceTempAlarmMask;
+	}
+
+	public Attribute getAttributeHighTempDwellTripPoint() {
+		return highTempDwellTripPoint;
+	}
+
+	public Attribute getAttributeHighTempThreshold() {
+		return highTempThreshold;
+	}
+
+	public Attribute getAttributeLowTempDwellTripPoint() {
+		return lowTempDwellTripPoint;
+	}
+
+	public Attribute getAttributeLowTempThreshold() {
+		return lowTempThreshold;
+	}
+
+	public Attribute getAttributeMaxTempExperienced() {
+		return maxTempExperienced;
+	}
+
+	public Attribute getAttributeMinTempExperienced() {
+		return minTempExperienced;
+	}
+
+	public Attribute getAttributeOverTempTotalDwell() {
+		return overTempTotalDwell;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/DeviceTemperatureConfigurationCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/GroupsCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/GroupsCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/GroupsCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,126 @@
+/*
+   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.zcl.library.impl.general;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+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.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.general.Groups;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.EmptyPayloadCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+import it.cnr.isti.zigbee.zcl.library.impl.general.groups.AddGroupCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.groups.AddGroupIfIdentyfingCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.groups.AddGroupResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.groups.GetGroupMembershipCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.groups.RemoveGroupCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.groups.RemoveGroupResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.groups.ViewGroupCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.groups.ViewGroupResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.DefaultResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class GroupsCluster extends ZCLClusterBase implements Groups {
+
+	private final AttributeImpl nameSupport;
+	
+	private final Attribute[] attributes;
+		
+	private static EmptyPayloadCommand CMD_REMOVE_ALL_GROUP = new EmptyPayloadCommand()
+	.setId(Groups.REMOVE_ALL_GROUP_ID)
+	.setClientServerDirection(true)
+	.setClusterSpecific(true)
+	.setManufacturerExtension(false);
+	
+	
+	public GroupsCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		nameSupport = new AttributeImpl(zbDevice,this,Attributes.NAME_SUPPORT_GROUPS);
+		attributes = new AttributeImpl[]{nameSupport};
+	}
+	
+	@Override
+	public short getId() {
+		return Groups.ID;
+	}
+
+	@Override
+	public String getName() {
+		return Groups.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Response addGroup(int groupId) throws ZigBeeClusterException{
+		AddGroupCommand addGroupCmd = new AddGroupCommand(groupId);
+		Response response = invoke(addGroupCmd);
+		return  new AddGroupResponseImpl(response);
+	}
+
+	public Response addGroupIfIdentifying(int groupId, String name) throws ZigBeeClusterException{
+		enableDefaultResponse();
+		AddGroupIfIdentyfingCommand addGroupIfIdCMD = new AddGroupIfIdentyfingCommand(groupId,name);
+		Response response = invoke(addGroupIfIdCMD);
+		return new DefaultResponseImpl(response);
+	}
+
+	public Attribute getAttributeNameSupport() {
+		return nameSupport;
+	}
+
+	public Response getGroupMembership(int[] groupList) throws ZigBeeClusterException{
+		GetGroupMembershipCommand getGroupMemCmd = new GetGroupMembershipCommand(groupList);
+		Response response = invoke(getGroupMemCmd); 
+		return  new AddGroupResponseImpl(response);
+	}
+
+	public Response removeAllGroup() throws ZigBeeClusterException{
+		enableDefaultResponse();
+		Response response = invoke(CMD_REMOVE_ALL_GROUP); 
+		return  new DefaultResponseImpl(response);
+	}
+
+	public Response removeGroup(int groupId) throws ZigBeeClusterException{
+		RemoveGroupCommand removeGroupCmd = new RemoveGroupCommand(groupId);
+		Response response = invoke(removeGroupCmd);
+		return new RemoveGroupResponseImpl(response);
+	}
+
+	public Response viewGroup(int groupId) throws ZigBeeClusterException{
+		ViewGroupCommand viewGroupCmd = new ViewGroupCommand(groupId);
+		Response response = invoke(viewGroupCmd);
+		return new ViewGroupResponseImpl(response);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/GroupsCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/IdentifyCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/IdentifyCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/IdentifyCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,96 @@
+/*
+   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.zcl.library.impl.general;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+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.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.general.Identify;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.EmptyPayloadCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+import it.cnr.isti.zigbee.zcl.library.impl.general.identify.IdentifyCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.identify.IdentifyQueryResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.DefaultResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class IdentifyCluster extends ZCLClusterBase implements Identify {
+
+	private final AttributeImpl identifyTime;
+	
+	private final Attribute[] attributes;
+	
+	
+	
+	private static EmptyPayloadCommand CMD_IDENTIFY_QUERY = new EmptyPayloadCommand()
+		.setId(Identify.IDENTIFY_QUERY_ID)
+		.setClientServerDirection(true)
+		.setClusterSpecific(true)
+		.setManufacturerExtension(false);
+	
+	public IdentifyCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		identifyTime = new AttributeImpl(zbDevice,this,Attributes.IDENTIFY_TIME);
+		attributes = new AttributeImpl[]{identifyTime}; 
+	}
+	
+	@Override
+	public short getId() {
+		return Identify.ID;
+	}
+
+	@Override
+	public String getName() {
+		return Identify.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeIdentifyTime() {
+		return identifyTime;
+	}
+
+	public Response identify(int time) throws ZigBeeClusterException {
+		enableDefaultResponse();
+		IdentifyCommand identifyCmd = new IdentifyCommand(time);
+		Response response = invoke(identifyCmd);
+		return  new DefaultResponseImpl(response);
+	}
+
+	public Response identifyQuery() throws ZigBeeClusterException {
+		Response response = invoke(CMD_IDENTIFY_QUERY);
+		return  new IdentifyQueryResponseImpl(response);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/IdentifyCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/LevelControlCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/LevelControlCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/LevelControlCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,164 @@
+/*
+   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.zcl.library.impl.general;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+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.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.general.LevelControl;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.EmptyPayloadCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+import it.cnr.isti.zigbee.zcl.library.impl.general.level_control.MoveCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.level_control.MoveToLevelCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.level_control.StepCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.global.DefaultResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class LevelControlCluster extends ZCLClusterBase implements LevelControl {
+	
+	
+	
+	private final AttributeImpl currentLevel;
+	private final AttributeImpl remainingTime;
+	private final AttributeImpl onOffTransactionTime;
+	private final AttributeImpl onLevel;
+	
+	private final Attribute[] attributes;
+	
+	private static EmptyPayloadCommand CMD_STOP = new EmptyPayloadCommand()
+		.setId(LevelControl.STOP_ID)
+		.setClientServerDirection(true)
+		.setClusterSpecific(true)
+		.setManufacturerExtension(false);
+
+	private static EmptyPayloadCommand CMD_STOP_WITH_ONOFF = new EmptyPayloadCommand()
+		.setId(LevelControl.STOP_WITH_ONOFF_ID)
+		.setClientServerDirection(true)
+		.setClusterSpecific(true)
+		.setManufacturerExtension(false);
+	
+	
+	public LevelControlCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		currentLevel = new AttributeImpl(zbDevice,this,Attributes.CURRENT_LEVEL);
+		remainingTime = new AttributeImpl(zbDevice,this,Attributes.REMAINING_TIME);
+		onOffTransactionTime = new AttributeImpl(zbDevice,this,Attributes.ON_OFF_TRANSATION_TIME);
+		onLevel = new AttributeImpl(zbDevice,this,Attributes.ON_LEVEL);
+		attributes = new AttributeImpl[]{currentLevel, remainingTime, onOffTransactionTime, onLevel};
+	}
+	
+	@Override
+	public short getId() {
+		return LevelControl.ID;
+	}
+
+	@Override
+	public String getName() {
+		return LevelControl.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeCurrentLevel() {
+		return currentLevel;
+	}
+
+	public Attribute getAttributeOnLevel() {
+		return onLevel;
+	}
+
+	public Attribute getAttributeOnOffTransactionTime() {
+		return onOffTransactionTime;
+	}
+
+	public Attribute getAttributeRemainingTime() {
+		return remainingTime;
+	}
+	
+	public Response move(byte mode, short rate) throws ZigBeeClusterException{
+		enableDefaultResponse();
+		MoveCommand moveCmd = new MoveCommand(mode,rate);
+		Response response = invoke(moveCmd);
+		return new DefaultResponseImpl(response);
+	}
+
+	public Response moveWithOnOff(byte mode, short rate) throws ZigBeeClusterException {
+		enableDefaultResponse();
+		MoveCommand moveCmd = new MoveCommand(mode,rate,true);
+		Response response = invoke(moveCmd);
+		return new DefaultResponseImpl(response);
+	}
+	
+	public Response moveToLevel(short level, int time) throws ZigBeeClusterException{
+		enableDefaultResponse();
+		MoveToLevelCommand moveToLevCmd = new MoveToLevelCommand(level,time);
+		Response response = invoke(moveToLevCmd);
+		return new DefaultResponseImpl(response);
+	}
+
+	public Response moveToLevelWithOnOff(short level, int time) throws ZigBeeClusterException {
+		enableDefaultResponse();
+		MoveToLevelCommand moveToLevCmd = new MoveToLevelCommand(level,time,true);
+		Response response = invoke(moveToLevCmd);
+		return new DefaultResponseImpl(response);
+	}
+
+	public Response step(byte mode, short step, int time) throws ZigBeeClusterException{
+		enableDefaultResponse();
+		StepCommand stepCmd = new StepCommand(mode,step,time);
+		Response response = invoke(stepCmd);
+		return new DefaultResponseImpl(response);
+	}
+	
+	public Response stepWithOnOff(byte mode, short step, int time) throws ZigBeeClusterException {
+		enableDefaultResponse();
+		StepCommand stepCmd = new StepCommand(mode,step,time,true);
+		Response response = invoke(stepCmd);
+		return new DefaultResponseImpl(response);
+	}
+
+	public Response stop() throws ZigBeeClusterException{
+		enableDefaultResponse();
+		Response response = invoke(CMD_STOP);
+		return new DefaultResponseImpl(response);
+	}
+
+	public Response stopWithOnOff() throws ZigBeeClusterException {
+		enableDefaultResponse();
+		Response response = invoke(CMD_STOP_WITH_ONOFF);
+		return new DefaultResponseImpl(response);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/LevelControlCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/OnOffCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/OnOffCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/OnOffCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,115 @@
+/*
+   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.zcl.library.impl.general;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+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.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.general.OnOff;
+import it.cnr.isti.zigbee.zcl.library.api.global.DefaultResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.EmptyPayloadCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+import it.cnr.isti.zigbee.zcl.library.impl.global.DefaultResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class OnOffCluster extends ZCLClusterBase implements OnOff{
+	
+	private final AttributeImpl onOff;
+	
+	private final Attribute[] attributes;
+	
+	private static EmptyPayloadCommand CMD_ON = new EmptyPayloadCommand()
+								.setId(OnOff.ON_ID)
+								.setClientServerDirection(true)
+								.setClusterSpecific(true)
+								.setManufacturerExtension(false);
+	
+	private static EmptyPayloadCommand CMD_OFF = new EmptyPayloadCommand()
+								.setId(OnOff.OFF_ID)
+								.setClientServerDirection(true)
+								.setClusterSpecific(true)
+								.setManufacturerExtension(false);
+	
+	private static EmptyPayloadCommand CMD_TOGGLE = new EmptyPayloadCommand()
+								.setId(OnOff.TOGGLE_ID)
+								.setClientServerDirection(true)
+								.setClusterSpecific(true)
+								.setManufacturerExtension(false);
+								
+
+	public OnOffCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		onOff = new AttributeImpl(zbDevice,this,Attributes.ON_OFF);
+		attributes = new AttributeImpl[]{onOff};
+	}
+
+	@Override
+	public short getId() {
+		return OnOff.ID;
+	}
+
+	@Override
+	public String getName() {
+		return OnOff.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeOnOff() {
+		return onOff;
+	}
+
+	public DefaultResponse off() throws ZigBeeClusterException  {
+		enableDefaultResponse();
+		Response response = invoke(CMD_OFF);
+		return  new DefaultResponseImpl(response);
+	}
+
+	public DefaultResponse on() throws ZigBeeClusterException {
+		enableDefaultResponse();
+		Response response =  invoke(CMD_ON);
+		return  new DefaultResponseImpl(response);
+	}
+
+	public DefaultResponse toggle() throws ZigBeeClusterException{
+		enableDefaultResponse();
+		Response response =  invoke(CMD_TOGGLE);
+		return  new DefaultResponseImpl(response);
+
+	}
+
+
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/OnOffCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/OnOffSwitchConfigurationCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/OnOffSwitchConfigurationCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/OnOffSwitchConfigurationCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,76 @@
+/*
+   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.zcl.library.impl.general;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.general.OnOffSwitchConfiguration;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+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</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class OnOffSwitchConfigurationCluster extends ZCLClusterBase implements
+		OnOffSwitchConfiguration {
+	
+	private final AttributeImpl switchType;
+	private final AttributeImpl switchAction;
+	
+	private final Attribute[] attributes;
+
+	public OnOffSwitchConfigurationCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		switchType = new AttributeImpl(zbDevice,this,Attributes.SWITCH_TYPE);
+		switchAction = new AttributeImpl(zbDevice,this,Attributes.SWITCH_ACTIONS); 
+		attributes = new Attribute[]{switchType, switchAction};
+	}
+	
+	@Override
+	public short getId() {
+		return OnOffSwitchConfiguration.ID;
+	}
+
+	@Override
+	public String getName() {
+		return OnOffSwitchConfiguration.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeSwitchActions() {
+		return switchAction;
+	}
+
+	public Attribute getAttributeSwitchType() {
+		return switchType;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/OnOffSwitchConfigurationCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/PowerConfigurationCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/PowerConfigurationCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/PowerConfigurationCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,152 @@
+/*
+   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.zcl.library.impl.general;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.general.PowerConfiguration;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+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</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class PowerConfigurationCluster extends ZCLClusterBase implements
+		PowerConfiguration {
+
+	private final AttributeImpl mainsVoltage;
+	private final AttributeImpl mainsFrequency;
+	private final AttributeImpl mainsAlarmMask;
+	private final AttributeImpl mainsVoltageMinThreshold;
+	private final AttributeImpl mainsVoltageMaxThreshol;
+	private final AttributeImpl mainsVoltageDwellTripPoint;
+	private final AttributeImpl batteryVoltage;
+	private final AttributeImpl batteryManufaturer;
+	private final AttributeImpl batterySize;
+	private final AttributeImpl batteryAHrRating;
+	private final AttributeImpl batteryQuantity;
+	private final AttributeImpl batteryRatedVoltage;
+	private final AttributeImpl batteryAlarmMask;
+	private final AttributeImpl batteryVoltageMinThreshold;
+	
+	private final Attribute[] attributes;
+	
+	public PowerConfigurationCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		mainsVoltage = new AttributeImpl(zbDevice,this,Attributes.MAINS_VOLTAGE);
+		mainsFrequency = new AttributeImpl(zbDevice,this,Attributes.MAINS_FREQUENCY);
+		mainsAlarmMask = new AttributeImpl(zbDevice,this,Attributes.MAINS_ALARM_MASK);
+		mainsVoltageMinThreshold = new AttributeImpl(zbDevice,this,Attributes.MAINS_VOLTAGE_MIN_THRESHOLD);
+		mainsVoltageMaxThreshol = new AttributeImpl(zbDevice,this,Attributes.MAINS_VOLTAGE_MAX_THRESHOLD);
+		mainsVoltageDwellTripPoint = new AttributeImpl(zbDevice,this,Attributes.MAINS_VOLTAGE_DWELL_TRIP_POINT);
+		batteryVoltage = new AttributeImpl(zbDevice,this,Attributes.BATTERY_VOLTAGE);
+		batteryManufaturer = new AttributeImpl(zbDevice,this,Attributes.BATTERY_MANUFACTURER);
+		batterySize = new AttributeImpl(zbDevice,this,Attributes.BATTERY_SIZE);
+		batteryAHrRating = new AttributeImpl(zbDevice,this,Attributes.BATTERY_AHr_RATING);
+		batteryQuantity = new AttributeImpl(zbDevice,this,Attributes.BATTERY_QUANTITY);
+		batteryRatedVoltage = new AttributeImpl(zbDevice,this,Attributes.BATTERY_RATED_VOLTAGE);
+		batteryAlarmMask = new AttributeImpl(zbDevice,this,Attributes.BATTERY_ALARM_MASK);
+		batteryVoltageMinThreshold = new AttributeImpl(zbDevice,this,Attributes.BATTERY_VOLTAGE_MIN_THRESHOLD);
+		 
+		attributes = new AttributeImpl[]{mainsVoltage, mainsFrequency, mainsAlarmMask ,
+				mainsVoltageMinThreshold, mainsVoltageMaxThreshol, mainsVoltageDwellTripPoint,
+				batteryVoltage, batteryManufaturer, batterySize, batteryAHrRating,
+				batteryQuantity, batteryRatedVoltage, batteryAlarmMask, batteryVoltageMinThreshold};
+	}
+	
+	@Override
+	public short getId() {
+		return PowerConfiguration.ID;
+	}
+
+	@Override
+	public String getName() {
+		return PowerConfiguration.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeBatteryAHrRating() {
+		return batteryAHrRating;
+	}
+
+	public Attribute getAttributeBatteryAlarmMask() {
+		return batteryAlarmMask;
+	}
+
+	public Attribute getAttributeBatteryManufacturer() {
+		return batteryManufaturer;
+	}
+
+	public Attribute getAttributeBatteryQuantity() {
+		return batteryQuantity;
+	}
+
+	public Attribute getAttributeBatteryRatedVoltage() {
+		return batteryRatedVoltage;
+	}
+
+	public Attribute getAttributeBatterySize() {
+		return batterySize;
+	}
+
+	public Attribute getAttributeBatteryVoltage() {
+		return batteryVoltage;
+	}
+
+	public Attribute getAttributeBatteryVoltageMinThreshold() {
+		return batteryVoltageMinThreshold;
+	}
+
+	public Attribute getAttributeMainsAlarmMask() {
+		return mainsAlarmMask;
+	}
+
+	public Attribute getAttributeMainsDwellTripPoint() {
+		return mainsVoltageDwellTripPoint;
+	}
+
+	public Attribute getAttributeMainsFrequency() {
+		return mainsFrequency;
+	}
+
+	public Attribute getAttributeMainsVoltage() {
+		return mainsVoltage;
+	}
+
+	public Attribute getAttributeMainsVoltageMaxThreshold() {
+		return mainsVoltageMaxThreshol;
+	}
+
+	public Attribute getAttributeMainsVoltageMinThreshold() {
+		return mainsVoltageMinThreshold;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/PowerConfigurationCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/ScenesCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/ScenesCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/ScenesCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,170 @@
+/*
+   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.zcl.library.impl.general;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+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.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.general.Scenes;
+import it.cnr.isti.zigbee.zcl.library.api.general.scenes.AddScenePayload;
+import it.cnr.isti.zigbee.zcl.library.api.general.scenes.RemoveSceneResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AttributeDescriptor;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.EmptyPayloadCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.AddSceneCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.AddScenePayloadImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.AddSceneResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.GetSceneMembershipCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.GetSceneMembershipResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.RecallSceneCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.RemoveAllSceneResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.RemoveSceneCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.RemoveSceneResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.StoreSceneCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.StoreSceneResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.ViewSceneCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.ViewSceneResponseImpl;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ScenesCluster extends ZCLClusterBase implements Scenes {
+	
+	private final AttributeImpl sceneCount;
+	private final AttributeImpl currentScene;
+	//TODO Implement current group
+	//private final AttributeImpl currentGroup;
+	private final AttributeImpl sceneValid;
+	private final AttributeImpl nameSupport;
+	private final AttributeImpl lastConfiguredBy;
+	
+	private final Attribute[] attributes;
+	
+	private static EmptyPayloadCommand CMD_REMOVE_ALL_SCENES = new EmptyPayloadCommand()
+	.setId(Scenes.REMOVE_ALL_SCENES)
+	.setClientServerDirection(true)
+	.setClusterSpecific(true)
+	.setManufacturerExtension(false);
+	
+	public ScenesCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		 sceneCount  = new AttributeImpl(zbDevice,this,Attributes.SCENE_COUNT);
+		 currentScene = new AttributeImpl(zbDevice,this,Attributes.CURRENT_SCENE);
+		 //TODO currentGroup = new AttributeImpl(zbDevice,this,AttributeDescriptor.CURRENT_GROUP)
+		 sceneValid = new AttributeImpl(zbDevice,this,Attributes.SCENE_VALID);
+		 nameSupport = new AttributeImpl(zbDevice,this,Attributes.NAME_SUPPORT_SCENES);
+		 lastConfiguredBy = new AttributeImpl(zbDevice,this,Attributes.LAST_CONFIGURED_BY);
+		 
+		attributes = new AttributeImpl[]{sceneCount, currentScene, //TODO currentGroup, 
+				sceneValid, nameSupport, lastConfiguredBy};
+	}
+
+	@Override
+	public short getId() {
+		return Scenes.ID;
+	}
+
+	@Override
+	public String getName() {
+		return Scenes.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Response addScene(AddScenePayload scenepayload) throws ZigBeeClusterException{
+		AddSceneCommand addSceneCmd = new AddSceneCommand(scenepayload);
+		Response response = invoke(addSceneCmd);
+		return new AddSceneResponseImpl(response);
+	}
+
+	public Attribute getAttributeCurrentGroup() {
+		return null; //TODO return currentGroup;
+	}
+
+	public Attribute getAttributeCurrentScene() {
+		return currentScene;
+	}
+
+	public Attribute getAttributeLastConfiguredBy() {
+		return lastConfiguredBy;
+	}
+
+	public Attribute getAttributeNameSupport() {
+		return nameSupport;
+	}
+
+	public Attribute getAttributeSceneCount() {
+		return sceneCount;
+	}
+
+	public Attribute getAttributeSceneValid() {
+		return sceneValid;
+	}
+
+	public Response getSceneMembership(int groupId) throws ZigBeeClusterException{
+		GetSceneMembershipCommand getSceneMemCmd = new GetSceneMembershipCommand(groupId);
+		Response response = invoke(getSceneMemCmd);
+		return new GetSceneMembershipResponseImpl(response);
+	}
+
+	public void recallScene(int groupId, short sceneId) throws ZigBeeClusterException{
+		RecallSceneCommand recallSceneCmd = new RecallSceneCommand(groupId, sceneId);
+		invoke(recallSceneCmd);
+	}
+
+	public Response removeAllScene() throws ZigBeeClusterException{
+		Response response = invoke(CMD_REMOVE_ALL_SCENES);
+		return new RemoveAllSceneResponseImpl(response);
+		
+	}
+
+	public Response removeScene(int groupId, short sceneId) throws ZigBeeClusterException{
+		RemoveSceneCommand removeSceneCmd = new RemoveSceneCommand(groupId, sceneId);
+		Response response = invoke(removeSceneCmd);
+		return new RemoveSceneResponseImpl(response);
+	}
+
+	public Response storeScene(int groupId, short sceneId) throws ZigBeeClusterException{
+		StoreSceneCommand storeSceneCmd = new StoreSceneCommand(groupId, sceneId);
+		Response response = invoke(storeSceneCmd);
+		return new StoreSceneResponseImpl(response);
+	}
+
+	public Response viewScene(int groupId, short sceneId) throws ZigBeeClusterException{
+		ViewSceneCommand viewSceneCmd = new ViewSceneCommand(groupId,sceneId);
+		Response response = invoke(viewSceneCmd);
+		return new ViewSceneResponseImpl(response);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/ScenesCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/TimeCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/TimeCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/TimeCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,76 @@
+/*
+   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.zcl.library.impl.general;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.general.Time;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+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</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class TimeCluster extends ZCLClusterBase implements Time {
+
+	
+	private final AttributeImpl time;  
+	private final AttributeImpl timeStatus;
+	
+	private final Attribute[] attributes;
+	
+	public TimeCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		time = new AttributeImpl(zbDevice,this,Attributes.TIME);
+		timeStatus = new AttributeImpl(zbDevice,this,Attributes.TIME_STATUS);
+		attributes = new Attribute[]{ time, timeStatus };
+	}
+
+	@Override
+	public short getId() {
+		return Time.ID;
+	}
+
+	@Override
+	public String getName() {
+		return Time.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeTime() {
+		return time;
+	}
+
+	public Attribute getAttributeTimeStatus() {
+		return timeStatus;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/TimeCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/AlarmResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/AlarmResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/AlarmResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,59 @@
+/*
+   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.zcl.library.impl.general.alarms;
+
+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.api.general.alarms.AlarmResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AlarmResponseImpl extends ResponseImpl implements AlarmResponse {
+	
+	private byte alarmCode;
+	private short clusterIdentifier;
+	
+	public AlarmResponseImpl(Response response) throws ZigBeeClusterException {
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ID);
+		
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		alarmCode = deserializer.read_byte();
+		clusterIdentifier = deserializer.read_short();
+	}
+
+	public int getAllarmCode() {
+	    return alarmCode;
+	}
+
+	public int getClusterID() {
+	    return clusterIdentifier;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/AlarmResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/AlarmsClusterFilter.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/AlarmsClusterFilter.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/AlarmsClusterFilter.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,63 @@
+/*
+   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.zcl.library.impl.general.alarms;
+
+import it.cnr.isti.zigbee.api.Cluster;
+import it.cnr.isti.zigbee.api.ClusterFilter;
+import it.cnr.isti.zigbee.zcl.library.api.general.Alarms;
+import it.cnr.isti.zigbee.zcl.library.api.general.alarms.AlarmResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLFrame;
+
+/**
+ * This class should filter out all the ZigBee cluster that do not belong to the<br>
+ * {@link AlarmResponse} type from the {@link Alarms} cluster, by checking the data itself.<br>
+ * <br>
+ * <b>NOTE:</b>to use this class the {@link #FILTER} constant should be used
+ * 
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.4.0
+ *
+ */
+public class AlarmsClusterFilter implements ClusterFilter {
+
+	/**
+	 * Singelton instance of the filter
+	 */
+	public final static AlarmsClusterFilter FILTER = new AlarmsClusterFilter();
+	
+	private AlarmsClusterFilter() {
+		
+	}
+	
+	public boolean match(Cluster cluster) {
+    	if( cluster.getId() != Alarms.ID )  return false;
+	    	
+		ZCLFrame frame = new ZCLFrame(cluster);
+		return frame.getHeader().getCommandId() == AlarmResponse.ID
+			&& frame.getHeader().getFramecontrol().isClusterSpecificCommand();
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/AlarmsClusterFilter.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/GetAlarmResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/GetAlarmResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/GetAlarmResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,75 @@
+/*
+   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.zcl.library.impl.general.alarms;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.alarms.GetAlarmResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class GetAlarmResponseImpl extends ResponseImpl implements GetAlarmResponse {
+	
+	private Status status;
+	private byte alarmCode;
+	private short clusterIdentifier;
+	private long timestamp;
+	
+	public GetAlarmResponseImpl(Response response) throws ZigBeeClusterException {
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ID);
+		
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		status = Status.getStatus(deserializer.read_byte());
+		if( Status.SUCCESS == status ){
+		    alarmCode = deserializer.read_byte();
+		    clusterIdentifier = deserializer.read_short();
+		    timestamp = deserializer.read_int();
+		}
+	}
+
+	public int getAllarmCode() {
+	    return alarmCode;
+	}
+
+	public int getClusterID() {
+	    return clusterIdentifier;
+	}
+
+	public Status getStatus() {
+	    return status;
+	}
+
+	public long getTimestamp() {
+	    return timestamp;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/GetAlarmResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/ResetAlarmCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/ResetAlarmCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/ResetAlarmCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,56 @@
+/*
+   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.zcl.library.impl.general.alarms;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Alarms;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ResetAlarmCommand extends AbstractCommand {
+
+	private byte clusterId;
+	private short attributeId;
+	
+	public ResetAlarmCommand(byte cid, short aid){		
+		super(Alarms.RESET_ALARM_ID);
+		this.clusterId = cid;
+		this.attributeId = aid;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[2];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_byte(clusterId);		
+			serializer.append_short(attributeId);		
+		}
+		return payload;
+	}    
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/alarms/ResetAlarmCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/ResetStartupParametersResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/ResetStartupParametersResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/ResetStartupParametersResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,28 @@
+package it.cnr.isti.zigbee.zcl.library.impl.general.commissioning;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.commissioning.ResetStartupParametersResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+
+public class ResetStartupParametersResponseImpl extends ResponseImpl implements ResetStartupParametersResponse {
+
+	private byte status;
+
+	public ResetStartupParametersResponseImpl(Response response) throws ZigBeeClusterException {
+
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ID);
+
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(), 0);
+		status = deserializer.read_byte();
+	}
+
+	public Status getStatus() {
+
+		return Status.getStatus(status);
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/ResetStartupParametersResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/RestartDeviceResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/RestartDeviceResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/RestartDeviceResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,28 @@
+package it.cnr.isti.zigbee.zcl.library.impl.general.commissioning;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.commissioning.RestartDeviceResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+
+public class RestartDeviceResponseImpl extends ResponseImpl implements RestartDeviceResponse {
+
+	private byte status;
+
+	public RestartDeviceResponseImpl(Response response) throws ZigBeeClusterException {
+
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ID);
+
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(), 0);
+		status = deserializer.read_byte();
+	}
+
+	public Status getStatus() {
+
+		return Status.getStatus(status);
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/RestartDeviceResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/RestoreStartupParametersResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/RestoreStartupParametersResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/RestoreStartupParametersResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,28 @@
+package it.cnr.isti.zigbee.zcl.library.impl.general.commissioning;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.commissioning.RestoreStartupParametersResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+
+public class RestoreStartupParametersResponseImpl extends ResponseImpl implements RestoreStartupParametersResponse {
+
+	private byte status;
+
+	public RestoreStartupParametersResponseImpl(Response response) throws ZigBeeClusterException {
+
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ID);
+
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(), 0);
+		status = deserializer.read_byte();
+	}
+
+	public Status getStatus() {
+
+		return Status.getStatus(status);
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/RestoreStartupParametersResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/SaveStartupParametersResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/SaveStartupParametersResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/SaveStartupParametersResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,28 @@
+package it.cnr.isti.zigbee.zcl.library.impl.general.commissioning;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.commissioning.SaveStartupParametersResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+
+public class SaveStartupParametersResponseImpl extends ResponseImpl implements SaveStartupParametersResponse {
+
+	private byte status;
+
+	public SaveStartupParametersResponseImpl(Response response) throws ZigBeeClusterException {
+
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ID);
+
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(), 0);
+		status = deserializer.read_byte();
+	}
+
+	public Status getStatus() {
+
+		return Status.getStatus(status);
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/commissioning/SaveStartupParametersResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,56 @@
+/*
+   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.zcl.library.impl.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Groups;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AddGroupCommand extends AbstractCommand {
+
+	private int groupId;
+	
+	public AddGroupCommand(int groupId){
+		super(Groups.ADD_GROUP_ID);
+		this.groupId = groupId;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[2];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)groupId);		
+		}
+		return payload;
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupIfIdentyfingCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupIfIdentyfingCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupIfIdentyfingCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,55 @@
+/*
+   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.zcl.library.impl.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Groups;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AddGroupIfIdentyfingCommand extends AbstractCommand {
+
+	private int groupId;
+	private String name;
+	
+	public AddGroupIfIdentyfingCommand(int groupId, String name){
+		super(Groups.ADD_GROUP_IF_IDENTIFYING_ID);
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[2 + name.length()];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)groupId);
+			//TODO use the serializer.appendObject(Object, ZigBeeType)
+			serializer.appendObject(name);
+		}
+		return payload;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupIfIdentyfingCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,62 @@
+/*
+   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.zcl.library.impl.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.groups.AddGroupResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AddGroupResponseImpl extends ResponseImpl implements
+		AddGroupResponse {
+
+	private int groupId;
+	private byte status;
+	
+	
+	public AddGroupResponseImpl(Response response) throws ZigBeeClusterException {
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, AddGroupResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		status = deserializer.read_byte();
+		groupId = deserializer.read_short();		
+	}
+	
+	public int getGroupId() {
+		return groupId;
+	}
+
+	public Status getStatus() {
+		return Status.getStatus(status);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/AddGroupResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/GetGroupMembershipCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/GetGroupMembershipCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/GetGroupMembershipCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,56 @@
+/*
+   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.zcl.library.impl.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Groups;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class GetGroupMembershipCommand extends AbstractCommand {
+
+	private int[] groupList;
+	
+	public GetGroupMembershipCommand(int[] groupList){
+		super(Groups.GET_GROUP_MEMBERSHIP_ID);
+		this.groupList = groupList;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[groupList.length * 2];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			for (int i = 0; i < groupList.length; i++) {
+				serializer.append_short((short)groupList[i]);
+			}
+		}
+		return payload;
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/GetGroupMembershipCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/GetGroupMembershipResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/GetGroupMembershipResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/GetGroupMembershipResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,64 @@
+/*
+   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.zcl.library.impl.general.groups;
+
+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.api.general.groups.GetGroupMembershipResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class GetGroupMembershipResponseImpl extends ResponseImpl implements
+		GetGroupMembershipResponse {
+	
+	private short capacity;
+	private int[] groupList;
+
+	
+	public GetGroupMembershipResponseImpl(Response response) throws ZigBeeClusterException {
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, GetGroupMembershipResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		capacity =  deserializer.read_short();
+		int count = deserializer.read_short();
+		for (int i = 0; i < count; i++) {
+			groupList[i] = deserializer.read_int(); 
+		}	
+	}
+	
+	public short getCapacity() {
+		return capacity;
+	}
+
+	public int[] getGroupList() {
+		return groupList;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/GetGroupMembershipResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/RemoveGroupCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/RemoveGroupCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/RemoveGroupCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,54 @@
+/*
+   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.zcl.library.impl.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Groups;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class RemoveGroupCommand extends AbstractCommand {
+
+	private int groupId;
+	
+	public RemoveGroupCommand(int groupId){
+		super(Groups.REMOVE_GROUP_ID);
+		this.groupId = groupId;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[2];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)groupId);	
+		}
+		return payload;
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/RemoveGroupCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/RemoveGroupResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/RemoveGroupResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/RemoveGroupResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,62 @@
+/*
+   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.zcl.library.impl.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.groups.RemoveGroupResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class RemoveGroupResponseImpl extends ResponseImpl implements
+		RemoveGroupResponse {
+	
+	private byte status;
+	private int groupId;
+	
+	
+	public RemoveGroupResponseImpl(Response response) throws ZigBeeClusterException {
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, RemoveGroupResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		status = deserializer.read_byte();
+		groupId = deserializer.read_short();
+	}
+
+	public int getGroupId() {
+		return groupId;
+	}
+
+	public Status getStatus() {
+		return Status.getStatus(status);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/RemoveGroupResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ViewGroupCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ViewGroupCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ViewGroupCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,54 @@
+/*
+   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.zcl.library.impl.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Groups;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ViewGroupCommand extends AbstractCommand {
+
+	private int groupId;
+	
+	public ViewGroupCommand(int groupId){
+		super(Groups.VIEW_GROUP_ID);
+		this.groupId = groupId;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[2];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)groupId);	
+		}
+		return payload;
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ViewGroupCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ViewGroupResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ViewGroupResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ViewGroupResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,71 @@
+/*
+   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.zcl.library.impl.general.groups;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.groups.ViewGroupResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ViewGroupResponseImpl extends ResponseImpl implements
+		ViewGroupResponse {
+	
+	private int groupId;
+	private String groupName;
+	private byte status;
+	
+	
+	public ViewGroupResponseImpl(Response response) throws ZigBeeClusterException {
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ViewGroupResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		status = deserializer.read_byte();
+		groupId = deserializer.read_short();
+		//TODO: Variable length?
+		//TODO use the deserializer.readZigBeeType(ZigBeeType)
+		groupName = (String) deserializer.readObject(String.class);
+		//groupName = getPayload()[3]; 
+	}
+	
+	public int getGroupId() {
+		return groupId;
+	}
+
+	public String getGroupName() {
+		return groupName;
+	}
+
+	public Status getStatus() {
+		return Status.getStatus(status);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/groups/ViewGroupResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/IdentifyCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/IdentifyCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/IdentifyCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,54 @@
+/*
+   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.zcl.library.impl.general.identify;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Identify;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class IdentifyCommand extends AbstractCommand {
+
+	private int time;
+	
+	public IdentifyCommand(int time){
+		super(Identify.IDENTIFY_ID);
+		this.time = time;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[2];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)time);		
+		}
+		return payload;
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/IdentifyCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/IdentifyQueryResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/IdentifyQueryResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/IdentifyQueryResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,54 @@
+/*
+   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.zcl.library.impl.general.identify;
+
+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.api.general.identify.IdentifyQueryResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class IdentifyQueryResponseImpl extends ResponseImpl implements
+		IdentifyQueryResponse {
+	
+	private int timeOut;
+	
+	public IdentifyQueryResponseImpl(Response response) throws ZigBeeClusterException {
+		super(response);
+		
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		timeOut = deserializer.read_short();
+	}
+
+	public int getTimeout() {
+		return timeOut;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/identify/IdentifyQueryResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/MoveCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/MoveCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/MoveCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,65 @@
+/*
+   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.zcl.library.impl.general.level_control;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Alarms;
+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;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class MoveCommand extends AbstractCommand {
+	
+	private byte mode; 
+	private short rate;
+
+	
+	public MoveCommand(byte mode, short rate){
+		this( mode, rate, false);
+	}
+	
+	public MoveCommand(byte mode, short rate, boolean hasOnOff){
+		super(LevelControl.MOVE_ID);			
+		if( hasOnOff ) {
+			setId(LevelControl.MOVE_TO_LEVEL_WITH_ONOFF_ID);
+		}
+		this.mode = mode;
+		this.rate = rate;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){
+			payload = new byte[3];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_byte((byte)mode);
+			serializer.append_short((short)rate);
+		}
+		return payload;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/MoveCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/MoveToLevelCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/MoveToLevelCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/MoveToLevelCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,64 @@
+/*
+   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.zcl.library.impl.general.level_control;
+
+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;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class MoveToLevelCommand extends AbstractCommand {
+	
+	private short level;
+	private int time;
+	
+	public MoveToLevelCommand(short level, int time){
+		this(level, time, false);
+	}
+	
+	public MoveToLevelCommand(short level, int time, boolean hasOnOff) {
+		super(LevelControl.MOVE_TO_LEVEL_ID);
+		if ( hasOnOff ) {
+			setId(LevelControl.MOVE_TO_LEVEL_WITH_ONOFF_ID);
+		}
+		this.level = level;
+		this.time = time;
+	}
+
+	public byte[] getPayload(){	
+		if( payload == null){
+			payload = new byte[3];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_byte((byte)level);
+			serializer.append_short((short)time);
+		}
+		return payload;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/MoveToLevelCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/StepCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/StepCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/StepCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,67 @@
+/*
+   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.zcl.library.impl.general.level_control;
+
+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;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class StepCommand extends AbstractCommand {
+	
+	private byte mode; 
+	private short step;
+	private int time;
+	
+	public StepCommand(byte mode, short step, int time){
+		this(mode, step, time, false);
+	}
+	
+	public StepCommand(byte mode, short step, int time, boolean hasOnOff) {
+		super(LevelControl.STEP_ID);
+		if ( hasOnOff ) {
+			setId(LevelControl.STEP_WITH_ONOFF_ID);
+		}
+		this.mode = mode;
+		this.step = step;
+		this.time = time;
+	}
+
+	public byte[] getPayload(){	
+		if( payload == null){
+			payload = new byte[3];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_byte((byte)mode);
+			serializer.append_byte((byte)step);
+			serializer.append_short((short)time); 
+		}
+		return payload;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/level_control/StepCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddSceneCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddSceneCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddSceneCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,83 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Scenes;
+import it.cnr.isti.zigbee.zcl.library.api.general.scenes.AddScenePayload;
+import it.cnr.isti.zigbee.zcl.library.api.general.scenes.ExtensionFieldSetAddScene;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AddSceneCommand extends AbstractCommand {
+
+private AddScenePayload scenePayload;
+
+
+
+	public AddSceneCommand(AddScenePayload scenePayload){
+		super(Scenes.ADD_SCENE);
+		this.scenePayload = scenePayload;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){	
+			int length;
+			length = 5 + scenePayload.getSceneName().length();
+			
+			for (int i = 0; i < scenePayload.getExtensionFieldSet().length; i++) {
+				length = length + scenePayload.getExtensionFieldSet()[i].getLength();
+			}
+			payload = new byte[length];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)scenePayload.getGroupId());
+			serializer.append_byte((byte)scenePayload.getSceneId());
+			serializer.append_short((short)scenePayload.getTransitionTime());
+			//TODO use the serializer.appendObject(Object, ZigBeeType)
+			serializer.appendObject(scenePayload.getSceneName());
+			ExtensionFieldSetAddScene[] extensionFielSet = scenePayload.getExtensionFieldSet();
+			
+			for (int i = 0; i < extensionFielSet.length; i++) {
+				int clusterId = extensionFielSet[i].getClusterId();
+				serializer.append_short((short)clusterId);
+				serializer.append_byte((byte)extensionFielSet[i].getAttributes(clusterId).length);
+			    for (int j = 0; j < extensionFielSet[i].getAttributes(clusterId).length; j++) {
+			    	Attribute attribute = extensionFielSet[i].getAttributes(clusterId)[j];
+			    	Object value = extensionFielSet[i].getValue(attribute);
+			    	serializer.append_short((short)attribute.getId());
+			    	//TODO use the serializer.appendObject(Object, ZigBeeType)
+			    	serializer.appendObject(value);
+				}
+			}
+		}
+		return payload;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddSceneCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddScenePayloadImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddScenePayloadImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddScenePayloadImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,70 @@
+/*
+   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.zcl.library.impl.general.scenes;
+import it.cnr.isti.zigbee.zcl.library.api.general.scenes.AddScenePayload;
+import it.cnr.isti.zigbee.zcl.library.api.general.scenes.ExtensionFieldSetAddScene;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AddScenePayloadImpl implements AddScenePayload {
+	
+	private ExtensionFieldSetAddScene[] extensionFielSet;
+	private int groupId;
+	private short sceneId;
+	private String sceneName;
+	private int transitionTime;
+	
+	public AddScenePayloadImpl(int groupId,short sceneId, String sceneName, 
+			int transitiotime, ExtensionFieldSetAddScene[] extensionFielSet){
+		this.groupId = groupId;
+		this.sceneId = sceneId;
+		this.sceneName = sceneName;
+		this.transitionTime = transitiotime;
+		this.extensionFielSet = extensionFielSet;
+	}
+
+	public ExtensionFieldSetAddScene[] getExtensionFieldSet() {
+		return extensionFielSet;
+	}
+
+	public int getGroupId() {
+		return groupId;
+	}
+
+	public short getSceneId() {
+		return sceneId;
+	}
+
+	public String getSceneName() {
+		return sceneName;
+	}
+
+	public int getTransitionTime() {
+		return transitionTime;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddScenePayloadImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddSceneResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddSceneResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddSceneResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,66 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.scenes.AddSceneResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AddSceneResponseImpl extends ResponseImpl implements AddSceneResponse {
+	
+	private byte status;
+	private int groupId;
+	private short sceneId;
+	
+	public AddSceneResponseImpl(Response response) throws ZigBeeClusterException {
+		
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, AddSceneResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		status = deserializer.read_byte();
+		groupId = deserializer.read_short();
+		sceneId = deserializer.read_byte();
+	}
+	
+	public int getGroupId() {
+		return groupId;
+	}
+
+	public short getSceneId() {
+		return sceneId;
+	}
+
+	public Status getStatus() {
+		return Status.getStatus(status);
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/AddSceneResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ExtensionFieldSetAddSceneImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ExtensionFieldSetAddSceneImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ExtensionFieldSetAddSceneImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,91 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import java.util.Enumeration;
+import java.util.Hashtable;
+
+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.api.general.scenes.ExtensionFieldSetAddScene;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AttributeDescriptor;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ExtensionFieldSetAddSceneImpl implements ExtensionFieldSetAddScene {
+
+	
+	private int clusterId;
+	private Attribute[] attributes;
+	Hashtable<Attribute, Object> set;
+	Attribute attribute;
+	ZBDeserializer deserializer;
+	boolean endSet;
+	
+	
+	public boolean endSet(){
+		return endSet;
+	}
+	
+	public ExtensionFieldSetAddSceneImpl(int clusterId){
+		this.clusterId = clusterId;
+	}
+	
+	public void setAttribute(Attribute attribute, Object value){
+		set.put(attribute, value);
+	}
+	
+	
+	public Attribute[] getAttributes(int clusterId) {
+		Enumeration<Attribute> attribute = set.keys();
+		int i = 0;
+		while(attribute.hasMoreElements())
+		{
+			attributes[i] = attribute.nextElement();
+			i++;
+		}	
+		return attributes;
+	}
+
+	public int getClusterId() {
+		return clusterId;
+	}
+
+	public Object getValue(Attribute attributeId) {
+		return set.get(attributeId);
+	}
+	
+	
+	public int getLength(){
+		int length = 5; // 4 for ClusterId e 1 for length?
+		for (int i = 0; i < attributes.length; i++) {
+			length = length + 4 + attributes[i].getZigBeeType().getLength();
+		}
+		return length ;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ExtensionFieldSetAddSceneImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ExtensionFieldSetViewResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ExtensionFieldSetViewResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ExtensionFieldSetViewResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,94 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import java.util.Enumeration;
+import java.util.Hashtable;
+
+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.api.general.scenes.ExtensionFieldSetViewResponse;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ExtensionFieldSetViewResponseImpl implements
+		ExtensionFieldSetViewResponse {
+
+	
+	private int clusterId;
+	private int[] attributes;
+	Hashtable<Integer, Object> set;
+	int attribute;
+	ZBDeserializer deserializer;
+	boolean endSet;
+	
+	public ExtensionFieldSetViewResponseImpl(ZBDeserializer deserializer){
+		this.deserializer = deserializer;
+		clusterId = deserializer.read_int();
+		int length = deserializer.read_byte();
+		endSet = true;
+		for (int i = 0; i < length; i++) {
+			int attributeId = deserializer.read_short();
+			//TODO use the deserializer.readZigBeeType(ZigBeeType)
+			Object value = deserializer.readObject(Object.class);
+			//TODO: create Attribute and get ZigBee type from attribute
+			if (value==null) endSet = false; 
+			set.put(attributeId, value);
+		}
+		return;
+		//TODO complete deserializer for extensionFieldSet
+ 	}
+	
+	public boolean endSet(){
+		return endSet;
+	}
+	
+	
+	public int[] getAttributes(int clusterId) {
+		Enumeration<Integer> attribute = set.keys();
+		int i = 0;
+		while(attribute.hasMoreElements())
+		{
+			attributes[i] = attribute.nextElement();
+			i++;
+		}	
+		return attributes;
+	}
+
+	public int getClusterId() {
+		return clusterId;
+	}
+
+	public Object getValue(int attributeId) {
+		return set.get(attributeId);
+	}
+	
+	
+
+}
+	
+

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ExtensionFieldSetViewResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/GetSceneMembershipCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/GetSceneMembershipCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/GetSceneMembershipCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,54 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Scenes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class GetSceneMembershipCommand extends AbstractCommand {
+	
+	private int groupId;
+	
+	public GetSceneMembershipCommand(int groupId){
+		super(Scenes.GET_SCENE_MEMBERSHIP);
+		this.groupId = groupId;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[2];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)groupId);
+		}
+		return payload;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/GetSceneMembershipCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/GetSceneMembershipResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/GetSceneMembershipResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/GetSceneMembershipResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,78 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.scenes.GetSceneMembershipResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class GetSceneMembershipResponseImpl extends ResponseImpl implements
+		GetSceneMembershipResponse {
+
+	private byte status;
+	private short capacity;
+	private int groupId;
+	private short[] sceneList;
+	
+	
+	public GetSceneMembershipResponseImpl(Response response) throws ZigBeeClusterException {
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, GetSceneMembershipResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		status = deserializer.read_byte();
+		capacity =  deserializer.read_byte();
+		groupId = deserializer.read_short();
+		int count = deserializer.read_byte();
+		for (int i = 0; i < count; i++) {
+			sceneList[i] = deserializer.read_byte();
+		}	
+	}
+	
+	
+	public short getCapacity() {
+		return capacity;
+	}
+
+	public int getGroupId() {
+		return groupId;
+	}
+
+	public short[] getSceneList() {
+		return sceneList;
+	}
+
+	public Status getStatus() {
+		return Status.getStatus(status);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/GetSceneMembershipResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RecallSceneCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RecallSceneCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RecallSceneCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,57 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Scenes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class RecallSceneCommand extends AbstractCommand {
+	
+	private int groupId;
+	private short sceneId;
+	
+	
+	public RecallSceneCommand(int groupId, short sceneId){		
+		super(Scenes.RECALL_SCENE);
+		this.groupId = groupId;
+		this.sceneId = sceneId;
+	}
+
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[3];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)groupId);
+			serializer.append_byte((byte)sceneId);
+		}
+		return payload;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RecallSceneCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveAllSceneResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveAllSceneResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveAllSceneResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,61 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.scenes.RemoveAllSceneResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class RemoveAllSceneResponseImpl extends ResponseImpl implements
+		RemoveAllSceneResponse {
+	
+	private byte status;
+	private int groupId;
+
+	public RemoveAllSceneResponseImpl(Response response)throws ZigBeeClusterException{
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, RemoveAllSceneResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		status =  deserializer.read_byte();
+		groupId = deserializer.read_short();
+	}
+	
+	public int getGroupId() {
+		return groupId;
+	}
+
+	public Status getStatus() {
+		return Status.getStatus(status);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveAllSceneResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveSceneCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveSceneCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveSceneCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,54 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Scenes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class RemoveSceneCommand extends AbstractCommand {
+
+	private int groupId;
+	private short sceneId;
+	
+	public RemoveSceneCommand(int groupId, short sceneId){
+		super(Scenes.REMOVE_ALL_SCENES);
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[3];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)groupId);	
+			serializer.append_byte((byte) sceneId);
+		}
+		return payload;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveSceneCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveSceneResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveSceneResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveSceneResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,67 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.scenes.RemoveSceneResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class RemoveSceneResponseImpl extends ResponseImpl implements
+		RemoveSceneResponse {
+	
+	private int groupId;
+	private short sceneId;
+	private byte status;
+
+	public RemoveSceneResponseImpl(Response response)throws ZigBeeClusterException{
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, RemoveSceneResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		status =  deserializer.read_byte();
+		groupId = deserializer.read_short();
+		sceneId = deserializer.read_byte();
+	}
+	
+	public int getGroupId() {
+		return groupId;
+	}
+
+	public short getSceneId() {
+		return sceneId;
+	}
+
+	public Status getStatus() {
+		return Status.getStatus(status);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/RemoveSceneResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/StoreSceneCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/StoreSceneCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/StoreSceneCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,54 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Scenes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class StoreSceneCommand extends AbstractCommand {
+
+	private int groupId;
+	private short sceneId;
+	
+	public StoreSceneCommand(int groupId, short sceneId){
+		super(Scenes.STORE_SCENE);
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[3];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)groupId);	
+			serializer.append_byte((byte) sceneId);
+		}
+		return payload;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/StoreSceneCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/StoreSceneResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/StoreSceneResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/StoreSceneResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,68 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.scenes.RemoveSceneResponse;
+import it.cnr.isti.zigbee.zcl.library.api.general.scenes.StoreSceneResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class StoreSceneResponseImpl extends ResponseImpl implements
+		StoreSceneResponse {
+	
+	private int groupId;
+	private short sceneId;
+	private byte status;
+	
+	public StoreSceneResponseImpl(Response response)throws ZigBeeClusterException{
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, RemoveSceneResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		status =  deserializer.read_byte();
+		groupId = deserializer.read_short();
+		sceneId = deserializer.read_byte();
+	}
+
+	public int getGroupId() {
+		return groupId;
+	}
+
+	public short getSceneId() {
+		return sceneId;
+	}
+
+	public Status getStatus() {
+		return Status.getStatus(status);
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/StoreSceneResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ViewSceneCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ViewSceneCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ViewSceneCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,55 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.general.Scenes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ViewSceneCommand extends AbstractCommand {
+
+	private int groupId;
+	private short sceneId;
+	
+	public ViewSceneCommand(int groupId, short sceneId){
+		super(Scenes.STORE_SCENE);
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			payload = new byte[3];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			serializer.append_short((short)groupId);	
+			serializer.append_byte((byte) sceneId);
+		}
+		return payload;
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ViewSceneCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ViewSceneResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ViewSceneResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ViewSceneResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,100 @@
+/*
+   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.zcl.library.impl.general.scenes;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.general.scenes.ExtensionFieldSetViewResponse;
+import it.cnr.isti.zigbee.zcl.library.api.general.scenes.RemoveSceneResponse;
+import it.cnr.isti.zigbee.zcl.library.api.general.scenes.ViewSceneResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AttributeDescriptor;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.general.scenes.ExtensionFieldSetViewResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.read.ReadAttributeStatusImpl;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ViewSceneResponseImpl extends ResponseImpl implements
+		ViewSceneResponse {
+	
+	private ExtensionFieldSetViewResponse[] extensionfield;
+	private int groupId;
+	private short sceneId;
+	private String sceneName;
+	private byte status;
+	private int transitionTime;
+	
+	public ViewSceneResponseImpl(Response response)throws ZigBeeClusterException{
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, RemoveSceneResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		status = deserializer.read_byte();
+		groupId = deserializer.read_short();
+		sceneId = deserializer.read_byte();
+		transitionTime = deserializer.read_short();
+		//TODO check variable length
+		//TODO use the deserializer.readZigBeeType(ZigBeeType)
+		sceneName = (String) deserializer.readObject(String.class); 
+		// TODO read extensionFieldSet
+		int i = 0; 
+		boolean cond = true; //extensionfield end
+		while (cond){
+			extensionfield[i] = new ExtensionFieldSetViewResponseImpl(deserializer);
+			i= i + 1;
+			cond = extensionfield[i].endSet();
+		}
+	}
+
+	public ExtensionFieldSetViewResponse[] getExstensionFieldSet() {
+		return extensionfield;
+	}
+
+	public int getGroupId() {
+		return groupId;
+	}
+
+	public short getSceneId() {
+		return sceneId;
+	}
+
+	public String getSceneName() {
+		return sceneName;
+	}
+
+	public Status getStatus() {
+		return Status.getStatus(status);
+	}
+
+	public int getTransitionTime() {
+		return transitionTime;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/general/scenes/ViewSceneResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/DefaultResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/DefaultResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/DefaultResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,56 @@
+/*
+   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.zcl.library.impl.global;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.global.DefaultResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class DefaultResponseImpl extends ResponseImpl implements DefaultResponse {
+
+	private byte commandId;
+	private byte status;
+
+	public DefaultResponseImpl(Response response) throws ZigBeeClusterException {
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, DefaultResponse.ID);
+		commandId = getPayload()[0];
+		status =  getPayload()[1];
+	}
+
+	public byte getCommandId() {
+		return commandId;
+	}
+
+	public Status getStatus() {
+		return Status.getStatus(status);
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/DefaultResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributeCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributeCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributeCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,63 @@
+/*
+   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.zcl.library.impl.global.read;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ReadAttributeCommand extends AbstractCommand {
+
+	private static final Logger logger = LoggerFactory.getLogger(ReadAttributeCommand.class);
+	
+	private static byte ID = 0x00;
+	
+	private int[] attributeIds;	
+	
+	public ReadAttributeCommand(int[] attributeIds){
+		super(ID,false);
+		this.attributeIds = attributeIds;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){
+			logger.debug("Creating Payload for command");
+			payload = new byte[attributeIds.length*2];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+			for (int i = 0; i < attributeIds.length; i++) {
+				serializer.append_short((short) attributeIds[i]);
+			}
+		}
+		return payload;
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributeCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributeStatusImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributeStatusImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributeStatusImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,88 @@
+/*
+   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.zcl.library.impl.global.read;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBDeserializer;
+import it.cnr.isti.zigbee.zcl.library.api.global.ReadAttributesStatus;
+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</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ReadAttributeStatusImpl implements ReadAttributesStatus {
+
+	private byte status;
+	
+	private int attributeId;
+	
+	private byte dataType;
+	
+	@SuppressWarnings("unchecked")
+	private Class clazz;
+	
+	private Object data;
+
+	public ReadAttributeStatusImpl(
+			AttributeDescriptor descriptor, ZBDeserializer deserializer) {
+
+		attributeId = deserializer.read_short();			
+		status = deserializer.read_byte();
+		if (Status.getStatus(status).equals(Status.SUCCESS)) {
+			dataType = deserializer.read_byte();
+			final ZigBeeType type = ZigBeeType.getType(dataType);  
+			clazz = type.getJavaClass();
+			data = deserializer.readZigBeeType(type);
+		}
+		
+		// TODO Attribute Check
+		// indeed the order could be different, so we should receive all the list
+		// and in any case we could also avoid to throw an Exception
+
+	}
+
+	public Object getAttributeData() {
+		return data;
+	}
+
+	public byte getAttributeDataType() {
+		return dataType;
+	}
+
+	public int getAttributeId() {
+		return attributeId;
+	}
+
+	public byte getStatus() {
+		return status;
+	}
+
+	@SuppressWarnings("unchecked")
+	public Class getDataClass(){
+		return clazz;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributeStatusImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributesResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributesResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributesResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,63 @@
+/*
+   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.zcl.library.impl.global.read;
+
+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.api.global.ReadAttributesResponse;
+import it.cnr.isti.zigbee.zcl.library.api.global.ReadAttributesStatus;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AttributeDescriptor;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public class ReadAttributesResponseImpl extends ResponseImpl implements ReadAttributesResponse{
+
+	private ReadAttributesStatus[] attributes;
+
+	public ReadAttributesResponseImpl(Response response, AttributeDescriptor[] descriptors) throws ZigBeeClusterException {
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ReadAttributesResponse.ID);
+		attributes = new ReadAttributesStatus[descriptors.length];
+		byte[] msg = getPayload();
+		ZBDeserializer deserializer = new DefaultDeserializer(msg,0);
+		for (int i = 0; i < descriptors.length; i++) {
+			attributes[i]= new ReadAttributeStatusImpl(descriptors[i],deserializer);
+		}
+	}
+
+	public ReadAttributesStatus[] getReadAttributeStatus() {
+		return attributes;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/read/ReadAttributesResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeReportImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeReportImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeReportImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,62 @@
+/*
+   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.zcl.library.impl.global.reporting;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBDeserializer;
+import it.cnr.isti.zigbee.zcl.library.api.global.AttributeReport;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.2.0
+ *
+ */
+public class AttributeReportImpl implements AttributeReport {
+
+	private short attributeId; 
+	private Object value;
+	private final ZigBeeType type;
+
+	public AttributeReportImpl(ZBDeserializer deserializer) {
+		attributeId = deserializer.read_short();			
+		byte dataType = deserializer.read_byte();;
+		type = ZigBeeType.getType(dataType);
+		value = deserializer.readZigBeeType(type);		
+	}
+
+	public Object getAttributeData() {
+		return value;
+	}
+
+	public ZigBeeType getAttributeDataType() {
+		return type;
+	}
+
+	public int getAttributeId() {
+		return attributeId;
+	}
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeReportImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeReportingConfigurationRecordImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeReportingConfigurationRecordImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeReportingConfigurationRecordImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,93 @@
+/*
+   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.zcl.library.impl.global.reporting;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.global.AttributeReportingConfigurationRecord;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class AttributeReportingConfigurationRecordImpl implements
+		AttributeReportingConfigurationRecord {
+	
+	private Attribute attribute;
+	private int direction;
+	private int maximumReportinInterval;
+	private int minimumReportingInterval;
+	private Object reportableChange;
+	private int timeoutPeriod;
+	
+
+	public AttributeReportingConfigurationRecordImpl(Attribute attribute, int direction){
+		this.attribute = attribute;
+		this.direction = direction;
+	}
+	
+	public AttributeReportingConfigurationRecordImpl(Attribute attribute, int direction,
+			int maximumReportinInterval, int minimumReportingInterval, Object reportableChange, 
+			int timeoutPeriod){
+		
+		this.attribute = attribute;
+		this.direction = direction;
+		this.maximumReportinInterval = maximumReportinInterval;
+		this.minimumReportingInterval = minimumReportingInterval;
+		this.reportableChange = reportableChange;
+		this.timeoutPeriod = timeoutPeriod;
+	}
+	
+	public ZigBeeType getAttributeDataType() {
+		return attribute.getZigBeeType();
+	}
+
+	public int getAttributeId() {
+		return attribute.getId();
+	}
+
+	public int getDiretion() {
+		return direction;
+	}
+
+	public int getMaximumReportinInterval() {
+		return maximumReportinInterval;
+	}
+
+	public int getMinimumReportingInterval() {
+		return minimumReportingInterval;
+	}
+
+	public Object getReportableChange() {
+		return reportableChange;
+	}
+
+	public int getTimeoutPeriod() {
+		return timeoutPeriod;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeReportingConfigurationRecordImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeStatusRecordImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeStatusRecordImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeStatusRecordImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,102 @@
+/*
+   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.zcl.library.impl.global.reporting;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.global.AttributeStatusRecord;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AttributeDescriptor;
+
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a>
+ * @version  $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public class AttributeStatusRecordImpl implements AttributeStatusRecord {
+	
+	private byte status;
+	private int direction;
+	private int attributeId;
+
+	
+	
+	protected AttributeStatusRecordImpl(byte status, int direction, int attributeId) {
+		super();
+		this.status = status;
+		this.direction = direction;
+		this.attributeId = attributeId;
+	}
+
+	public AttributeStatusRecordImpl(AttributeDescriptor attrib, ZBDeserializer deserializer) 
+	throws ZigBeeClusterException {
+		
+		status = deserializer.read_byte();
+		direction = deserializer.read_byte();
+		attributeId = deserializer.read_short();
+		if( attributeId != attrib.getId() ) {
+			throw new ZigBeeClusterException(
+				"attributeId read from the data doesn't match the expected value "+attributeId+" != "+attrib.getId()
+			);
+		}
+		
+	}
+
+	public AttributeStatusRecordImpl(Attribute attrib, ZBDeserializer deserializer) 
+	throws ZigBeeClusterException {
+		
+		status = deserializer.read_byte();
+		if ( status != 0 ) {
+			return;
+		}
+		direction = deserializer.read_byte();
+		attributeId = deserializer.read_short();
+		if( attributeId != attrib.getId() ) {
+			throw new ZigBeeClusterException(
+				"attributeId read from the data doesn't match the expected value "+attributeId+" != "+attrib.getId()
+			);
+		}
+		
+	}
+	
+	
+	public byte getStatus() {
+		return status;
+	}
+
+	public int getDirection() {
+		return direction;
+	}
+	
+	public int getAttributeId() {
+		return attributeId;
+	}
+	
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/AttributeStatusRecordImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ConfigureReportingCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ConfigureReportingCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ConfigureReportingCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,110 @@
+/*
+   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.zcl.library.impl.global.reporting;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.global.AttributeReportingConfigurationRecord;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public class ConfigureReportingCommand extends AbstractCommand {
+	
+	private static final Logger logger = LoggerFactory.getLogger(ConfigureReportingCommand.class);
+		
+	private static byte ID = 0x06;
+	
+	private AttributeReportingConfigurationRecord[] attributerecord;
+	
+	public ConfigureReportingCommand(AttributeReportingConfigurationRecord[] attributerecord){
+		super(ID,false);
+		this.attributerecord = attributerecord;
+	}
+	
+	public byte[] getPayload(){
+		if( payload == null ){			
+			logger.debug("Creating Payload for command");
+			int length = 0;
+			for (int i = 0; i < attributerecord.length; i++){
+				if ( attributerecord[i].getDiretion() == 1 ) {
+					//CASE OF ATTRIBUTE CONFIGURATION SENT TO CLIENT
+					//Size of: Direction + Attribute Id + Timeout 
+					length += 1 + 2 + 2;
+				} else if ( attributerecord[i].getAttributeDataType().isAnalog() == false ){
+					//CASE OF ATTRIBUTE CONFIGURATION SENT TO SERVER OF A DISCRETE ATTRIBUTE
+					//Size of: Direction + Attribute Id + Data Type + Minimum + Maxium
+					length += 1 + 2 + 1 + 2 + 2; 
+				} else {
+					//CASE OF ATTRIBUTE CONFIGURATION SENT TO SERVER OF A ANALOG ATTRIBUTE
+					//Size of: Direction + Attribute Id + Data Type + Minimum + Maxium + Change
+					final int valueSize = attributerecord[i].getAttributeDataType().getLength();
+					length += 1 + 2 + 1 + 2 + 2 + valueSize; 
+				}
+			}
+			payload = new byte[length];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+		
+			for (int i = 0; i < attributerecord.length; i++) {
+				if ( attributerecord[i].getDiretion() == 1 ) {
+					//CASE OF ATTRIBUTE CONFIGURATION SENT TO CLIENT
+					//Size of: Direction + Attribute Id + Timeout 
+					serializer.append_byte((byte) attributerecord[i].getDiretion());
+					serializer.append_short((short) attributerecord[i].getAttributeId());
+					serializer.append_short((short) attributerecord[i].getTimeoutPeriod());
+				} else if ( attributerecord[i].getAttributeDataType().isAnalog() == false ){
+					//CASE OF ATTRIBUTE CONFIGURATION SENT TO SERVER OF A DISCRETE ATTRIBUTE
+					//Size of: Direction + Attribute Id + Data Type + Minimum + Maxium
+					serializer.append_byte((byte) attributerecord[i].getDiretion());
+					serializer.append_short((short) attributerecord[i].getAttributeId());
+					serializer.append_byte((byte) attributerecord[i].getAttributeDataType().getId());
+					serializer.append_short((short) attributerecord[i].getMinimumReportingInterval());
+					serializer.append_short((short) attributerecord[i].getMaximumReportinInterval());
+				} else {
+					//CASE OF ATTRIBUTE CONFIGURATION SENT TO SERVER OF A ANALOG ATTRIBUTE
+					//Size of: Direction + Attribute Id + Data Type + Minimum + Maxium + Change
+					serializer.append_byte((byte) attributerecord[i].getDiretion());
+					serializer.append_short((short) attributerecord[i].getAttributeId());
+					final ZigBeeType type = attributerecord[i].getAttributeDataType();
+					serializer.append_byte((byte) type.getId());
+					serializer.append_short((short) attributerecord[i].getMinimumReportingInterval());
+					serializer.append_short((short) attributerecord[i].getMaximumReportinInterval());
+					serializer.appendZigBeeType(attributerecord[i].getReportableChange(), type);
+				}
+			}
+		}
+		return payload;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ConfigureReportingCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ConfigureReportingResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ConfigureReportingResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ConfigureReportingResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,84 @@
+/*
+   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.zcl.library.impl.global.reporting;
+
+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.api.global.AttributeStatusRecord;
+import it.cnr.isti.zigbee.zcl.library.api.global.ConfigureReportingResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AttributeDescriptor;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @author <a href="mailto:alessandro.giari at isti.cnr.it">Alessandro Giari</a>
+ * @version  $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.1.0
+ *
+ */
+public class ConfigureReportingResponseImpl extends ResponseImpl implements ConfigureReportingResponse {
+
+	private AttributeStatusRecord[] attributes;
+	
+	public ConfigureReportingResponseImpl(Response response, AttributeDescriptor[] descriptors)	throws ZigBeeClusterException{
+		
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ConfigureReportingResponse.ID);
+		attributes = new AttributeStatusRecord[descriptors.length];
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+		for (int i = 0; i < descriptors.length; i++) {
+			attributes[i]= new AttributeStatusRecordImpl(descriptors[i], deserializer );
+		}
+	}
+	
+	public ConfigureReportingResponseImpl(Response response, Attribute[] attribs) throws ZigBeeClusterException{
+		
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ConfigureReportingResponse.ID);
+		attributes = new AttributeStatusRecord[attribs.length];
+		final byte[] msg = getPayload();
+		if ( msg.length == 1 ) { //ALL SUCCESS so attribute status field record are omitted
+			if ( msg[0] != 0 ) {
+				//TODO Throw exception
+			}
+			for (int i = 0; i < attribs.length; i++) {
+				//TODO Check for direction
+				attributes[i]= new AttributeStatusRecordImpl((byte) 0, 0, attribs[i].getId());
+			}
+		} else { //SOME FAILED so we have parse the payload normally
+			ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+			for (int i = 0; i < attribs.length; i++) {
+				attributes[i]= new AttributeStatusRecordImpl(attribs[i], deserializer );
+			}
+		}
+	}
+	
+	public AttributeStatusRecord[] getAttributeStatusRecord(){
+		return attributes;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ConfigureReportingResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ReportAttributesCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ReportAttributesCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ReportAttributesCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,77 @@
+/*
+   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.zcl.library.impl.global.reporting;
+
+import java.util.ArrayList;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBDeserializer;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.global.AttributeReport;
+import it.cnr.isti.zigbee.zcl.library.api.global.ReadAttributesResponse;
+import it.cnr.isti.zigbee.zcl.library.api.global.ReadAttributesStatus;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.read.ReadAttributeStatusImpl;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ *         
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.2.0
+ *
+ */
+public class ReportAttributesCommand extends ResponseImpl {
+	
+	private static final Logger logger = LoggerFactory.getLogger(ReportAttributesCommand.class);
+	
+	public static final byte ID = 0x0A;
+	
+	private AttributeReport[] attributesReport;
+	
+	public ReportAttributesCommand(ResponseImpl response) throws ZigBeeClusterException{
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, ReportAttributesCommand.ID);
+		
+		byte[] msg = getPayload();
+		ZBDeserializer deserializer = new DefaultDeserializer(msg,0);
+		ArrayList<AttributeReportImpl> attributes = new ArrayList<AttributeReportImpl>();
+		for (int i = 0; deserializer.getPosition() < msg.length; i++) {
+			attributes.add(new AttributeReportImpl(deserializer));
+		}
+		
+		attributesReport = attributes.toArray(new AttributeReport[]{});
+	}		
+	
+	public AttributeReport[] getAttributeReports() {
+		return attributesReport;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/reporting/ReportAttributesCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeCommand.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeCommand.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeCommand.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,73 @@
+/*
+   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.zcl.library.impl.global.write;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBSerializer;
+import it.cnr.isti.zigbee.zcl.library.api.global.WriteAttributeRecord;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AbstractCommand;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class WriteAttributeCommand extends AbstractCommand {
+	private static byte ID = 0x02;
+	
+	private WriteAttributeRecord[] attributeRecord;
+	
+	public WriteAttributeCommand(WriteAttributeRecord[] attributerecord){
+		super(ID,false);
+		this.attributeRecord = attributerecord;
+	}
+	
+	public byte[] getPayload(){	
+		if( payload == null){			
+			int length = 0;
+			for (int i = 0; i < attributeRecord.length; i++){
+
+				int len = attributeRecord[i].getAttributeDataType().getLength();
+				if(len == -1){
+					//TODO Use a general method instead of assuming that variable length is applied only for String 
+					length = length + ((String) attributeRecord[i].getAttributeData()).length();
+				} else {
+					length = length + len;
+				}
+				length = length + 2 + 1; //space for attribute id and attribute data type
+			}
+			payload = new byte[length];
+			ZBSerializer serializer = new DefaultSerializer(payload,0);
+		
+			for (int i = 0; i < attributeRecord.length; i++) {
+				serializer.append_short( (short) attributeRecord[i].getAttributeId());
+				final ZigBeeType type = attributeRecord[i].getAttributeDataType();
+				serializer.append_byte((byte) type.getId());
+				serializer.appendZigBeeType(attributeRecord[i].getAttributeData(), type);
+			}
+		}
+		return payload;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeCommand.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeRecordImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeRecordImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeRecordImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,58 @@
+/*
+   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.zcl.library.impl.global.write;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.global.WriteAttributeRecord;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class WriteAttributeRecordImpl implements WriteAttributeRecord {
+
+	private Attribute attribute;
+	private Object value;
+
+	public WriteAttributeRecordImpl(Attribute attribute, Object value) {
+		this.attribute = attribute;
+		this.value = value;
+	}
+
+	public Object getAttributeData() {
+		return value;
+	}
+
+	public ZigBeeType getAttributeDataType() {
+		return attribute.getZigBeeType();
+	}
+
+	public int getAttributeId() {
+		return attribute.getId();
+	}
+	
+	
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeRecordImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeStatusImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeStatusImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeStatusImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,65 @@
+/*
+   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.zcl.library.impl.global.write;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZBDeserializer;
+import it.cnr.isti.zigbee.zcl.library.api.global.WriteAttributesStatus;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AttributeDescriptor;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class WriteAttributeStatusImpl implements WriteAttributesStatus {
+	
+	private byte status;
+	private int attributeId;
+	
+	
+	public WriteAttributeStatusImpl(AttributeDescriptor descriptor, ZBDeserializer deserializer){
+
+		status = deserializer.read_byte();
+		attributeId = deserializer.read_short();
+		// TODO Attribute Check
+		// indeed the order could be different, so we should receive all the list
+		// and in any case we could also avoid to throw an Exception
+	}
+
+	public WriteAttributeStatusImpl(AttributeDescriptor attributeDescriptor) {
+		status = (byte) Status.SUCCESS.id;
+		attributeId = attributeDescriptor.getId();
+	}
+
+	public int getAttributeId() {
+		return attributeId;
+	}
+
+	public byte getStatus() {
+		return status;
+	}
+	
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributeStatusImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributesResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributesResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributesResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,66 @@
+/*
+   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.zcl.library.impl.global.write;
+
+import it.cnr.isti.zigbee.zcl.library.api.core.Response;
+import it.cnr.isti.zigbee.zcl.library.api.core.Status;
+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.api.global.WriteAttributesResponse;
+import it.cnr.isti.zigbee.zcl.library.api.global.WriteAttributesStatus;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AttributeDescriptor;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class WriteAttributesResponseImpl extends ResponseImpl implements
+		WriteAttributesResponse {
+	
+	private WriteAttributesStatus[] attributes;
+	
+	public WriteAttributesResponseImpl(Response response, AttributeDescriptor[] descriptors) throws  ZigBeeClusterException{
+		super(response);
+		ResponseImpl.checkGeneralCommandFrame(response, WriteAttributesResponse.ID);
+		attributes = new WriteAttributesStatus[descriptors.length];
+		if( getPayload().length == 1 && getPayload()[0] == Status.SUCCESS.id ) {
+			for (int i = 0; i < descriptors.length; i++) {
+				attributes[i]= new WriteAttributeStatusImpl(descriptors[i]);
+			}
+		}else{
+			ZBDeserializer deserializer = new DefaultDeserializer(getPayload(),0);
+			for (int i = 0; i < descriptors.length; i++) {
+				attributes[i]= new WriteAttributeStatusImpl(descriptors[i], deserializer);
+			}
+		}
+	}
+
+	public WriteAttributesStatus[] getWriteAttributesStatus() {
+		return attributes;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/global/write/WriteAttributesResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/IlluminanceMeasurementCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/IlluminanceMeasurementCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/IlluminanceMeasurementCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,74 @@
+package it.cnr.isti.zigbee.zcl.library.impl.measureament_sensing;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.measureament_sensing.IlluminanceMeasurement;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+public class IlluminanceMeasurementCluster extends ZCLClusterBase implements IlluminanceMeasurement {
+
+	private final AttributeImpl measuredValue;
+	private final AttributeImpl minMeasuredValue;
+	private final AttributeImpl maxMeasuredValue;
+	private final AttributeImpl tolerance;
+	private final AttributeImpl lightSensorType;
+
+	private final Attribute[] attributes;
+
+	public IlluminanceMeasurementCluster(ZigBeeDevice zbDevice) {
+
+		super(zbDevice);
+		measuredValue = new AttributeImpl(zbDevice,this,Attributes.MEASURED_VALUE_UNSIGNED_16_BIT);
+		minMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MIN_MEASURED_VALUE_UNSIGNED_16_BIT);
+		maxMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MAX_MEASURED_VALUE_UNSIGNED_16_BIT);
+		tolerance = new AttributeImpl(zbDevice,this,Attributes.TOLERANCE);
+		lightSensorType = new AttributeImpl(zbDevice,this,Attributes.LIGHT_SENSOR_TYPE);
+
+		attributes = new AttributeImpl[]{measuredValue, minMeasuredValue, maxMeasuredValue, tolerance, lightSensorType};
+	}
+
+	public Attribute getMeasuredValue() {
+
+		return measuredValue;
+	}
+
+	public Attribute getMinMeasuredValue() {
+
+		return minMeasuredValue;
+	}
+
+	public Attribute getMaxMeasuredValue() {
+
+		return maxMeasuredValue;
+	}
+
+	public Attribute getTolerance() {
+
+		return tolerance;
+	}
+
+	public Attribute getLightSensorType() {
+
+		return lightSensorType;
+	}
+
+	@Override
+	public short getId() {
+
+		return IlluminanceMeasurement.ID;
+	}
+
+	@Override
+	public String getName() {
+
+		return IlluminanceMeasurement.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+
+		return attributes;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/IlluminanceMeasurementCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/OccupacySensingCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/OccupacySensingCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/OccupacySensingCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,104 @@
+/*
+   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.zcl.library.impl.measureament_sensing;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.measureament_sensing.OccupacySensing;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+/**
+ * Implementation of the {@link OccupacySensing} interface
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.4.0
+ *
+ */
+public class OccupacySensingCluster extends ZCLClusterBase implements OccupacySensing {
+	
+	private final AttributeImpl occupancy;
+	private final AttributeImpl occupancySensorType;
+	private final AttributeImpl pirOccupiedToUnoccupiedDelay;
+	private final AttributeImpl pirUnoccupiedToOccupiedDelay;
+	private final AttributeImpl ultraSonicOccupiedToUnoccupiedDelay;
+	private final AttributeImpl ultraSonicUnoccupiedToOccupiedDelay;
+	
+	
+	private final Attribute[] attributes;
+
+	public OccupacySensingCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		occupancy = new AttributeImpl(zbDevice,this,Attributes.OCCUPANCY);
+		occupancySensorType = new AttributeImpl(zbDevice,this,Attributes.OCCUPANCY_SENSOR_TYPE);
+		pirOccupiedToUnoccupiedDelay = new AttributeImpl(zbDevice,this,Attributes.PIR_OCCUPIED_TO_UNOCCUPIED_DELAY);
+		pirUnoccupiedToOccupiedDelay = new AttributeImpl(zbDevice,this,Attributes.PIR_UNOCCUPIED_TO_OCCUPIED_DELAY);
+		ultraSonicOccupiedToUnoccupiedDelay = new AttributeImpl(zbDevice,this,Attributes.ULTRA_SONIC_OCCUPIED_TO_UNOCCUPIED_DELAY);
+		ultraSonicUnoccupiedToOccupiedDelay = new AttributeImpl(zbDevice,this,Attributes.ULTRA_SONIC_UNOCCUPIED_TO_OCCUPIED_DELAY);
+		attributes = new AttributeImpl[]{occupancy,occupancySensorType,pirOccupiedToUnoccupiedDelay,
+				pirUnoccupiedToOccupiedDelay,ultraSonicOccupiedToUnoccupiedDelay,ultraSonicUnoccupiedToOccupiedDelay};
+	}
+	
+	@Override
+	public short getId() {
+		return OccupacySensing.ID;
+	}
+
+	@Override
+	public String getName() {
+		return OccupacySensing.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+		return attributes;
+	}
+
+	public Attribute getAttributeOccupancy() {
+		return occupancy;
+	}
+
+	public Attribute getAttributeOccupancySensorType() {
+		return occupancySensorType;
+	}
+
+	public Attribute getAttributePIROccupiedToUnoccupiedDelay() {
+		return pirOccupiedToUnoccupiedDelay;
+	}
+
+	public Attribute getAttributePIRUnoccupiedToOccupiedDelay() {
+		return pirUnoccupiedToOccupiedDelay;
+	}
+
+	public Attribute getAttributeUltraSonicOccupiedToUnoccupiedDelay() {
+		return ultraSonicOccupiedToUnoccupiedDelay;
+	}
+
+	public Attribute getAttributeUltraSonicUnoccupiedToOccupiedDelay() {
+		return ultraSonicUnoccupiedToOccupiedDelay;
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/OccupacySensingCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/RelativeHumidityMeasurementCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/RelativeHumidityMeasurementCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/RelativeHumidityMeasurementCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,91 @@
+/*
+   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.zcl.library.impl.measureament_sensing;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.measureament_sensing.RelativeHumidityMeasurement;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+/**
+ * Implementation of the {@link RelativeHumidityMeasurement} interface
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.4.0
+ *
+ */
+public class RelativeHumidityMeasurementCluster extends ZCLClusterBase implements RelativeHumidityMeasurement {
+
+	private final AttributeImpl measuredValue;
+	private final AttributeImpl minMeasuredValue;
+	private final AttributeImpl maxMeasuredValue;
+	private final AttributeImpl tolerance;
+	
+	private final Attribute[] attributes;
+
+	public RelativeHumidityMeasurementCluster(ZigBeeDevice zbDevice){
+		
+		super(zbDevice);
+		measuredValue = new AttributeImpl(zbDevice,this,Attributes.MEASURED_VALUE_UNSIGNED_16_BIT);
+		minMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MIN_MEASURED_VALUE_UNSIGNED_16_BIT);
+		maxMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MAX_MEASURED_VALUE_UNSIGNED_16_BIT);
+		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/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/RelativeHumidityMeasurementCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/TemperatureMeasurementCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/TemperatureMeasurementCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/TemperatureMeasurementCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,90 @@
+/*
+   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.zcl.library.impl.measureament_sensing;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.measureament_sensing.TemperatureMeasurement;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+/**
+ * Implementation of the {@link TemperatureMeasurement} interface
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.4.0
+ *
+ */
+public class TemperatureMeasurementCluster extends ZCLClusterBase implements TemperatureMeasurement {
+
+	private final AttributeImpl measuredValue;
+	private final AttributeImpl minMeasuredValue;
+	private final AttributeImpl maxMeasuredValue;
+	private final AttributeImpl tolerance;
+	
+	private final Attribute[] attributes;
+
+	public TemperatureMeasurementCluster(ZigBeeDevice zbDevice){
+		super(zbDevice);
+		measuredValue = new AttributeImpl(zbDevice,this,Attributes.MEASURED_VALUE_SIGNED_16_BIT);
+		minMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MIN_MEASURED_VALUE_SIGNED_16_BIT);
+		maxMeasuredValue = new AttributeImpl(zbDevice,this,Attributes.MAX_MEASURED_VALUE_SIGNED_16_BIT);
+		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/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/measureament_sensing/TemperatureMeasurementCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/IASZoneCluster.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/IASZoneCluster.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/IASZoneCluster.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,79 @@
+package it.cnr.isti.zigbee.zcl.library.impl.security_safety;
+
+import it.cnr.isti.zigbee.api.ZigBeeDevice;
+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.security_safety.IASZone;
+import it.cnr.isti.zigbee.zcl.library.api.security_safety.ias_zone.ZoneEnrollResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.Attributes;
+import it.cnr.isti.zigbee.zcl.library.impl.core.AttributeImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZCLClusterBase;
+
+public class IASZoneCluster extends ZCLClusterBase implements IASZone {
+
+	private final AttributeImpl attributeZoneState;
+	private final AttributeImpl attributeZoneType;
+	private final AttributeImpl attributeZoneStatus;
+	private final AttributeImpl attributeIASCIEAddress;
+
+	private final Attribute[] attributes;
+
+	public IASZoneCluster(ZigBeeDevice zbDevice) {
+
+		super(zbDevice);
+		attributeZoneState = new AttributeImpl(zbDevice,this,Attributes.ZONE_STATE);
+		attributeZoneType = new AttributeImpl(zbDevice,this,Attributes.ZONE_TYPE);
+		attributeZoneStatus = new AttributeImpl(zbDevice,this,Attributes.ZONE_STATUS);
+		attributeIASCIEAddress = new AttributeImpl(zbDevice,this,Attributes.IAS_CIE_ADDRESS);
+
+		attributes = new AttributeImpl[]{attributeZoneState, attributeZoneType, attributeZoneStatus, attributeIASCIEAddress};
+	}
+
+	public Attribute getAttributeZoneState() {
+
+		return attributeZoneState;
+	}
+
+	public Attribute getAttributeZoneType() {
+
+		return attributeZoneType;
+	}
+
+	public Attribute getAttributeZoneStatus() {
+
+		return attributeZoneStatus;
+	}
+
+	public Attribute getAttributeIASCIEAddress() {
+
+		return attributeIASCIEAddress;
+	}
+
+	public Response ZoneStatusChangeNotification(byte zoneStatus, byte extendedStatus) {
+
+		return null;
+	}
+
+	public ZoneEnrollResponse ZoneEnrollRequest(byte zoneType, byte manufacturerCode) {
+
+		return null;
+	}
+
+	@Override
+	public short getId() {
+
+		return IASZone.ID;
+	}
+
+	@Override
+	public String getName() {
+
+		return IASZone.NAME;
+	}
+
+	@Override
+	public Attribute[] getStandardAttributes() {
+
+		return attributes;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/IASZoneCluster.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/ias_zone/ZoneEnrollResponseImpl.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/ias_zone/ZoneEnrollResponseImpl.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/ias_zone/ZoneEnrollResponseImpl.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,34 @@
+package it.cnr.isti.zigbee.zcl.library.impl.security_safety.ias_zone;
+
+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.api.security_safety.ias_zone.ZoneEnrollResponse;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ResponseImpl;
+
+public class ZoneEnrollResponseImpl extends ResponseImpl implements ZoneEnrollResponse {
+
+	private int enrollResponseCode;
+	private int zoneID;
+
+	public ZoneEnrollResponseImpl(Response response) throws ZigBeeClusterException {
+		
+		super(response);
+
+		ResponseImpl.checkGeneralCommandFrame(response, ZoneEnrollResponse.ID);
+		ZBDeserializer deserializer = new DefaultDeserializer(getPayload(), 0);
+		enrollResponseCode = deserializer.read_byte();
+		zoneID = deserializer.read_byte();
+	}
+
+	public int getEnrollResponseCode() {
+
+		return enrollResponseCode;
+	}
+
+	public int getZoneID() {
+
+		return zoneID;
+	}
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/main/java/it/cnr/isti/zigbee/zcl/library/impl/security_safety/ias_zone/ZoneEnrollResponseImpl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/core/DefaultDeserializerSerializerTest.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/core/DefaultDeserializerSerializerTest.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/core/DefaultDeserializerSerializerTest.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,84 @@
+/*
+   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.zcl.cluster.impl.core;
+
+import static org.junit.Assert.*;
+import it.cnr.isti.zigbee.zcl.library.api.measureament_sensing.TemperatureMeasurement;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultDeserializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.DefaultSerializer;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+
+import org.junit.Test;
+
+/**
+ * 
+ * Testing class for classes {@link DefaultSerializer} and {@link DefaultDeserializer} 
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ * @since 0.4.0
+ *
+ */
+public class DefaultDeserializerSerializerTest {
+
+	@Test
+	public void testFake() {
+	}
+
+	public void testReadAppendZigBeeType() {
+		Object[] payloadObject = new Object[]{
+				new Integer(-1), new Integer(-1), new Integer(-1), new Integer(-1), //Bitmap Testing
+				new Integer(-1), new Integer(-1), new Integer(-1), new Integer(-1), //Data Testing
+				new Integer(-1), new Integer(-1), new Integer(-1), new Integer(-1), //Signed Testing
+				new Integer(0xFF),  new Integer(0x0F),
+				new Integer(0xFFFF), new Integer(0x00FF), 
+				new Integer(0xFFFFFF), new Integer(0x00FFFF),  
+				new Long(0xFFFFFFFFL), new Long(0x00FFFFFFL), //Unsigned Testing
+				new Integer(-1), new Integer(-1), //Enumeration Testing
+				Boolean.TRUE, Boolean.FALSE, //Boolean Testing
+				"Un po' di dati" //String Testing
+		};
+		byte[] payloadData = new byte[4096]; //Big enough to contain all the data
+		ZigBeeType[] payloadContent = new ZigBeeType[]{
+				ZigBeeType.Bitmap8bit,ZigBeeType.Bitmap16bit,ZigBeeType.Bitmap24bit,ZigBeeType.Bitmap32bit,
+				ZigBeeType.Data8bit, ZigBeeType.Data16bit, ZigBeeType.Data24bit, ZigBeeType.Data32bit,
+				ZigBeeType.SignedInteger8bit, ZigBeeType.SignedInteger16bit, ZigBeeType.SignedInteger24bit, ZigBeeType.SignedInteger32bit,
+				ZigBeeType.UnsignedInteger8bit, ZigBeeType.UnsignedInteger8bit,
+				ZigBeeType.UnsignedInteger16bit, ZigBeeType.UnsignedInteger16bit,
+				ZigBeeType.UnsignedInteger24bit, ZigBeeType.UnsignedInteger24bit,
+				ZigBeeType.UnsignedInteger32bit, ZigBeeType.UnsignedInteger32bit,
+				ZigBeeType.Enumeration8bit, ZigBeeType.Enumeration16bit,
+				ZigBeeType.Boolean, ZigBeeType.Boolean,
+				ZigBeeType.CharacterString
+		};
+		DefaultSerializer serializer = new DefaultSerializer(payloadData,0);
+		DefaultDeserializer deserializer = new DefaultDeserializer(payloadData,0);
+		for (int i = 0; i < payloadContent.length; i++) {
+			serializer.appendZigBeeType(payloadObject[i], payloadContent[i]);
+		}
+		for (int i = 0; i < payloadContent.length; i++) {
+			assertEquals("Reading back serialized "+payloadObject[i]+" as "+payloadContent[i],payloadObject[i], deserializer.readZigBeeType(payloadContent[i]));
+		}
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/core/DefaultDeserializerSerializerTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/global/reporting/ConfigureReportingCommandTest.java
==============================================================================
--- projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/global/reporting/ConfigureReportingCommandTest.java (added)
+++ projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/global/reporting/ConfigureReportingCommandTest.java Thu Jun 21 11:52:53 2012
@@ -1,0 +1,94 @@
+/*
+   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.zcl.cluster.impl.global.reporting;
+
+import static org.junit.Assert.*;
+import it.cnr.isti.zigbee.zcl.library.api.core.Attribute;
+import it.cnr.isti.zigbee.zcl.library.api.core.Subscription;
+import it.cnr.isti.zigbee.zcl.library.api.core.ZigBeeClusterException;
+import it.cnr.isti.zigbee.zcl.library.api.global.AttributeReportingConfigurationRecord;
+import it.cnr.isti.zigbee.zcl.library.impl.attribute.AbstractAttribute;
+import it.cnr.isti.zigbee.zcl.library.impl.core.ZigBeeType;
+import it.cnr.isti.zigbee.zcl.library.impl.global.reporting.AttributeReportingConfigurationRecordImpl;
+import it.cnr.isti.zigbee.zcl.library.impl.global.reporting.ConfigureReportingCommand;
+
+import org.junit.Test;
+
+/**
+ * 
+ * @author <a href="mailto:stefano.lenzi at isti.cnr.it">Stefano "Kismet" Lenzi</a>
+ * @author <a href="mailto:francesco.furfari at isti.cnr.it">Francesco Furfari</a>
+ * @version $LastChangedRevision: 42 $ ($LastChangedDate: 2010-09-23 14:21:48 +0200 (gio, 23 set 2010) $)
+ *
+ */
+public class ConfigureReportingCommandTest {
+
+	@Test
+	public void testGetPayload() {
+		
+		ConfigureReportingCommand cmd = new ConfigureReportingCommand(
+				new AttributeReportingConfigurationRecord[]{new AttributeReportingConfigurationRecordImpl(
+						new Attribute(){
+							public int getId() {
+								return 0;
+							}
+							public String getName() {
+								return "";
+							}
+							public Subscription getSubscription() {
+								return null;
+							}
+							public Class getType() {
+								return null;
+							}
+
+							public Object getValue()
+									throws ZigBeeClusterException {
+								// TODO Auto-generated method stub
+								return null;
+							}
+
+							public ZigBeeType getZigBeeType() {
+								return ZigBeeType.UnsignedInteger32bit;
+							}
+
+							public boolean isReportable() {
+								return true;
+							}
+
+							public boolean isWritable() {
+								// TODO Auto-generated method stub
+								return false;
+							}
+
+							public void setValue(Object o)
+									throws ZigBeeClusterException {
+								// TODO Auto-generated method stub
+								
+							}
+							
+						}, 1, 60, 900, null , 1800)
+				});
+		assertNotNull("Failed to build payload",cmd.getPayload());
+	}
+
+}

Propchange: projects/zb4osgi/sandbox/manlio.bacco/org.aaloa.zb4osgi.zigbee.zcl.library/src/test/java/it/cnr/isti/zigbee/zcl/cluster/impl/global/reporting/ConfigureReportingCommandTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the Commit mailing list