public class InstructorFairness.InstructorFairnessContext.Instructor extends Object
Constructor and Description |
---|
Instructor(Long instructorId)
Create instructor with ID(instructorId)
|
Modifier and Type | Method and Description |
---|---|
void |
addBestValue(double bestValue)
Add value to instructor best value
|
void |
addValue(double value)
Add value to instructor value
|
void |
decNumOfClasses()
Decrease number of instructor classes by 1
|
boolean |
equals(Object obj) |
double |
getBestValue() |
double |
getCoef() |
double |
getFinalValue()
representation how well instructors requirements are met
|
Long |
getId() |
int |
getNumOfClasses() |
double |
getValue() |
int |
hashCode() |
void |
incNumOfClasses()
Increase number of classes by 1
|
void |
refresh()
Set instructor value and number of classes to 0
|
void |
removeValue(double value)
Subtract value from instructor value
|
void |
setCoef(double coef)
Set instructor coefficient to double value
|
public Instructor(Long instructorId)
instructorId
- instructor IDpublic double getFinalValue()
public double getValue()
public void addValue(double value)
value
- value that should be added to instructor valuepublic void removeValue(double value)
value
- value that should be subtracted from instructor valuepublic double getBestValue()
public void addBestValue(double bestValue)
bestValue
- value that should be added to instructor best valuepublic int getNumOfClasses()
public void incNumOfClasses()
public void decNumOfClasses()
public double getCoef()
public void setCoef(double coef)
coef
- coefficient of instructorpublic void refresh()