将 `AgvSystems` 类的 `[BelongTo]` 特性从 `MainWorld` 修改为 `AgvWorld`。 在 `AgvWorld.cs` 文件中新增了 `AgvWorld` 类,该类继承自 `MainWorld`, 并添加了 `Description` 特性和 `Interval` 属性,设置执行周期为 500 毫秒。
@@ -21,7 +21,7 @@ namespace WCS.WorkEngineering.Systems
/// <summary>
/// Agv交互系统
/// </summary>
- [BelongTo(typeof(MainWorld))]
+ [BelongTo(typeof(AgvWorld))]
[Description("Agv交互系统")]
public class AgvSystems : DeviceSystem<Station>
{
@@ -0,0 +1,17 @@
+using System.ComponentModel;
+
+namespace WCS.WorkEngineering.Worlds
+{
+ /// <summary>
+ /// AGV交互世界
+ /// </summary>
+ [Description("AGV交互世界")]
+ public class AgvWorld : MainWorld
+ {
+ /// 世界执行周期间隔
+ /// 单位:毫秒
+ protected override int Interval => 500;
+ }
+}