-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataInput.cs
58 lines (44 loc) · 1.17 KB
/
DataInput.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
using System;
using System.Collections.Generic;
using System.Text;
using VrpTest.Struct;
namespace VrpTest
{
public class DataInput : IDataInput
{
public DataInput()
{
}
public string GetAPI_key()
{
return "AIzaSyD8pSdYUKWghe4pUK2EG_HniwVOt_Mu2jw";
}
public int GetSolutionDuration()
{
return 20;
}
public bool GetTimeWindowActive()
{
return true;
}
public int GetMaxVisitsActive()
{
return 200;//5 yap
}
public void GetVCMinMax(int[] VCMinMax)
{
Console.WriteLine("Enter the number of vehicles in this format -> Min, Max :");
var MinMax = Console.ReadLine().Split(',');
int i = 0;
foreach (var item in MinMax)
{
if(i < 2)
{
VCMinMax[i] = Convert.ToInt32(item);
Console.WriteLine(Convert.ToInt32(item));
i++;
}
}
}
}
}