-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomer.cs
43 lines (36 loc) · 1.06 KB
/
Customer.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ClarkeAndWrightVRP
{
//Müşteri Nesnesi
public class Customer:ICloneable
{
public int ID { get; set; }
public string Name { get; set; }
public int X { get; set; }
public int Y { get; set; }
public int Demand { get; set; }
public Boolean Visit { get; set; }
//Nesneleri kopyalama gerekebilir diye önceden Clone methodu eklendi lazım olunca kullanılacak
public object Clone()
{
return this.MemberwiseClone();
}
public Customer()
{
}
//Müşteri Nesnelerinin gerekli özellikleri gelen veriler üzerinden hafızada tutulacak.
public Customer(int ID,string Name,int X,int Y,int Demand,Boolean Visit)
{
this.ID = ID;
this.Name=Name;
this.X = X;
this.Y = Y;
this.Demand = Demand;
this.Visit = Visit;
}
}
}