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

me.legrange.swap.ModemSetup Maven / Gradle / Ivy

There is a newer version: 2.2
Show newest version
package me.legrange.swap;

/**
 * A class that encapsulates the modem sketch's settings.
 *
 * @since 1.0
 * @author Gideon le Grange https://github.com/GideonLeGrange *
 */
public class ModemSetup {

    public ModemSetup(int channel, int networkID, int deviceAddress) {
        this.channel = channel;
        this.networkID = networkID;
        this.deviceAddress = deviceAddress;
    }

    public int getChannel() {
        return channel;
    }

    public int getNetworkID() {
        return networkID;
    }

    public int getDeviceAddress() {
        return deviceAddress;
    }

    public void setChannel(int channel) {
        this.channel = channel;
    }

    public void setNetworkID(int networkID) {
        this.networkID = networkID;
    }

    public void setDeviceAddress(int deviceAddress) {
        this.deviceAddress = deviceAddress;
    }

    @Override
    public String toString() {
        return String.format("channel = %d, network = %4x, address = %d", channel, networkID, deviceAddress);
    }

    
    private  int channel;
    private  int networkID;
    private  int deviceAddress;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy