forked from PHOENIXCONTACT/MORYX-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNodeClassification.cs
55 lines (46 loc) · 1.33 KB
/
NodeClassification.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright (c) 2023, Phoenix Contact GmbH & Co. KG
// Licensed under the Apache License, Version 2.0
using System;
namespace Moryx.Workplans
{
/// <summary>
/// Classification of a connector to increase semantic meaning
/// Flags: Failure || Workplan borders || Exit point || Entry point
/// </summary>
[Flags]
public enum NodeClassification
{
/// <summary>
/// Intermediate step
/// </summary>
Intermediate = 0,
/// <summary>
/// Connector is an entry point
/// </summary>
Entry = 1,
/// <summary>
/// Connector is an exit point
/// </summary>
Exit = 2,
/// <summary>
/// Outer limits of a workplan
/// </summary>
WorkplanBorder = 4,
/// <summary>
/// Connector only reached when error occurred
/// </summary>
Failure = 8,
/// <summary>
/// Start point for a normal workplan
/// </summary>
Start = Entry | WorkplanBorder,
/// <summary>
/// End point for a normal workplan
/// </summary>
End = Exit | WorkplanBorder,
/// <summary>
/// Reset and abort point for a normal workplan if an unrecoverable failure occurred.
/// </summary>
Failed = Exit | Failure
}
}