package org.ts.ddcs.DataSaveProcesser;


import org.ts.ddcs.DataTemplate.DataTemplateInterface;
import org.ts.ddcs.Entity.CommandEntity;
import org.ts.ddcs.log.LogHelper;
import org.ts.ddcs.Tool.BytesHelp;
import org.ts.ddcs.Worker.DataProcess;
import org.ts.ddcs.Worker.DataProcessHolder;

import java.util.concurrent.LinkedBlockingQueue;

/**
 * 水资源 设置自报种类及时间间隔
 */
@SuppressWarnings("all")
public class DataSaveProcesserSzyCA1 extends DataSaveProcesser {
    @Override
    public void Save(DataTemplateInterface dataTemplateInterface) {
        super.Save(dataTemplateInterface);
        String rtucode = BytesHelp.byte2HexStr(dataTemplateInterface.RtuCode());
        LogHelper.info("SAVE:" + rtucode +" "+dataTemplateInterface.GetFeture());
        LogHelper.info(dataTemplateInterface.getDataInfo());

        //DataProcess.CommandComplete(rtucode);
       // DataProcessHolder.newInstance().dataProcess.SubmitRelayManageTask(dataTemplateInterface);

       // DataProcess.DownloadNotify(rtucode);
    }
}
