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 pathsortParams.java
More file actions
131 lines (127 loc) · 2.37 KB
/
sortParams.java
File metadata and controls
131 lines (127 loc) · 2.37 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import java.util.ArrayList;
/*
* Parameters the sorting algorithms need
*/
public class sortParams
{
//private data
private int[] array;
private int arrSize;
private Direction direction;
private gapSeqType gtype;
private ArrayList<Integer> gapSeq;
private sortType type;
private int memoryUsage;
private int threshold;
private int startIndex;
private int endIndex;
//constructors
public sortParams()
{
this.array = null;
this.arrSize = 1;
this.direction = Direction.ASCENDING;
this.gtype = null;
this.type = null;
this.gapSeq = null;
this.memoryUsage = 0;
this.threshold = 1;
this.startIndex = 0;
this.endIndex = 0;
}
public sortParams(int[] array, Direction direction, sortType type, gapSeqType gtype, int arrSize, ArrayList<Integer> gapSeq, int memoryUsage, int threshold, int startIndex, int endIndex)
{
this.array = array;
this.arrSize = arrSize;
this.direction = direction;
this.gtype = gtype;
this.type = type;
this.gapSeq = gapSeq;
this.memoryUsage = memoryUsage;
this.threshold = threshold;
this.startIndex = startIndex;
this.endIndex = endIndex;
}
//getters
public sortType getSortType()
{
return type;
}
public int[] getArray()
{
return array;
}
public Direction getDirection()
{
return direction;
}
public gapSeqType getGapSeqType()
{
return gtype;
}
public int getArrSize()
{
return arrSize;
}
public ArrayList<Integer> getGapSeq()
{
return gapSeq;
}
public int getMemUsage()
{
return memoryUsage;
}
public int getThreshold()
{
return threshold;
}
public int getStartIndex()
{
return startIndex;
}
public int getEndIndex()
{
return endIndex;
}
//setters
public void setSortType(sortType type)
{
this.type = type;
}
public void setArray(int[] array)
{
this.array = array;
}
public void setDirection(Direction direction)
{
this.direction = direction;
}
public void setGapSeqType(gapSeqType gtype)
{
this.gtype = gtype;
}
public void setArrSize(int arrSize)
{
this.arrSize = arrSize;
}
public void setGapSeq(ArrayList<Integer> gapSeq)
{
this.gapSeq = gapSeq;
}
public void setMemUsage(int memoryUsage)
{
this.memoryUsage = memoryUsage;
}
public void setThreshold(int threshold)
{
this.threshold = threshold;
}
public void setStartIndex(int startIndex)
{
this.startIndex = startIndex;
}
public void setEndIndex(int endIndex)
{
this.endIndex = endIndex;
}
}