]> git.basschouten.com Git - openhab-addons.git/blob
ab0617a377776e325ac8bddccd6e8ce5dc652fef
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.io.transport.modbus.endpoint;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * ModbusSlaveEndpoint contains minimal connection information to establish connection to the slave. End point equals
19  * and hashCode methods should be implemented such that
20  * they can be used to differentiate different physical slaves. Read and write transactions are processed
21  * one at a time if they are associated with the same endpoint (in the sense of equals and hashCode).
22  *
23  * Note that, endpoint class might not include all configuration that might be necessary to actually
24  * communicate with the slave, just the data that is required to establish the connection.
25  *
26  * @author Sami Salonen - Initial contribution
27  */
28 @NonNullByDefault
29 public interface ModbusSlaveEndpoint {
30     public <R> R accept(ModbusSlaveEndpointVisitor<R> visitor);
31 }