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
| using System;
| using System.Collections.Generic;
| using System.Linq;
| using System.Text;
| using System.Threading.Tasks;
| using System.Xml;
|
| namespace Hydro.Core.Model
| {
| public class MeterModel : NodeModel
| {
| public override string ToString()
| {
| if (string.IsNullOrEmpty(PatternID)) PatternID = "";
| return $"{ID}\t{Elev}\t{Demand}\t{PatternID}\tMeter\t;\t";
| }
|
| public JunctionModel ToJunction()
| {
| return new JunctionModel()
| {
| Y = base.Y,
| PatternID = base.PatternID,
| Demand = base.Demand,
| Elev = base.Elev,
| ID = base.ID,
| Level = base.Level,
| Name = base.Name,
| Status = base.Status,
| X = base.X,
| };
| }
| }
| }
|
|