This repository was archived by the owner on Mar 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsortResults.java
More file actions
96 lines (93 loc) · 1.71 KB
/
sortResults.java
File metadata and controls
96 lines (93 loc) · 1.71 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* class for storing the results of a sort
*/
public class sortResults
{
//private data
private boolean successful;
private long timeRequired;
private int memoryUsage;
private int[] array;
private int arrSize;
private gapSeqType gapType;
private int threshold;
//constructors
public sortResults()
{
successful = false;
timeRequired = 1;
memoryUsage = 1;
array = null;
arrSize = 1;
gapType = null;
threshold = 1;
}
public sortResults(boolean successful, long timeRequired, int memoryUsage, int[] array, int arrSize, gapSeqType gapType, int threshold)
{
this.successful = successful;
this.timeRequired = timeRequired;
this.memoryUsage = memoryUsage;
this.array = array;
this.arrSize = arrSize;
this.gapType = gapType;
this.threshold = threshold;
}
//getters
public boolean getSuccessful()
{
return successful;
}
public long getTimeRequired()
{
return timeRequired;
}
public int getMemoryUsage()
{
return memoryUsage;
}
public int[] getArray()
{
return array;
}
public int getArrSize()
{
return arrSize;
}
public gapSeqType getGapType()
{
return gapType;
}
public int getThreshold()
{
return threshold;
}
//setters
public void setSuccessful(boolean successful)
{
this.successful = successful;
}
public void setTimeRequired(long timeRequired)
{
this.timeRequired = timeRequired;
}
public void setMemoryUsage(int memoryUsage)
{
this.memoryUsage = memoryUsage;
}
public void setArray(int[] array)
{
this.array = array;
}
public void setArrSize(int arrSize)
{
this.arrSize = arrSize;
}
public void setGapType(gapSeqType gapType)
{
this.gapType = gapType;
}
public void setThreshold(int threshold)
{
this.threshold = threshold;
}
}