1 package iotruntime.zigbee;
5 /** Zigbee Message Zcl Configure Reporting Response.
7 * @author Ali Younis <ayounis @ uci.edu>
11 public final class IoTZigbeeMessageZclConfigureReportingResponse extends IoTZigbeeMessage {
13 static public class Attribute {
16 private int attributeId;
17 private boolean successOrFail;
18 private boolean isReport;
23 public Attribute(int _attributeId, boolean _successOrFail, boolean _isReport) {
24 attributeId = _attributeId;
25 successOrFail = _successOrFail;
30 * getAttributeId() method that returns attribute id
34 public int getAttributeId() {
39 * getIsReport() method that gets if the direction is report of receive
43 public boolean getIsReport() {
48 * getSuccessOrFail() method is if the configure for this attribute failed or succeeded
52 public boolean getSuccessOrFail() {
58 private int clusterId;
59 private int profileId;
60 private boolean allSuccess;
61 private List <Attribute> attributes;
66 public IoTZigbeeMessageZclConfigureReportingResponse(int _packetId, int _clusterId, int _profileId, boolean _allSuccess, List <Attribute> _attributes) {
69 clusterId = _clusterId;
70 profileId = _profileId;
71 allSuccess = _allSuccess;
72 attributes = _attributes;
76 * getAllSuccess() method that returns if all the configurations succeeded
80 public boolean getAllSuccess() {
85 * getClusterId() method that returns the cluster id
89 public int getClusterId() {
94 * getProfileId() method that returns the profile id
98 public int getProfileId() {
103 * getAttributes() method that returns if all attributes if one of there was a failure to configure
105 * @return List <Attribute>
107 public List <Attribute> getAttributes() {