/*
 * Copyright (c) OSGi Alliance (2013). All Rights Reserved.
 * 
 * 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 org.osgi.service.zigbee;

/**
 * This interface represents a listener to events from ZigBee Device nodes
 * 
 * @version 1.0
 */
public interface ZigBeeEventListener {

	/**
	 * Property key for the optional minimum interval, in seconds between
	 * issuing reports of the attribute A ZigBee Event Listener service can
	 * declare the minimum frequency at which events it wants notifications.
	 */
	public final static String	MIN_REPORT_INTERVAL	= "zigbee.attribute.min.report.interval";

	/**
	 * Property key for the optional maximum interval, in seconds between
	 * issuing reports of the attribute A ZigBee Event Listener service can
	 * declare the maximum frequency at which events it wants notifications.
	 */
	public final static String	MAX_REPORT_INTERVAL	= "zigbee.attribute.max.report.interval";

	/**
	 * Property key for the optional maximum change to the attribute that will
	 * result in a report being issued. A ZigBee Event Listener service can
	 * declare the maximum frequency at which events it wants notifications.
	 */
	public final static String	REPORTABLE_CHANGE	= "zigbee.attribute.reportable.change";

	/**
	 * Property key for the optional maximum expected time, in seconds, between
	 * received reports for the attribute. A ZigBee Event Listener service can
	 * declare the maximum frequency at which events it wants notifications.
	 */
	public final static String	TIMEOUT_PERIOD		= "zigbee.attribute.timeout.period";

	/**
	 * Callback method that is invoked for received events. This method must be
	 * called asynchronously.
	 * 
	 * @param event a set of events
	 */
	public void notifyEvent(ZigBeeEvent event);

	/**
	 * Notifies a failure, i.e. when either a
	 * ZigBeeException.UNSUPPORTED_ATTRIBUTE, or a
	 * ZigBeeException.UNREPORTABLE_ATTRIBUTE, or ZigBeeException.INVALID_VALUE,
	 * or ZigBeeException.INVALID_DATA_TYPE status occurs.
	 * 
	 * @param e the ZigBeeException.
	 */
	public void onFailure(ZigBeeException e);

}

@@ -798,16 +798,292 @@
 ener %7B%0A%0A
+%09/**%0A%09 * Property key for the optional attribute data type of an attribute%0A%09 * reporting configuration record, cf. ZCL Figure 2.16 Format of the%0A%09 * Attribute Reporting Configuration Record.%0A%09 */%0A%09public final static String%09ATTRIBUTE_DATA_TYPE%09= %22zigbee.attribute.datatype%22;%0A%0A
 %09/**%0A%09 *
@@ -1178,32 +1178,33 @@
 of the attribute
+.
  A ZigBee Event 
@@ -1462,32 +1462,32 @@
 seconds between%0A
-
 %09 * issuing repo
@@ -1506,16 +1506,17 @@
 ttribute
+.
  A ZigBe

Add ATTRIBUTE_DATA_TYPE = "zigbee.attribute.datatype" in ZigBeeEventListener.