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  ;
}