From 9ad6b0179be4d351105f1507779d4f41a3a41953 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期六, 07 九月 2024 16:57:40 +0800
Subject: [PATCH] 1、完善代码; 2、江海协议时标(tp)实现中的bug修改。

---
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitCallbackInterface.java                      |   13 ++++
 pipIrr-platform/pipIrr-web/pipIrr-mwTest-rtu/src/main/java/com/dy/pipIrrMwTestRtu/tcpClient/TcpClUnit.java   |    6 +-
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/support/SupportUnit.java                        |    6 +-
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/core/CoreUnit.java                              |    6 +-
 pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/rtuData/RtuDataUnit.java           |    6 +-
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/tcp/TcpUnit.java                        |    6 +-
 pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/RmiClUnit.java      |    6 +-
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/DateTime.java                                 |    4 
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitInterface.java                              |   15 ++--
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java |   21 ------
 pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/Server.java                               |    2 
 /dev/null                                                                                                    |   10 ---
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_81_Down.java      |    4 
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/rmi/RmiUnit.java                        |    6 +-
 pipIrr-platform/pipIrr-mw/pipIrr-mwTest-server/src/main/java/com/dy/testServer/Server.java                   |    4 
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitAdapterInterface.java                       |    3 
 pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/local/CommandInnerDeaLer.java      |    4 
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/ProtocolUnit.java                      |    6 +-
 pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/resource/ResourceUnit.java                |    6 +-
 pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/tcpClient/TcpClUnit.java      |    6 +-
 20 files changed, 63 insertions(+), 77 deletions(-)

diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitAdapterInterface.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitAdapterInterface.java
index 5a03972..b5957b2 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitAdapterInterface.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitAdapterInterface.java
@@ -2,8 +2,7 @@
 
 
 /**
- * 妯″潡鍗曞厓閫傞厤鍣ㄦ帴鍙�
- *
+ * 鍗曞厓閫傞厤鍣ㄦ帴鍙�
  */
 public interface UnitAdapterInterface {
 }
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitCallbackInterface.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitCallbackInterface.java
new file mode 100644
index 0000000..260cb79
--- /dev/null
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitCallbackInterface.java
@@ -0,0 +1,13 @@
+package com.dy.common.mw;
+
+/**
+ * 鍗曞厓鍚姩鎴栧仠姝㈠悗鍥炶皟鎺ュ彛
+ */
+public interface UnitCallbackInterface {
+	/**
+	 * 鍥炶皟鏂规硶
+	 * @param obj
+	 * @throws Exception
+	 */
+	void call(Object obj) throws Exception ;
+}
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitInterface.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitInterface.java
index 95ee7c0..8ffd22a 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitInterface.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitInterface.java
@@ -1,7 +1,7 @@
 package com.dy.common.mw;
 
 /**
- * 妯″潡鍗曞厓鎺ュ彛
+ * 鍗曞厓鎺ュ彛
  *
  */
 public interface UnitInterface {
@@ -9,14 +9,15 @@
 	 * 璁剧疆閫傞厤鍣�
 	 * @throws Exception
 	 */
-	public void setAdapter(UnitAdapterInterface adapter) throws Exception ;
+	void setAdapter(UnitAdapterInterface adapter) throws Exception ;
 	/**
-	 * 鍚姩妯″潡
+	 * 鍚姩鍗曞厓杩愯
+	 * @throws Exception
 	 */
-	public void start(UnitStartedCallbackInterface callback) throws Exception  ;
+	void start(UnitCallbackInterface callback) throws Exception  ;
 	/**
-	 * 鍋滄妯″潡杩愯
+	 * 鍋滄鍗曞厓杩愯
+	 * @throws Exception
 	 */
-	public void stop(UnitStartedCallbackInterface callback) throws Exception  ;
-
+	void stop(UnitCallbackInterface callback) throws Exception  ;
 }
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitStartedCallbackInterface.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitStartedCallbackInterface.java
deleted file mode 100644
index 0b2e44a..0000000
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/UnitStartedCallbackInterface.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.dy.common.mw;
-
-public interface UnitStartedCallbackInterface {
-	/**
-	 * 妯″潡鍚姩鍚庡洖璋�
-	 * @param obj
-	 * @throws Exception
-	 */
-	void call(Object obj) throws Exception ;
-}
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/rmi/RmiUnit.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/rmi/RmiUnit.java
index 8720bcc..8117f66 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/rmi/RmiUnit.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/rmi/RmiUnit.java
@@ -7,7 +7,7 @@
 
 import com.dy.common.mw.UnitAdapterInterface;
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 
 public class RmiUnit implements UnitInterface {
 	
@@ -46,7 +46,7 @@
 	/**
 	 * 鍚姩妯″潡
 	 */
-	public void start(UnitStartedCallbackInterface callback) throws Exception {
+	public void start(UnitCallbackInterface callback) throws Exception {
 		if(!started){
 			started = true ;
 
@@ -85,7 +85,7 @@
 	}
 
 	@Override
-	public void stop(UnitStartedCallbackInterface callback) {
+	public void stop(UnitCallbackInterface callback) {
 	}
 	
 
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/tcp/TcpUnit.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/tcp/TcpUnit.java
index 2b8d31a..ccf2443 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/tcp/TcpUnit.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/channel/tcp/TcpUnit.java
@@ -13,7 +13,7 @@
 
 import com.dy.common.mw.UnitAdapterInterface;
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 
 @SuppressWarnings("unused")
 public class TcpUnit implements UnitInterface {
@@ -63,7 +63,7 @@
 	/**
 	 * 鍚姩妯″潡
 	 */
-	public void start(UnitStartedCallbackInterface callback) throws Exception {
+	public void start(UnitCallbackInterface callback) throws Exception {
 		if(!started){
 			started = true ;
 			/**
@@ -139,7 +139,7 @@
 	 * @throws Exception
 	 */
 	@Override
-	public void stop(UnitStartedCallbackInterface callback) throws Exception {
+	public void stop(UnitCallbackInterface callback) throws Exception {
 		this.tcpIoHandler.stop();
 		this.dataCodecFactory.stop();
 		this.adapter.newUnitStopCallback().callback();
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/core/CoreUnit.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/core/CoreUnit.java
index 6fd31f7..d7c3261 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/core/CoreUnit.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/core/CoreUnit.java
@@ -6,7 +6,7 @@
 import com.dy.common.queue.Queue;
 import com.dy.common.mw.UnitAdapterInterface;
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 
 public class CoreUnit implements UnitInterface {
 	
@@ -64,7 +64,7 @@
 	}
 
 	@Override
-	public void start(UnitStartedCallbackInterface callback) throws Exception {
+	public void start(UnitCallbackInterface callback) throws Exception {
 		if(!started){
 			started = true ;
 			CoreThread ct = CoreThread.getInstance() ;
@@ -85,7 +85,7 @@
 	}
 
 	@Override
-	public void stop(UnitStartedCallbackInterface callback) {
+	public void stop(UnitCallbackInterface callback) {
 	}
 	
 
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/ProtocolUnit.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/ProtocolUnit.java
index 0e280fb..c33a3c3 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/ProtocolUnit.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/ProtocolUnit.java
@@ -5,7 +5,7 @@
 
 import com.dy.common.mw.UnitAdapterInterface;
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 
 
 public class ProtocolUnit implements UnitInterface {
@@ -39,7 +39,7 @@
 	/**
 	 * 鍚姩妯″潡
 	 */
-	public void start(UnitStartedCallbackInterface callback) throws Exception {
+	public void start(UnitCallbackInterface callback) throws Exception {
 		//寰楀埌鍞竴瀹炰緥锛� 骞跺湪鐢熸垚鍞竴瀹炰緥鏃讹紝鎵弿娉ㄨВ绫�
 		AnnotationScan.getIntance() ;
 		
@@ -75,7 +75,7 @@
 	}
 
 	@Override
-	public void stop(UnitStartedCallbackInterface callback) {
+	public void stop(UnitCallbackInterface callback) {
 	}
 	
 	/*
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_81_Down.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_81_Down.java
index e9d431f..909647d 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_81_Down.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/Cd_81_Down.java
@@ -47,10 +47,10 @@
         byte[] bytes = GlCreate.createStart2Cd(para.rtuAddr, para.commandCode);
         if(para.param != null){
             DataCd81Vo cdData = (DataCd81Vo)para.param ;
-            byte[] bs = new byte[8] ;
+            byte[] bs = new byte[3] ;
             bs[0] = (byte)(Integer.parseInt(cdData.getControllerType(), 16));
             bs[1] = cdData.projectNo.byteValue() ;
-            GlCreate.createTp(bs, 2) ;
+            bs[2] = 0x01 ;//01:鎴愬姛 81:澶辫触
             bytes = ByteUtil.bytesMerge(bytes, bs) ;
         }else{
             throw new Exception("涓嬭鍛戒护鍙傛暟鎹负null") ;
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java
index 9a0db38..d2ac976 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java
@@ -114,25 +114,8 @@
         ByteUtil.string2BCD_BE(bs, DateTime.mm(), index + 1) ;
         ByteUtil.string2BCD_BE(bs, DateTime.HH(), index + 2) ;
         ByteUtil.string2BCD_BE(bs, DateTime.dd(), index + 3) ;
-        byte month = Byte.parseByte(DateTime.MM()) ;
-        byte week = (byte)(DateTime.week_Int().byteValue() << 1)  ;
-        String month1 = "0" ;
-        String month2 = "0" ;
-        if(month < 10){
-            month1 = "" + month ;
-        }else{
-            if(month == 10){
-                month1 = "0" ;
-            }else if(month == 11){
-                month1 = "1" ;
-            }else if(month == 12){
-                month1 = "2" ;
-            }
-            week = (byte)(week | 0x01) ;
-        }
-        month2 = "" + week ;
-
-        ByteUtil.string2BCD_BE(bs, month2 + month1, index + 4) ;
+        //浠ヤ笅鍐欐硶鑷劧涔熸槸BCD
+        bs[index + 4] = (byte)((DateTime.week_Int().byteValue() << 5 | Byte.parseByte(DateTime.MM()))) ;
         ByteUtil.string2BCD_BE(bs, DateTime.yy(), index + 5) ;
 
         /*
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/support/SupportUnit.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/support/SupportUnit.java
index 3757b30..38cc9dd 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/support/SupportUnit.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/support/SupportUnit.java
@@ -4,7 +4,7 @@
 import com.dy.common.threadPool.TreadPoolFactory;
 import com.dy.common.mw.UnitAdapterInterface;
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 
 public class SupportUnit implements UnitInterface {
 	
@@ -36,7 +36,7 @@
 	}
 
 	@Override
-	public void start(UnitStartedCallbackInterface callback) throws Exception {
+	public void start(UnitCallbackInterface callback) throws Exception {
 		if(!started){
 			started = true ;
 			if(confVo.enableShortThreadPool) {
@@ -65,7 +65,7 @@
 	}
 
 	@Override
-	public void stop(UnitStartedCallbackInterface callback) {
+	public void stop(UnitCallbackInterface callback) {
 	}
 	
 	/*
diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/DateTime.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/DateTime.java
index c5c1bc4..9a33cc5 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/DateTime.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/util/DateTime.java
@@ -423,7 +423,7 @@
 				case "鍛ㄥ洓" -> 4;
 				case "鍛ㄤ簲" -> 5;
 				case "鍛ㄥ叚" -> 6;
-				case "鍛ㄤ竷" -> 7;
+				case "鍛ㄤ竷" -> 0;//鏍规嵁鍗忚瑕佹眰鏄熸湡澶╀负0
 				default -> 0;
 			};
 		}else{
@@ -434,7 +434,7 @@
 				case "Thu" -> 4;
 				case "Fri" -> 5;
 				case "Sat" -> 6;
-				case "Sun" -> 7;
+				case "Sun" -> 0;//鏍规嵁鍗忚瑕佹眰鏄熸湡澶╀负0
 				default -> 0;
 			};
 		}
diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/Server.java b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/Server.java
index c8ea024..f986e33 100644
--- a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/Server.java
+++ b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/Server.java
@@ -328,7 +328,7 @@
 			*/
 
 			/////////////////
-			//RTU涓婅鏁版嵁澶勭悊妯″潡
+			//RTU涓婅鏁版嵁澶勭悊妯″潡锛堜换鍔℃爲锛�
 			RtuDataUnitConfigVo rducVo = new RtuDataUnitConfigVo();
 			rducVo.resourceLoader = this.resourceLoader ;
 			AdapterImp_RtuDataUnit rducAdap = new AdapterImp_RtuDataUnit();
diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/resource/ResourceUnit.java b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/resource/ResourceUnit.java
index 69699fe..7660124 100644
--- a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/resource/ResourceUnit.java
+++ b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/resource/ResourceUnit.java
@@ -12,7 +12,7 @@
 
 import com.dy.common.mw.UnitAdapterInterface;
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 import com.dy.rtuMw.resource.rtuLog.RtuLogManager;
 import com.dy.common.util.DateTime;
 
@@ -63,7 +63,7 @@
 		ResourceUnit.springContext = springContext ;
 	}
 	@Override
-	public void start(UnitStartedCallbackInterface callback) throws Exception {
+	public void start(UnitCallbackInterface callback) throws Exception {
 		if(ResourceUnit.springContext == null){
 			throw new Exception("Spring涓婁笅鏂囧璞℃湭璁剧疆锛�") ;
 		}
@@ -72,7 +72,7 @@
 	}
 
 	@Override
-	public void stop(UnitStartedCallbackInterface callback) {
+	public void stop(UnitCallbackInterface callback) {
 	}
 
 	/**
diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/local/CommandInnerDeaLer.java b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/local/CommandInnerDeaLer.java
index a2dfc3a..5b498e3 100644
--- a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/local/CommandInnerDeaLer.java
+++ b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/local/CommandInnerDeaLer.java
@@ -1,6 +1,6 @@
 package com.dy.rtuMw.server.local;
 
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 import com.dy.common.mw.channel.tcp.TcpUnit;
 import com.dy.common.mw.protocol.Command;
 import com.dy.rtuMw.server.local.localProtocol.*;
@@ -67,7 +67,7 @@
      * @throws Exception
      */
     private Command stopTcpSv(Command command) throws Exception{
-        TcpUnit.getInstance().stop(new UnitStartedCallbackInterface(){
+        TcpUnit.getInstance().stop(new UnitCallbackInterface(){
             public void call(Object obj) throws Exception {
 
             }
diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/rtuData/RtuDataUnit.java b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/rtuData/RtuDataUnit.java
index c77c198..cada3ed 100644
--- a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/rtuData/RtuDataUnit.java
+++ b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/server/rtuData/RtuDataUnit.java
@@ -2,7 +2,7 @@
 
 import com.dy.common.mw.UnitAdapterInterface;
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 
 public class RtuDataUnit  implements UnitInterface {
 
@@ -33,14 +33,14 @@
 	 * 鍒濆鍖栦笂琛屾暟鎹鐞嗕换鍔℃睜
 	 */
 	@Override
-	public void start(UnitStartedCallbackInterface callback) throws Exception {
+	public void start(UnitCallbackInterface callback) throws Exception {
 		TaskPool.setTaskTreeCofig(new TreeParse().parseConfig(confVo.resourceLoader));
 		callback.call(null) ;
 		System.out.println("RTU鏁版嵁澶勭悊妯″潡鎴愬姛鍚姩");
 	}
 
 	@Override
-	public void stop(UnitStartedCallbackInterface callback) throws Exception {
+	public void stop(UnitCallbackInterface callback) throws Exception {
 	}
 
 }
diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/RmiClUnit.java b/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/RmiClUnit.java
index 4f9fdad..b534caf 100644
--- a/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/RmiClUnit.java
+++ b/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/RmiClUnit.java
@@ -6,7 +6,7 @@
 
 import com.dy.common.mw.UnitAdapterInterface;
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 import com.dy.common.mw.channel.rmi.RmiFrameWork;
 
 public class RmiClUnit  implements UnitInterface {
@@ -43,14 +43,14 @@
 	}
 
 	@Override
-	public void start(UnitStartedCallbackInterface callback) throws Exception {
+	public void start(UnitCallbackInterface callback) throws Exception {
 		System.out.println("Rmi Client妯″潡鎴愬姛鍚姩");
 		this.doStart();
 	    callback.call(null) ;
 	}
 
 	@Override
-	public void stop(UnitStartedCallbackInterface callback) throws Exception {
+	public void stop(UnitCallbackInterface callback) throws Exception {
 		callback.call(null);
 	}
 	
diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/tcpClient/TcpClUnit.java b/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/tcpClient/TcpClUnit.java
index e2f8660..4537b10 100644
--- a/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/tcpClient/TcpClUnit.java
+++ b/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/tcpClient/TcpClUnit.java
@@ -2,7 +2,7 @@
 
 import com.dy.common.mw.UnitAdapterInterface;
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 import com.dy.common.threadPool.ThreadPool;
 import com.dy.common.threadPool.TreadPoolFactory;
 import com.dy.common.util.Callback;
@@ -53,7 +53,7 @@
     }
 
     @Override
-    public void start(UnitStartedCallbackInterface callback) throws Exception {
+    public void start(UnitCallbackInterface callback) throws Exception {
         pool = TreadPoolFactory.getThreadPoolLong() ;
         System.out.println("Tcp Client妯″潡鎴愬姛鍚姩");
         this.doStart();
@@ -61,7 +61,7 @@
     }
 
     @Override
-    public void stop(UnitStartedCallbackInterface callback) throws Exception {
+    public void stop(UnitCallbackInterface callback) throws Exception {
         callback.call(null);
     }
 
diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-server/src/main/java/com/dy/testServer/Server.java b/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-server/src/main/java/com/dy/testServer/Server.java
index 823f420..2349a1a 100644
--- a/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-server/src/main/java/com/dy/testServer/Server.java
+++ b/pipIrr-platform/pipIrr-mw/pipIrr-mwTest-server/src/main/java/com/dy/testServer/Server.java
@@ -9,7 +9,7 @@
 import org.jdom2.Document;
 
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 import com.dy.common.mw.channel.rmi.RmiConfigVo;
 import com.dy.common.mw.channel.rmi.RmiUnit;
 import com.dy.common.util.NumUtil;
@@ -154,7 +154,7 @@
 				rmiAdap.setConfig(rmiVo);
 				RmiUnit rmiUnit = RmiUnit.getInstance();
 				rmiUnit.setAdapter(rmiAdap);
-				rmiUnit.start(new UnitStartedCallbackInterface(){
+				rmiUnit.start(new UnitCallbackInterface(){
 					@Override
 					public void call(Object obj) {
 					}
diff --git a/pipIrr-platform/pipIrr-web/pipIrr-mwTest-rtu/src/main/java/com/dy/pipIrrMwTestRtu/tcpClient/TcpClUnit.java b/pipIrr-platform/pipIrr-web/pipIrr-mwTest-rtu/src/main/java/com/dy/pipIrrMwTestRtu/tcpClient/TcpClUnit.java
index 6d8eced..6fd95b1 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-mwTest-rtu/src/main/java/com/dy/pipIrrMwTestRtu/tcpClient/TcpClUnit.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-mwTest-rtu/src/main/java/com/dy/pipIrrMwTestRtu/tcpClient/TcpClUnit.java
@@ -2,7 +2,7 @@
 
 import com.dy.common.mw.UnitAdapterInterface;
 import com.dy.common.mw.UnitInterface;
-import com.dy.common.mw.UnitStartedCallbackInterface;
+import com.dy.common.mw.UnitCallbackInterface;
 import com.dy.common.util.Callback;
 import com.dy.pipIrrMwTestRtu.ServerProperties;
 import com.dy.pipIrrMwTestRtu.tcpClient.upData.UpData;
@@ -42,14 +42,14 @@
     }
 
     @Override
-    public void start(UnitStartedCallbackInterface callback) throws Exception {
+    public void start(UnitCallbackInterface callback) throws Exception {
         System.out.println("Tcp Client妯″潡鎴愬姛鍚姩");
         this.doStart();
         callback.call(null) ;
     }
 
     @Override
-    public void stop(UnitStartedCallbackInterface callback) throws Exception {
+    public void stop(UnitCallbackInterface callback) throws Exception {
         callback.call(null);
     }
 

--
Gitblit v1.8.0