-
Notifications
You must be signed in to change notification settings - Fork 0
/
Simulation.cs
45 lines (37 loc) · 930 Bytes
/
Simulation.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PVAfront
{
class Simulation
{
private Trial trialResult;
private int trialNumber;
public int TrialNumber
{
get { return trialNumber; }
set { trialNumber = value; }
}
public Trial TrialResult
{
get { return trialResult; }
set { trialResult = value; }
}
//constructor
public Simulation (int n, Trial t)
{
trialResult = t;
trialNumber = n;
}
public Simulation() { }
//methods
//Get end pop
private int EndingPop(List<Trial> t)
{
int endPop = t[t.Count - 1].MonthResults.PopEnd;
return endPop;
}
}
}