|  |  | 
 |  |  |    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模式下运行 | 
 |  |  |     * 扫描识别功能码注解类 | 
 |  |  | 
 |  |  |     * 扫描识别功能码注解类 | 
 |  |  |     * @param driver 驱动 | 
 |  |  |     * @param protocolName 协议名称 | 
 |  |  |     * @param uri URI | 
 |  |  |     * @param scanRootPackage 扫描包 | 
 |  |  |     * @throws Exception 异常 | 
 |  |  |     */ | 
 |  |  | 
 |  |  |     */ | 
 |  |  |    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 ; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |