]> git.basschouten.com Git - openhab-addons.git/blob
ca3c4f1dad043d0bbd387f6309dbd7efc2521ae0
[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.millheat.internal.model;
14
15 import java.time.LocalDateTime;
16
17 /**
18  * The {@link Mode} represents a mode with start and end time
19  *
20  * @author Arne Seime - Initial contribution
21  */
22 public class Mode {
23     private final ModeType mode;
24     private final LocalDateTime start;
25     private final LocalDateTime end;
26
27     public Mode(final ModeType mode, final LocalDateTime start, final LocalDateTime end) {
28         this.mode = mode;
29         this.start = start;
30         this.end = end;
31     }
32
33     public ModeType getMode() {
34         return mode;
35     }
36
37     public LocalDateTime getStart() {
38         return start;
39     }
40
41     public LocalDateTime getEnd() {
42         return end;
43     }
44 }