|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProfitCalculator
An interface that lays out the requirements for a class to calculate the profits derived from hiring illegal immigrants.
Method Summary | |
---|---|
void |
calculateBase(javax.swing.JTextArea forDebuggers)
Does the calculations for the world as described, determining the values of any parameters needed for the excursion to a legals-only framework. |
void |
calculateExcursion(javax.swing.JTextArea forDebuggers)
Does the calculations for the world without illegal immigrants, including what the profits of the firm would be, how many workers of each type would be hired, etc. |
java.lang.String |
getName()
The name of this particular ProfitCalculator. |
java.util.HashMap<variables,java.lang.Double> |
getOptimal()
While calculateExcursion does the calculations, this method returns the results, so you don't have to do both simultaneously. |
java.lang.Boolean |
needsVar(variables v)
Determines whether this implementation of ProfitCalculator requires a particular variable for its calculations. |
void |
setNewPL3(double p)
A method for updating the value for PL3 used in calculateExcursion based on some more detailed knowledge that the user has of the case in question. |
java.lang.Boolean |
setVals(java.util.HashMap<variables,java.lang.Double> vals)
This method will provide the inputs to the calculation in the form of a HashMap mapping an available variable to its value. |
java.lang.Boolean |
validate()
This method runs any input validation available for the ProfitCalculator. |
Method Detail |
---|
java.lang.Boolean setVals(java.util.HashMap<variables,java.lang.Double> vals)
java.lang.Boolean validate()
void calculateBase(javax.swing.JTextArea forDebuggers)
void calculateExcursion(javax.swing.JTextArea forDebuggers)
java.lang.String getName()
java.lang.Boolean needsVar(variables v)
void setNewPL3(double p)
java.util.HashMap<variables,java.lang.Double> getOptimal()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |