]> git.basschouten.com Git - openhab-addons.git/blob
020ca9b3adff1f76dbe396951c52304a64ec3c34
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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 List<DeviceNode> deviceNodes;
28     private List<Output> outputs;
29     private List<Area> areas;
30
31     public String getName() {
32         return name;
33     }
34
35     public List<DeviceNode> getDeviceNodes() {
36         return deviceNodes != null ? deviceNodes : Collections.<DeviceNode> emptyList();
37     }
38
39     public List<Output> getOutputs() {
40         return outputs != null ? outputs : Collections.<Output> emptyList();
41     }
42
43     public List<Area> getAreas() {
44         return areas != null ? areas : Collections.<Area> emptyList();
45     }
46 }