From e3e87256b0f42394e793c3211b1b1a70bf924f28 Mon Sep 17 00:00:00 2001 From: zengwenjie <1663900244@qq.com> Date: Fri, 19 Sep 2025 20:47:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E5=8C=96=E3=80=8CElement=E3=80=8D?= =?UTF-8?q?=E7=9A=84=E3=80=8CReady...=E3=80=8D=E7=B3=BB=E5=88=97=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Deedy.Activity/Controller/Runtime.cs | 20 ++++++++++++++++++- DeedyDesigner/Deedy.Activity/IElement.cs | 6 +++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/DeedyDesigner/Deedy.Activity/Controller/Runtime.cs b/DeedyDesigner/Deedy.Activity/Controller/Runtime.cs index 02260c3..99cfdd6 100644 --- a/DeedyDesigner/Deedy.Activity/Controller/Runtime.cs +++ b/DeedyDesigner/Deedy.Activity/Controller/Runtime.cs @@ -6,9 +6,27 @@ using System.Threading.Tasks; namespace Deedy.Activity { - public sealed class Runtime + public sealed class Runtime : IActivity { public Runtime() { } public WorkMode WorkMode { get; internal set; } = WorkMode.Waiting; + public ExpandoMapping ExpandoMapping { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } + + Runtime? IActivity.Runtime => throw new NotImplementedException(); + + public void ReadyToEditing(Runtime runtime) + { + throw new NotImplementedException(); + } + + public void ReadyToRunning(Runtime runtime) + { + throw new NotImplementedException(); + } + + public void ReadyToWorking(IElement? parent = null, Output? output = null) + { + throw new NotImplementedException(); + } } } diff --git a/DeedyDesigner/Deedy.Activity/IElement.cs b/DeedyDesigner/Deedy.Activity/IElement.cs index c490797..021cfa8 100644 --- a/DeedyDesigner/Deedy.Activity/IElement.cs +++ b/DeedyDesigner/Deedy.Activity/IElement.cs @@ -16,7 +16,11 @@ namespace Deedy.Activity /// 「LinkTo」与「Unlink」方法只处理父子级关系映射,不处理「Elements」集合的添加与删除... /// 「ReadyToWorking」方法会先进行「LinkTo」再进行「CombineElements」操作... /// 「ReadyToEditing」方法会迭代进行「BuildParamMapping」操作... - /// 「ReadyToRunning」方法会迭代进行「CheckLogicConfigs」操作... + /// 「ReadyToRunning」方法会迭代进行「CheckLogicConfigs」操作,检查「Element」是否具备执行条件... + /// 「ReadyToRunning」操作如下: + /// 1、检查所有「视图」与「动作」的标识是否有效,即被引用的节点必须有不重复的「标识」... + /// 2、深度遍历解决方案,检查解决方案中所有「视图」与「动作」的参数配置及引用(即:动作执行时其引用参数是否加载到上下文)是否有效... + /// 3、检查所有「视图」与「动作」所需要的信道配置是否正确(即:在动作执行时信道上下文中是否有信道实体) /// public interface IElement : IActivity, INotifyPropertyChanged {