public class StaffingSolution extends Object
Constructor and Description |
---|
StaffingSolution(int[] staffing,
double cost)
Creates the object that will hold the staffing solution.
|
Modifier and Type | Method and Description |
---|---|
double |
getCost()
Returns the staffing cost.
|
int[] |
getStaffing()
Returns the staffing vector.
|
String |
toString()
Returns the staffing vector and the cost as a 2-line String.
|
public StaffingSolution(int[] staffing, double cost)
staffing
- the staffing vector, this vector will be cloned. Any change
applied to this vector will not affect this solution object.cost
- the cost of the staffing