-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathWorkplanRecipe.cs
44 lines (38 loc) · 1.13 KB
/
WorkplanRecipe.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
// Copyright (c) 2023, Phoenix Contact GmbH & Co. KG
// Licensed under the Apache License, Version 2.0
using System.Collections.Generic;
using Moryx.Workplans;
namespace Moryx.AbstractionLayer.Recipes
{
/// <summary>
/// Recipe which additional contains a workplan
/// </summary>
public class WorkplanRecipe : Recipe, IWorkplanRecipe
{
/// <summary>
/// Prepare recipe by filling DisabledSteps and TaskAssignment properties
/// </summary>
public WorkplanRecipe()
{
DisabledSteps = new List<long>();
}
/// <summary>
/// Clone a workplan recipe
/// </summary>
protected WorkplanRecipe(WorkplanRecipe source)
: base(source)
{
Workplan = source.Workplan;
DisabledSteps = source.DisabledSteps;
}
/// <inheritdoc />
public IWorkplan Workplan { get; set; }
/// <inheritdoc />
public ICollection<long> DisabledSteps { get; }
/// <inheritdoc />
public override IRecipe Clone()
{
return new WorkplanRecipe(this);
}
}
}