-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecord.java
83 lines (78 loc) · 1.75 KB
/
record.java
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
package ucits;
public class Record {
private String smnem;
private double mcap;
private double wgt;
private double fixed_wgt;
private double factor;
private double fixing;
private double allocated_wgt;
private double final_wgt = 0;
private char id;
// Constructor
public Record(String smnem2, double mcap2) {
smnem = smnem2;
mcap = mcap2;
wgt = 0.0;
fixed_wgt = 0.0;
allocated_wgt = 0.0;
final_wgt = 0.0;
factor = 1;
fixing = 0;
id = 'I';
}
public Record() {}
public String GetSmnem() {
return smnem;
}
public double GetWgt() {
return wgt;
}
public double GetMcap() {
return mcap;
}
public char GetId() {
return id;
}
public double GetFixing() {
return fixing;
}
public double GetFactor() {
return factor;
}
public double GetFixedWgt() {
return fixed_wgt;
}
public double GetAllocWgt() {
return allocated_wgt;
}
public double GetFinalWgt() {
return final_wgt;
}
public void SetId(char sid) {
id = sid;
}
public void SetWgt(double swgt) {
wgt = swgt;
}
public void SetFixing(double sfixing) {
fixing = sfixing;
}
public void SetFactor(double sfactor) {
factor = sfactor;
}
public void SetFixedWgt(double snewwgt) {
fixed_wgt = snewwgt;
}
public void SetAllocWgt(double salloc) {
allocated_wgt = salloc;
}
public void SetFinalWgt(double sfinal) {
final_wgt = sfinal;
}
public void SetSmnem(String ssmnem) {
smnem = ssmnem;
}
public void SetMcap(double smcap) {
mcap = smcap;
}