package com.casic.missiles.modular.system.rs;



import com.casic.missiles.modular.system.dto.DeviceTypeEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by lenovo on 2018/1/8.
 */
public abstract class AbstractRequest {

    public static Map<String, AbstractRequest> abstractRequestHashMap = new HashMap<String, AbstractRequest>();

    static {
//        abstractRequestHashMap.put(DeviceTypeEnum.FireHydrant.toString(), new FireHydrantRequest());
        abstractRequestHashMap.put(DeviceTypeEnum.Liquid.toString(), new LiquidRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.Noise.toString(), new NoiseRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.Methane.toString(), new MethaneRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.WasteGas.toString(), new WasteGasRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.WaterMeter.toString(), new WaterMeterRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.TempPressure.toString(), new TemPressureRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.TempHumi.toString(), new TempHumiRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.CorrEnv.toString(), new CorrEnvRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.CorrRate.toString(), new CorrRateRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.MultiLeak.toString(), new MultiLeakRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.CorrRate.toString(), new CorrRateRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.CorrRate.toString(), new CorrRateRequest());
//        abstractRequestHashMap.put(DeviceTypeEnum.Dig.toString(), new DigRequest());
    }

    private String netType;
    private String concentratorCode;

    public  void send(String devCode,String content,String attemptsMax){//下发参数抽象方法

    }
    public  void getRealData(String devCode){//实时获取抽象方法

    }

    public String getNetType() {
        return netType;
    }

    public void setNetType(String netType) {
        this.netType = netType;
    }

    public String getConcentratorCode() {
        return concentratorCode;
    }

    public void setConcentratorCode(String concentratorCode) {
        this.concentratorCode = concentratorCode;
    }

}
