-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFactor.java
55 lines (50 loc) · 1.05 KB
/
Factor.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
/**
* This class is used to represent a factor that the user puts in the
* spreadsheet for a member or a project. This factor has a name and a value.
*
* Examples: Year, timeCommitment, cost, etc..
*
* @author Ethan Young and David Seamon
*/
public class Factor {
private String name; // Name of factor
private Double value; // Value of factor
public Factor(String name, Double value) {
this.name = name;
this.value = value;
}
/**
* This method gets the name of the factor
*
* @return The name of the factor
*/
public String getName() {
return name;
}
/**
* This method sets the name of the factor
*
* @param The
* name of the factor
*/
public void setName(String name) {
this.name = name;
}
/**
* This method gets the value of the factor
*
* @return The value of the factor
*/
public Double getValue() {
return value;
}
/**
* This method sets the value of the factor
*
* @param The
* value of the factor
*/
public void setValue(Double value) {
this.value = value;
}
}