]> git.basschouten.com Git - openhab-addons.git/blob
09099d62f2976cca936086692a7278d03dad8981
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.lutron.internal.discovery.project;
14
15 import java.util.Collections;
16 import java.util.List;
17
18 /**
19  * This class represents a location defined in the Lutron system. Areas are organized
20  * hierarchically and can represent an entire house, a room in the house, or a specific
21  * location within a room.
22  *
23  * @author Allan Tong - Initial contribution
24  */
25 public class Area {
26     private String name;
27     private Integer integrationId;
28     private List<DeviceNode> deviceNodes;
29     private List<Output> outputs;
30     private List<Area> areas;
31
32     public String getName() {
33         return name;
34     }
35
36     public Integer getIntegrationId() {
37         return integrationId;
38     }
39
40     public List<DeviceNode> getDeviceNodes() {
41         return deviceNodes != null ? deviceNodes : Collections.<DeviceNode> emptyList();
42     }
43
44     public List<Output> getOutputs() {
45         return outputs != null ? outputs : Collections.<Output> emptyList();
46     }
47
48     public List<Area> getAreas() {
49         return areas != null ? areas : Collections.<Area> emptyList();
50     }
51 }