-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christian Koch <[email protected]>
Beschreibung in: file:///D:/Prog/Git/mingw64/share/doc/git-doc/git-commit.html
- Loading branch information
Showing
99 changed files
with
10,819 additions
and
207 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
62 changes: 62 additions & 0 deletions
62
....lambda/src/main/java/org/openhab/binding/modbus/lambda/internal/BoilerConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/** | ||
* Copyright (c) 2010-2024 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.modbus.lambda.internal; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
/** | ||
* The {@link BoilerConfiguration} class contains fields mapping | ||
* thing configuration parameters. | ||
* | ||
* @author Paul Frank - Initial contribution | ||
* @author Christian Koch - modified for lambda heat pump based on stiebeleltron binding for modbus | ||
*/ | ||
@NonNullByDefault | ||
public class BoilerConfiguration { | ||
|
||
/** | ||
* Refresh interval in seconds | ||
*/ | ||
private int refresh = 30; | ||
|
||
private int maxTries = 3; | ||
// backwards compatibility and tests | ||
|
||
/** | ||
* Subindex to calculate the base adress of the modbus registers | ||
*/ | ||
private int subindex = 0; | ||
|
||
/** | ||
* Gets refresh period in milliseconds | ||
*/ | ||
public long getRefreshMillis() { | ||
return refresh * 1000; | ||
} | ||
|
||
public int getMaxTries() { | ||
return maxTries; | ||
} | ||
|
||
public void setMaxTries(int maxTries) { | ||
this.maxTries = maxTries; | ||
} | ||
|
||
public int getSubindex() { | ||
return subindex; | ||
} | ||
|
||
public void setSubindex(int subindex) { | ||
this.subindex = subindex; | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
....lambda/src/main/java/org/openhab/binding/modbus/lambda/internal/BufferConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/** | ||
* Copyright (c) 2010-2024 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.modbus.lambda.internal; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
/** | ||
* The {@link BufferConfiguration} class contains fields mapping | ||
* thing configuration parameters. | ||
* | ||
* @author Paul Frank - Initial contribution | ||
* @author Christian Koch - modified for lambda heat pump based on stiebeleltron binding for modbus | ||
*/ | ||
@NonNullByDefault | ||
public class BufferConfiguration { | ||
/** | ||
* Refresh interval in seconds | ||
*/ | ||
private int refresh = 30; | ||
|
||
private int maxTries = 3; | ||
// backwards compatibility and tests | ||
|
||
/** | ||
* Subindex to calculate the base adress of the modbus registers | ||
*/ | ||
private int subindex = 0; | ||
|
||
/** | ||
* Gets refresh period in milliseconds | ||
*/ | ||
public long getRefreshMillis() { | ||
return refresh * 1000; | ||
} | ||
|
||
public int getMaxTries() { | ||
return maxTries; | ||
} | ||
|
||
public void setMaxTries(int maxTries) { | ||
this.maxTries = maxTries; | ||
} | ||
|
||
public int getSubindex() { | ||
return subindex; | ||
} | ||
|
||
public void setSubindex(int subindex) { | ||
this.subindex = subindex; | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...lambda/src/main/java/org/openhab/binding/modbus/lambda/internal/GeneralConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* Copyright (c) 2010-2024 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.modbus.lambda.internal; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
/** | ||
* The {@link GeneralConfiguration} class contains fields mapping | ||
* thing configuration parameters. | ||
* | ||
* @author Paul Frank - Initial contribution | ||
* @author Christian Koch - modified for lambda heat pump based on stiebeleltron binding for modbus | ||
*/ | ||
@NonNullByDefault | ||
public class GeneralConfiguration { | ||
/** | ||
* Refresh interval in seconds | ||
*/ | ||
private int refresh = 30; | ||
|
||
private int maxTries = 3;// backwards compatibility and tests | ||
|
||
/** | ||
* Gets refresh period in milliseconds | ||
*/ | ||
public long getRefreshMillis() { | ||
return refresh * 1000; | ||
} | ||
|
||
public int getMaxTries() { | ||
return maxTries; | ||
} | ||
|
||
public void setMaxTries(int maxTries) { | ||
this.maxTries = maxTries; | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
...src/main/java/org/openhab/binding/modbus/lambda/internal/HeatingCircuitConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/** | ||
* Copyright (c) 2010-2024 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.modbus.lambda.internal; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
/** | ||
* The {@link HeatingCircuitConfiguration} class contains fields mapping | ||
* thing configuration parameters. | ||
* | ||
* @author Paul Frank - Initial contribution | ||
* @author Christian Koch - modified for lambda heat pump based on stiebeleltron binding for modbus | ||
*/ | ||
@NonNullByDefault | ||
public class HeatingCircuitConfiguration { | ||
/** | ||
* Refresh interval in seconds | ||
*/ | ||
private int refresh = 30; | ||
|
||
private int maxTries = 3; | ||
// backwards compatibility and tests | ||
|
||
/** | ||
* Subindex to calculate the base adress of the modbus registers | ||
*/ | ||
private int subindex = 0; | ||
|
||
/** | ||
* Gets refresh period in milliseconds | ||
*/ | ||
public long getRefreshMillis() { | ||
return refresh * 1000; | ||
} | ||
|
||
public int getMaxTries() { | ||
return maxTries; | ||
} | ||
|
||
public void setMaxTries(int maxTries) { | ||
this.maxTries = maxTries; | ||
} | ||
|
||
public int getSubindex() { | ||
return subindex; | ||
} | ||
|
||
public void setSubindex(int subindex) { | ||
this.subindex = subindex; | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
...ambda/src/main/java/org/openhab/binding/modbus/lambda/internal/HeatpumpConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/** | ||
* Copyright (c) 2010-2024 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.modbus.lambda.internal; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
/** | ||
* The {@link HeatpumpConfiguration} class contains fields mapping | ||
* thing configuration parameters. | ||
* | ||
* @author Paul Frank - Initial contribution | ||
* @author Christian Koch - modified for lambda heat pump based on stiebeleltron binding for modbus | ||
*/ | ||
@NonNullByDefault | ||
public class HeatpumpConfiguration { | ||
|
||
/** | ||
* Refresh interval in seconds | ||
*/ | ||
private int refresh = 30; | ||
|
||
private int maxTries = 3; | ||
|
||
// backwards compatibility and tests | ||
|
||
/** | ||
* Subindex to calculate the base adress of the modbus registers | ||
*/ | ||
private int subindex = 0; | ||
|
||
/** | ||
* Gets refresh period in milliseconds | ||
*/ | ||
public long getRefreshMillis() { | ||
return refresh * 1000; | ||
} | ||
|
||
public int getMaxTries() { | ||
return maxTries; | ||
} | ||
|
||
public void setMaxTries(int maxTries) { | ||
this.maxTries = maxTries; | ||
} | ||
|
||
public int getSubindex() { | ||
return subindex; | ||
} | ||
|
||
public void setSubindex(int subindex) { | ||
this.subindex = subindex; | ||
} | ||
} |
Oops, something went wrong.