Skip to content

Commit

Permalink
Signed-off-by: Christian Koch <[email protected]>
Browse files Browse the repository at this point in the history
Beschreibung in:
file:///D:/Prog/Git/mingw64/share/doc/git-doc/git-commit.html
  • Loading branch information
chilobo committed Nov 16, 2024
1 parent 3ae1e5b commit 0ef8734
Show file tree
Hide file tree
Showing 99 changed files with 10,819 additions and 207 deletions.
195 changes: 105 additions & 90 deletions bundles/org.openhab.binding.modbus.lambda/README.md

Large diffs are not rendered by default.

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;
}
}
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;
}
}
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;
}
}
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;
}
}
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;
}
}
Loading

0 comments on commit 0ef8734

Please sign in to comment.