不同类型开关电源区分 码市 的开发需求难点

package controller.com.codermart.controller.model;

/**
 * Created by wanzhongLiao on 2023/10/3.
 *
 * 答案:
 * 通过电压或电流波形区分上述两种电源
 * 构建如下实体对象即可
 * 通过 电压
 *      电流波形区
 * 字段过滤即可取确定两种电源
 */
public class Typifier {//
    private String id;
    private String TypifierName;//型号典型代表名称
    private String variousBatteryChargersType;//:各类电池充电器类型
    private String spotlightType;//射灯类型
    private Boolean connectingMainsflag;//是否接入市电

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTypifierName() {
        return TypifierName;
    }

    public void setTypifierName(String typifierName) {
        TypifierName = typifierName;
    }

    public String getVariousBatteryChargersType() {
        return variousBatteryChargersType;
    }

    public void setVariousBatteryChargersType(String variousBatteryChargersType) {
        this.variousBatteryChargersType = variousBatteryChargersType;
    }

    public String getSpotlightType() {
        return spotlightType;
    }

    public void setSpotlightType(String spotlightType) {
        this.spotlightType = spotlightType;
    }

    public Boolean getConnectingMainsflag() {
        return connectingMainsflag;
    }

    public void setConnectingMainsflag(Boolean connectingMainsflag) {
        this.connectingMainsflag = connectingMainsflag;
    }
}

class SwitchingPowerSupply{ //两开关电源
    private String id;
    private String typifierId;
    private String flybackPulseModulationType;//反激式(脉冲调制)类型
    private String fixedLoadPowerNonPulseModulationType;//固定负载功率式(非脉冲调制)类型
    private Integer sampleFrequency;//采样频率
    private Integer power; //电源功率
    private Integer voltage; //电压
    private String currentWaveform; //电流波形

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTypifierId() {
        return typifierId;
    }

    public void setTypifierId(String typifierId) {
        this.typifierId = typifierId;
    }

    public String getFlybackPulseModulationType() {
        return flybackPulseModulationType;
    }

    public void setFlybackPulseModulationType(String flybackPulseModulationType) {
        this.flybackPulseModulationType = flybackPulseModulationType;
    }

    public String getFixedLoadPowerNonPulseModulationType() {
        return fixedLoadPowerNonPulseModulationType;
    }

    public void setFixedLoadPowerNonPulseModulationType(String fixedLoadPowerNonPulseModulationType) {
        this.fixedLoadPowerNonPulseModulationType = fixedLoadPowerNonPulseModulationType;
    }

    public Integer getSampleFrequency() {
        return sampleFrequency;
    }

    public void setSampleFrequency(Integer sampleFrequency) {
        this.sampleFrequency = sampleFrequency;
    }

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }

    public Integer getVoltage() {
        return voltage;
    }

    public void setVoltage(Integer voltage) {
        this.voltage = voltage;
    }

    public String getCurrentWaveform() {
        return currentWaveform;
    }

    public void setCurrentWaveform(String currentWaveform) {
        this.currentWaveform = currentWaveform;
    }
}

你可能感兴趣的:(解决方案,开发语言,java,算法,后端,分布式)