定义Action的抽象基类树形继承结构
This commit is contained in:
@@ -107,5 +107,10 @@ namespace Deedy.Activity
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ReadyToWorking(Runtime? runtime)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
|
||||||
|
public class ParmDefineAttribute : Attribute
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
12
DeedyDesigner/Deedy.Activity/Contract/Entities/Info.cs
Normal file
12
DeedyDesigner/Deedy.Activity/Contract/Entities/Info.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public class Info
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
14
DeedyDesigner/Deedy.Activity/Contract/Output.cs
Normal file
14
DeedyDesigner/Deedy.Activity/Contract/Output.cs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public abstract class Output
|
||||||
|
{
|
||||||
|
protected abstract void DoAppendInfo(Info info);
|
||||||
|
public void AppendInfo(Info info) { this.DoAppendInfo(info); }
|
||||||
|
}
|
||||||
|
}
|
||||||
12
DeedyDesigner/Deedy.Activity/Controller/Runtime.cs
Normal file
12
DeedyDesigner/Deedy.Activity/Controller/Runtime.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public sealed class Runtime
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
12
DeedyDesigner/Deedy.Activity/Controller/Solution.cs
Normal file
12
DeedyDesigner/Deedy.Activity/Controller/Solution.cs
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public sealed class Solution
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,8 +7,4 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="Attribute\" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -10,12 +10,13 @@ namespace Deedy.Activity
|
|||||||
{
|
{
|
||||||
public abstract class DeedyAction : IDeedyAction
|
public abstract class DeedyAction : IDeedyAction
|
||||||
{
|
{
|
||||||
|
protected internal DeedyAction() { }
|
||||||
public string DEClass { get; protected internal set; } = "";
|
public string DEClass { get; protected internal set; } = "";
|
||||||
public string DETitle { get; set; } = "";
|
public string DETitle { get; set; } = "";
|
||||||
public string DERemark { get; set; } = "";
|
public string DERemark { get; set; } = "";
|
||||||
public string DEIdentify { get; set; } = "";
|
public string DEIdentify { get; set; } = "";
|
||||||
public IDeedyElement? DeedyParent { get; protected internal set; }
|
public IDeedyElement? DeedyParent { get; protected internal set; }
|
||||||
public IActionViewer? DeedyViewer { get; protected internal set; }
|
public IActionViewer? ActionViewer { get; protected internal set; }
|
||||||
public DeedyElementCollection Children { get; set; } = new();
|
public DeedyElementCollection Children { get; set; } = new();
|
||||||
|
|
||||||
public IDeedyElement DeedyRoot => (this.DeedyParent == null) ? this : this.DeedyParent.DeedyRoot;
|
public IDeedyElement DeedyRoot => (this.DeedyParent == null) ? this : this.DeedyParent.DeedyRoot;
|
||||||
@@ -54,7 +55,7 @@ namespace Deedy.Activity
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void InsertInFront(IDeedyElement deedyElement)
|
public void InsertToFore(IDeedyElement deedyElement)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|||||||
13
DeedyDesigner/Deedy.Activity/DeedyAction/ExecAction.cs
Normal file
13
DeedyDesigner/Deedy.Activity/DeedyAction/ExecAction.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public abstract class ExecAction
|
||||||
|
{
|
||||||
|
protected internal ExecAction() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public sealed class FlowInvoker : ExecAction
|
||||||
|
{
|
||||||
|
public FlowInvoker() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
13
DeedyDesigner/Deedy.Activity/DeedyAction/FlowAction.cs
Normal file
13
DeedyDesigner/Deedy.Activity/DeedyAction/FlowAction.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public abstract class FlowAction
|
||||||
|
{
|
||||||
|
protected internal FlowAction() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public abstract class AtomicityDiagram : FlowAction
|
||||||
|
{
|
||||||
|
public AtomicityDiagram() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public abstract class CombineDiagram : FlowAction
|
||||||
|
{
|
||||||
|
public CombineDiagram() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public abstract class ContainerDiagram : FlowAction
|
||||||
|
{
|
||||||
|
public ContainerDiagram() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
13
DeedyDesigner/Deedy.Activity/DeedyAction/FuncAction.cs
Normal file
13
DeedyDesigner/Deedy.Activity/DeedyAction/FuncAction.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public abstract class FuncAction
|
||||||
|
{
|
||||||
|
protected internal FuncAction() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public abstract class AtomicityFunction : FuncAction
|
||||||
|
{
|
||||||
|
public AtomicityFunction() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public abstract class CombineFunction : FuncAction
|
||||||
|
{
|
||||||
|
public CombineFunction() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public abstract class ContainerFunction : FuncAction
|
||||||
|
{
|
||||||
|
public ContainerFunction() { }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -67,7 +67,7 @@ namespace Deedy.Activity
|
|||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void InsertInFront(IDeedyElement deedyElement)
|
public void InsertToFore(IDeedyElement deedyElement)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,5 +12,6 @@ namespace Deedy.Activity
|
|||||||
{
|
{
|
||||||
[AllowNull]
|
[AllowNull]
|
||||||
public IDeedyAction DeedyAction { get; set; }
|
public IDeedyAction DeedyAction { get; set; }
|
||||||
|
public void ReadyToWorking(Runtime? runtime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ namespace Deedy.Activity
|
|||||||
{
|
{
|
||||||
public interface IDeedyAction : IDeedyElement
|
public interface IDeedyAction : IDeedyElement
|
||||||
{
|
{
|
||||||
public IActionViewer? DeedyViewer { get; }
|
public IActionViewer? ActionViewer { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Deedy.Activity
|
|||||||
public string DEIdentify { get; set; }
|
public string DEIdentify { get; set; }
|
||||||
public IDeedyElement? DeedyParent { get; }
|
public IDeedyElement? DeedyParent { get; }
|
||||||
public IDeedyElement DeedyRoot { get; }
|
public IDeedyElement DeedyRoot { get; }
|
||||||
public void InsertInFront(IDeedyElement deedyElement);
|
public void InsertToFore(IDeedyElement deedyElement);
|
||||||
public void InsertAtRear(IDeedyElement deedyElement);
|
public void InsertAtRear(IDeedyElement deedyElement);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user