Browse Source

将 `AgvSystems` 类迁移到 `AgvWorld` 并新增 `AgvWorld` 类

将 `AgvSystems` 类的 `[BelongTo]` 特性从 `MainWorld` 修改为 `AgvWorld`。
在 `AgvWorld.cs` 文件中新增了 `AgvWorld` 类,该类继承自 `MainWorld`,
并添加了 `Description` 特性和 `Interval` 属性,设置执行周期为 500 毫秒。
林豪 左 1 year ago
parent
commit
ef60f15b5b
2 changed files with 18 additions and 1 deletions
  1. 1 1
      WCS.WorkEngineering/Systems/AgvSystems.cs
  2. 17 0
      WCS.WorkEngineering/Worlds/AgvWorld.cs

+ 1 - 1
WCS.WorkEngineering/Systems/AgvSystems.cs

@@ -21,7 +21,7 @@ namespace WCS.WorkEngineering.Systems
     /// <summary>
     ///  Agv交互系统
     /// </summary>
-    [BelongTo(typeof(MainWorld))]
+    [BelongTo(typeof(AgvWorld))]
     [Description("Agv交互系统")]
     public class AgvSystems : DeviceSystem<Station>
     {

+ 17 - 0
WCS.WorkEngineering/Worlds/AgvWorld.cs

@@ -0,0 +1,17 @@
+using System.ComponentModel;
+
+namespace WCS.WorkEngineering.Worlds
+{
+    /// <summary>
+    /// AGV交互世界
+    /// </summary>
+    [Description("AGV交互世界")]
+    public class AgvWorld : MainWorld
+    {
+        /// <summary>
+        ///  世界执行周期间隔
+        ///  单位:毫秒
+        /// </summary>
+        protected override int Interval => 500;
+    }
+}