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.bluetooth.am43.internal.data;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The {@link MotorSettings} is contains the settings which are sent in batch to
20 * {@link org.openhab.binding.bluetooth.am43.internal.command.SetSettingsCommand}.
21 * These settings cannot be changed individually and must be sent together in the same command.
23 * @author Connor Petty - Initial contribution
26 public class MotorSettings {
29 private Direction direction;
31 private OperationMode operationMode;
33 private boolean topLimitSet;
35 private boolean bottomLimitSet;
39 private int speed = 0;
46 public Direction getDirection() {
50 public void setDirection(Direction direction) {
51 this.direction = direction;
55 public OperationMode getOperationMode() {
59 public void setOperationMode(OperationMode operationMode) {
60 this.operationMode = operationMode;
63 public boolean isTopLimitSet() {
67 public void setTopLimitSet(boolean value) {
68 this.topLimitSet = value;
71 public boolean isBottomLimitSet() {
72 return bottomLimitSet;
75 public void setBottomLimitSet(boolean value) {
76 this.bottomLimitSet = value;
79 public int getType() {
83 public void setType(int type) {
87 public int getSpeed() {
91 public void setSpeed(int speed) {
95 public int getLength() {
99 public void setLength(int length) {
100 this.length = length;
103 public int getDiameter() {
107 public void setDiameter(int diameter) {
108 this.diameter = diameter;