[iot-gateway/lighting-gateway.git] / client / AndroidClients / LightingController / src / com / lightingcontroller / Zigbee / ZigbeeGroup.java
1 /**************************************************************************************************
2 Filename: ZigBeeGroup.java
3 Revised: $$
4 Revision: $$
6 Description: ZigBee Group Class
8 Copyright (C) {2012} Texas Instruments Incorporated - http://www.ti.com/
11 Redistribution and use in source and binary forms, with or without
12 modification, are permitted provided that the following conditions
13 are met:
15 Redistributions of source code must retain the above copyright
16 notice, this list of conditions and the following disclaimer.
18 Redistributions in binary form must reproduce the above copyright
19 notice, this list of conditions and the following disclaimer in the
20 documentation and/or other materials provided with the
21 distribution.
23 Neither the name of Texas Instruments Incorporated nor the names of
24 its contributors may be used to endorse or promote products derived
25 from this software without specific prior written permission.
27 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
34 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
35 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 **************************************************************************************************/
40 package com.lightingcontroller.Zigbee;
42 public class ZigbeeGroup {
43 private int groupId;
44 private int status;
45 private String groupName;
47 public static final byte groupStatusNotActive = 0;
48 public static final byte groupStatusActive = 1;
50 ZigbeeGroup() {}
52 ZigbeeGroup(String name)
53 {
54 setGroupId(0);
55 setGroupName(name);
56 setStatus(groupStatusNotActive);
57 }
59 ZigbeeGroup(String name, int groupId, int satus)
60 {
61 setGroupId(groupId);
62 setGroupName(name);
63 setStatus(satus);
64 }
66 public int getGroupId() {
67 return groupId;
68 }
70 public void setGroupId(int groupId) {
71 this.groupId = groupId;
72 }
74 public int getStatus() {
75 return status;
76 }
78 public void setStatus(int status) {
79 this.status = status;
80 }
82 public String getGroupName() {
83 return groupName;
84 }
86 public void setGroupName(String groupName) {
87 this.groupName = groupName;
88 }
91 }