RfidClient.java 2.86 KB
package com.yoho.rfid.model;

/**
 * 读写器
 */
public class RfidClient {

    private String macId;
    private String ip;
    private String port;
    /**
     * 天线是否启用
     */
    private boolean power0;
    private boolean power1;
    private boolean power2;
    private boolean power3;

    /**
     * 天线功率
     */
    private int capacity0;
    private int capacity1;
    private int capacity2;
    private int capacity3;

    /**
     * 工作模式,SPEED_FASTEST(0), SPEED_NORMAL(1), SPEED_POWERSAVE(2), SPEED_FULL_POWER(3);
     */
    private int speedMode;

    public String getMacId() {
        return macId;
    }

    public void setMacId(String macId) {
        this.macId = macId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public boolean isPower1() {
        return power1;
    }

    public void setPower1(boolean power1) {
        this.power1 = power1;
    }

    public boolean isPower2() {
        return power2;
    }

    public void setPower2(boolean power2) {
        this.power2 = power2;
    }

    public boolean isPower3() {
        return power3;
    }

    public void setPower3(boolean power3) {
        this.power3 = power3;
    }

    public int getCapacity1() {
        return capacity1;
    }

    public void setCapacity1(int capacity1) {
        this.capacity1 = capacity1;
    }

    public int getCapacity2() {
        return capacity2;
    }

    public void setCapacity2(int capacity2) {
        this.capacity2 = capacity2;
    }

    public int getCapacity3() {
        return capacity3;
    }

    public void setCapacity3(int capacity3) {
        this.capacity3 = capacity3;
    }

    public int getSpeedMode() {
        return speedMode;
    }

    public void setSpeedMode(int speedMode) {
        this.speedMode = speedMode;
    }

    public boolean isPower0() {
        return power0;
    }

    public void setPower0(boolean power0) {
        this.power0 = power0;
    }

    public int getCapacity0() {
        return capacity0;
    }

    public void setCapacity0(int capacity0) {
        this.capacity0 = capacity0;
    }

    @Override
    public String toString() {
        return "RfidClient{" +
                "macId='" + macId + '\'' +
                ", ip='" + ip + '\'' +
                ", port='" + port + '\'' +
                ", power0=" + power0 +
                ", power1=" + power1 +
                ", power2=" + power2 +
                ", power3=" + power3 +
                ", capacity0=" + capacity0 +
                ", capacity1=" + capacity1 +
                ", capacity2=" + capacity2 +
                ", capacity3=" + capacity3 +
                ", speedMode=" + speedMode +
                '}';
    }
}