zhubaomin
4 天以前 ff3d35c172c5cf5f3ebf8ed710643f8038c3675b
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/Driver.java
@@ -14,6 +14,21 @@
   protected HashMap<String, Class<CodeParse>> downCode2Class = new HashMap<>() ;
   protected HashMap<String, CodeParse> downCode2ClassInstance = new HashMap<>() ;
   protected Notify notify ;
   /**
    * 清空自己
    */
   public abstract void clear() ;
   /**
     * 设置RTU信息通知器
     * @param notify 通知
     */
   public void setNotify(Notify notify){
      this.notify = notify ;
   }
   /**
    * 单线程单例Driver模式下运行
    * 扫描识别功能码注解类
@@ -24,7 +39,6 @@
    * 扫描识别功能码注解类
    * @param driver 驱动
    * @param protocolName 协议名称
    * @param uri URI
    * @param scanRootPackage 扫描包
    * @throws Exception 异常
    */
@@ -159,5 +173,16 @@
    */
   public abstract MidResult[] createCommand(Boolean isLowPower, Command command, Object... params);
   
   /**
    * 构造下行透传数据(命令)
    * @param isLowPower 是否在低功耗环境下运行
    * @param command 命令
    * @return MidResult[]
    */
   public MidResult[] transparentCommand(Boolean isLowPower, Command command, Object... params){
      return null ;
   }
}