-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutomat.cs
More file actions
75 lines (52 loc) · 1.25 KB
/
Automat.cs
File metadata and controls
75 lines (52 loc) · 1.25 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomatMachine
{
public class Automat
{
#region Properties
public Guid Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
#endregion
#region Collections
//public List<Job> Jobs { get; set; }
public List<Job> Jobs
{
get
{
return Job.Jobs;
}
}
#endregion
#region Constructor
public Automat() { }
public Automat(string name,string description)
{
Name = name;
Id = Guid.NewGuid();
Description = description;
}
public Automat(Guid id, string name, string description)
{
Name = name;
Id = id;
Description = description;
}
//private void Initialize()
//{
// Jobs = new List<Job>();
//}
#endregion
#region Functions
public Automat AddJob(Job job)
{
job.Automat = this;
return this;
}
#endregion
}
}