2 * Copyright (c) 2010-2020 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.io.transport.modbus.endpoint;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
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).
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.
26 * @author Sami Salonen - Initial contribution
29 public interface ModbusSlaveEndpoint {
30 public <R> R accept(ModbusSlaveEndpointVisitor<R> visitor);