liurunyu
2025-07-31 85f4fbf75505c35a4d0e53515ffb3affb6fd95f2
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitInterface.java
New file
@@ -0,0 +1,23 @@
package com.dy.common.mw;
/**
 * 单元接口
 *
 */
public interface UnitInterface {
   /**
    * 设置适配器
    * @throws Exception
    */
   void setAdapter(UnitAdapterInterface adapter) throws Exception ;
   /**
    * 启动单元运行
    * @throws Exception
    */
   void start(UnitCallbackInterface callback) throws Exception  ;
   /**
    * 停止单元运行
    * @throws Exception
    */
   void stop(UnitCallbackInterface callback) throws Exception  ;
}