2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.robonect.internal.model;
16 * Object holding information from the status section of the mowers status response.
18 * @author Marco Meyer - Initial contribution
25 private MowerStatus status;
26 private MowerMode mode;
27 private boolean stopped;
31 * @return - the battery level in percent. (0-100)
33 public int getBattery() {
38 * @return - The duration in seconds the mower is already in the current {@link #status}.
40 public int getDuration() {
45 * @return - The distance from the charging station (in case it searches the remote starting point)
47 public int getDistance() {
52 * @return - The hours the mower was in use so far.
54 public int getHours() {
59 * @return - The status the mower is currently in. see {@link MowerStatus} for details.
61 public MowerStatus getStatus() {
66 * @return - true if the mower is currentyl stopped, false otherwise.
68 public boolean isStopped() {
73 * @return - The mode the mower is currently in. See {@link MowerMode} for details.
75 public MowerMode getMode() {
79 public void setBattery(int battery) {
80 this.battery = battery;
83 public void setDuration(int duration) {
84 this.duration = duration;
87 public void setDistance(int distance) {
88 this.distance = distance;
91 public void setHours(int hours) {
95 public void setStatus(MowerStatus status) {
99 public void setMode(MowerMode mode) {
103 public void setStopped(boolean stopped) {
104 this.stopped = stopped;