me.martiii.modbustcpjava.net.Task Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of modbus-tcp-java Show documentation
Show all versions of modbus-tcp-java Show documentation
Modbus-TCP protocol for java.
The newest version!
package me.martiii.modbustcpjava.net;
import me.martiii.modbustcpjava.protocol.ModbusHeader;
import me.martiii.modbustcpjava.protocol.ModbusRequest;
public class Task {
private ModbusHeader header;
private ModbusRequest request;
private Callback callback;
public Task(ModbusHeader header, ModbusRequest request, Callback callback) {
this.header = header;
this.request = request;
this.callback = callback;
}
public ModbusHeader getHeader() {
return header;
}
public ModbusRequest getRequest() {
return request;
}
public Callback getCallback() {
return callback;
}
@Override
public String toString() {
return "Task{" +
"header=" + header +
", request=" + request +
'}';
}
}