]> git.basschouten.com Git - openhab-addons.git/blob
ee906ef31a568111af31c3c1a82be5678eb61389
[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.automation.pidcontroller.internal.handler;
14
15 /**
16  *
17  * @author Fabian Wolter - Initial Contribution
18  */
19 public class PIDOutputDTO {
20     private double output;
21     private double proportionalPart;
22     private double integralPart;
23     private double derivativePart;
24     private double error;
25
26     public PIDOutputDTO(double output, double proportionalPart, double integralPart, double derivativePart,
27             double error) {
28         this.output = output;
29         this.proportionalPart = proportionalPart;
30         this.integralPart = integralPart;
31         this.derivativePart = derivativePart;
32         this.error = error;
33     }
34
35     public double getOutput() {
36         return output;
37     }
38
39     public double getProportionalPart() {
40         return proportionalPart;
41     }
42
43     public double getIntegralPart() {
44         return integralPart;
45     }
46
47     public double getDerivativePart() {
48         return derivativePart;
49     }
50
51     public double getError() {
52         return error;
53     }
54 }