All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.martiii.modbustcpjava.net.Task Maven / Gradle / Ivy

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 +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy