A B C D E F G H I K M N O P Q R S T V W X

A

actionPerformed(ActionEvent) - Method in class rand.asset_forfeiture.AssetGui
This is the event handler for all the buttons.
actionPerformed(ActionEvent) - Method in class rand.asset_forfeiture.CompanyInfo
Handles two different types of GUI events: pressing the Done button or pressing the info button to get more info about a MOG.
actionPerformed(ActionEvent) - Method in class rand.asset_forfeiture.CustomWage
Catches the pressing of the OK button when the user is finished updating the default wage.
actionPerformed(ActionEvent) - Method in class rand.asset_forfeiture.DisplayPanel
The only events for this class are generated by my help buttons, so this method assumes that every ActionEvent is a request for help and launches a HelpDialog with the appropriate message.
actionPerformed(ActionEvent) - Method in class rand.asset_forfeiture.HelpDialog
The only events are clicking the OK button.
actionPerformed(ActionEvent) - Method in class rand.asset_forfeiture.WageWizard
This is the event handler for clicking on the Interface Buttons.
addRow() - Method in class rand.asset_forfeiture.WageWizard
This method adds one more editable row to wtm.
alpha() - Method in class rand.asset_forfeiture.GCalc
Accessor for alpha \returns the calculated alpha based on input values
alphaString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for alpha \returns a string with the formula used to calculate alpha
AssetGui - Class in rand.asset_forfeiture
This is the main workhorse class that organizes and runs the Asset Forfeiture profit calculation tool.
AssetGui(String) - Constructor for class rand.asset_forfeiture.AssetGui
The constructor does all the setup, but does not set itself to be visible.

B

Benchmark - Class in rand.asset_forfeiture
This Benchmark case simply hires one replacement legal worker for each illegal worker no longer available.
Benchmark() - Constructor for class rand.asset_forfeiture.Benchmark
The only constructor simply calls super()
beta() - Method in class rand.asset_forfeiture.GCalc
Accessor for beta \returns the calculated beta based on input values
betaString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for beta \returns a string with the formula used to calculate beta

C

calculateBase(JTextArea) - Method in class rand.asset_forfeiture.GCalc
 
calculateBase(JTextArea) - Method in interface rand.asset_forfeiture.ProfitCalculator
Does the calculations for the world as described, determining the values of any parameters needed for the excursion to a legals-only framework.
calculateExcursion(JTextArea) - Method in class rand.asset_forfeiture.GCalc
 
calculateExcursion(JTextArea) - Method in interface rand.asset_forfeiture.ProfitCalculator
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.
clear() - Method in class rand.asset_forfeiture.DisplayPanel
This method erases the content of all the textFields, allowing the user to start all over again.
columnHeadings - Variable in class rand.asset_forfeiture.DisplayPanel
An array of column headings for the input/output section, in the order in which they will appear.
CompanyInfo - Class in rand.asset_forfeiture
This is a JDialog extension that interrogates the user about what kind of company is being analyzed.
CompanyInfo(JFrame, String, boolean) - Constructor for class rand.asset_forfeiture.CompanyInfo
The only constructor for CompanyInfo does all the setup except for setVisible.
CustomWage - Class in rand.asset_forfeiture
This class is a simple extension of JDialog to interrogate the user for a value for newPL3 (the wage paid to workers hired to replace the illegal immigrants).
CustomWage(JFrame, Double) - Constructor for class rand.asset_forfeiture.CustomWage
The only constructor for CustomWage sets up all the components, but does not set the dialog to visible.

D

DAYS_PER_WEEK - Static variable in class rand.asset_forfeiture.WageWizard
 
DAYS_PER_YEAR - Static variable in class rand.asset_forfeiture.WageWizard
Calculated number of workdays per year for FTE \param DAYS_PER_WEEK number of work days per week \param WEEKS_PER_YEAR number of work weeks per year
delta() - Method in class rand.asset_forfeiture.GCalc
Accessor for delta \returns the calculated value of delta based on input values
deltaString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for delta \returns a string with the formula used to calculate delta
DisplayPanel - Class in rand.asset_forfeiture
The DisplayPanel is the main user interface to the Asset Forfeiture tool.
DisplayPanel(ProfitCalculator[]) - Constructor for class rand.asset_forfeiture.DisplayPanel
The only constructor takes an array of ProfitCalculators that are to be evaluated and creates a grid of appropriate size to display all the results for each ProfitCalculator.

E

epsilon() - Method in class rand.asset_forfeiture.GCalc
Accessor for epsilon \returns the calculated value of epsilon based on input values

F

fromString(String) - Static method in enum rand.asset_forfeiture.MOGnames
A custom fromString converter, since the strings in the MOG database have spaces, but we need to use underscores to keep java happy.
fromString(String) - Static method in enum rand.asset_forfeiture.States
 
fromString(String) - Static method in enum rand.asset_forfeiture.variables
Converts a stirng of the toString() variety into its corresponding variable.

G

gamma() - Method in class rand.asset_forfeiture.GCalc
Accessor for gamma \returns the calculated value of gamma based on input values
gammaString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for gamma \returns a string with the formula used to calculate gamma
GCalc - Class in rand.asset_forfeiture
This class contains lots of the common functionality for KFixed, KVariable, and Benchmark.
GCalc() - Constructor for class rand.asset_forfeiture.GCalc
The only constructor just initializes variableData
getColumnClass(int) - Method in class rand.asset_forfeiture.WageTableModel
Overriding the regular getColumnClass method so that not everything is rendered as a String (I want my checkboxes!).
getHelp() - Method in enum rand.asset_forfeiture.variables
Returns the help string for each variable.
getIndustryCode() - Method in class rand.asset_forfeiture.CompanyInfo
Accessor for the MOG industry code \returns a letter representing the BLS MOG industry code
getMSA() - Method in class rand.asset_forfeiture.CompanyInfo
Accessor for MSA \returns a string representing the name of the chosen MSA
getName() - Method in class rand.asset_forfeiture.Benchmark
 
getName() - Method in class rand.asset_forfeiture.CompanyInfo
Accessor for the name of the company \returns the name of the company, unless the nameModel is invalid, in which case it returns the empty string.
getName() - Method in class rand.asset_forfeiture.GCalc
 
getName() - Method in class rand.asset_forfeiture.KFixed
 
getName() - Method in class rand.asset_forfeiture.KVariable
 
getName() - Method in interface rand.asset_forfeiture.ProfitCalculator
The name of this particular ProfitCalculator.
getNewPL3() - Method in class rand.asset_forfeiture.CustomWage
The accessor for newPL3.
getOptimal() - Method in class rand.asset_forfeiture.GCalc
 
getOptimal() - Method in interface rand.asset_forfeiture.ProfitCalculator
While calculateExcursion does the calculations, this method returns the results, so you don't have to do both simultaneously.
getRegion() - Method in enum rand.asset_forfeiture.States
 
getState() - Method in class rand.asset_forfeiture.CompanyInfo
Accessor for the state \returns an instance of States representing the chosen state
getTableCellEditorComponent(JTable, Object, boolean, int, int) - Method in class rand.asset_forfeiture.MyTextBoxEditor
This is the only method override and does the work of selecting the contents of the cell.
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class rand.asset_forfeiture.MyTextBoxRenderer
Reimplementing DefaultTableCellRenderer.getTableCellRenderer by calling the super version, recording whether the cell has focus, and setting the background color if the cell in question is an output cell.
getTableCellRendererComponent(JTable, Object, boolean, boolean, int, int) - Method in class rand.asset_forfeiture.WageWizard.MyComboBoxRenderer
This method is required to implement TableCellRenderer and takes care of setting the proper appearance.
getTitle() - Method in class rand.asset_forfeiture.GCalc
A nice header for printing out the results
getValues(String) - Method in class rand.asset_forfeiture.DisplayPanel
This is the accessor for the input values.
getValues() - Method in class rand.asset_forfeiture.WageWizard
This method returns a HashMap of the final results.
getWage() - Method in class rand.asset_forfeiture.CompanyInfo
Accessor to get the yearly expense for a worker in the selected MOG and MSA.

H

HelpDialog - Class in rand.asset_forfeiture
This is a simple helper class to show help messages in a standard way.
HelpDialog(String) - Constructor for class rand.asset_forfeiture.HelpDialog
The constructor simply takes the message as desired.
HOURS_PER_DAY - Static variable in class rand.asset_forfeiture.WageWizard
\name Timekeeping Constants A group of known constants for calculating the number of hours in a given period of time.
HOURS_PER_MONTH - Static variable in class rand.asset_forfeiture.WageWizard
Calculated number of work hours per month for FTE \param HOURS_PER_YEAR number of work hours per year \param MONTHS_PER_YEAR number of work months per year
HOURS_PER_WEEK - Static variable in class rand.asset_forfeiture.WageWizard
Calculated number of work hours per week for FTE \param HOURS_PER_DAY number of work hours in a day \param DAYS_PER_WEEK number of workdays per week
HOURS_PER_YEAR - Static variable in class rand.asset_forfeiture.WageWizard
Calculated number of work hours per year for FTE \param HOURS_PER_WEEK number of work hours in a week \param WEEKS_PER_YEAR number of work weeks in a year

I

initStrings() - Static method in class rand.asset_forfeiture.CompanyInfo
A helper function that simply assigns strings to the elements of mogDescrips
isCellEditable(int, int) - Method in class rand.asset_forfeiture.WageTableModel
Overriding the default, which is always true, since the user should not be allowed to edit the output cells.
itemStateChanged(ItemEvent) - Method in class rand.asset_forfeiture.CompanyInfo
Listens for when the state menu changes, so that the list of MSAs is updated correspondingly.

K

K() - Method in class rand.asset_forfeiture.GCalc
Accessor for K \returns the calculated K based on input values
KFixed - Class in rand.asset_forfeiture
KFixed calculates the optimum allocation of resources for a firm that can no longer hire illegal immigrants and has the additional constraint of fixed capital costs.
KFixed() - Constructor for class rand.asset_forfeiture.KFixed
The only constructor simply calls super()
KOpt() - Method in class rand.asset_forfeiture.Benchmark
 
KOpt() - Method in class rand.asset_forfeiture.GCalc
Accessor for optimal K \returns the optimized value of K
KOpt() - Method in class rand.asset_forfeiture.KFixed
 
KOpt() - Method in class rand.asset_forfeiture.KVariable
 
KOptString() - Method in class rand.asset_forfeiture.Benchmark
 
KOptString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for optimal K \returns a string with the formula used to optimize K
KOptString() - Method in class rand.asset_forfeiture.KFixed
 
KOptString() - Method in class rand.asset_forfeiture.KVariable
 
KString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for K \returns a string with the formula used to calculate K
KVariable - Class in rand.asset_forfeiture
KVariable calculates the optimum allocation of resources if the firm can no longer hire illegal immigrants, but capital and raw material costs are completely flexible.
KVariable() - Constructor for class rand.asset_forfeiture.KVariable
The only constructor simply calls super()

M

main(String[]) - Static method in class rand.asset_forfeiture.AssetGui
This is the main function for the entire tool.
MOG_FILE - Static variable in class rand.asset_forfeiture.CompanyInfo
The name of the csv file holding the MOG information.
mogDescrips - Static variable in class rand.asset_forfeiture.CompanyInfo
An array to hold the descriptions of all the MOGs
MOGnames - Enum in rand.asset_forfeiture
This enumeration describes all the possible MOGs that one can pick to represent the illegal workers' occupations.
MONTHS_PER_YEAR - Static variable in class rand.asset_forfeiture.WageWizard
 
MyTextBoxEditor - Class in rand.asset_forfeiture
A small improvement on the DefaultCellEditor that selects all the contents of the cell when the user begins to edit.
MyTextBoxEditor() - Constructor for class rand.asset_forfeiture.MyTextBoxEditor
The only constructor just calls the super with a new JTextField.
MyTextBoxRenderer - Class in rand.asset_forfeiture
An improvement over the DefaultTableCellRenderer specific to text cells.
MyTextBoxRenderer() - Constructor for class rand.asset_forfeiture.MyTextBoxRenderer
 

N

needsVar(variables) - Method in class rand.asset_forfeiture.Benchmark
 
needsVar(variables) - Method in class rand.asset_forfeiture.GCalc
 
needsVar(variables) - Method in class rand.asset_forfeiture.KFixed
 
needsVar(variables) - Method in class rand.asset_forfeiture.KVariable
 
needsVar(variables) - Method in interface rand.asset_forfeiture.ProfitCalculator
Determines whether this implementation of ProfitCalculator requires a particular variable for its calculations.
notation() - Method in enum rand.asset_forfeiture.variables
A string conversion method to convert from our internal variable name to the notation used in the derivation.

O

omega() - Method in class rand.asset_forfeiture.GCalc
Accessor for omega \return the calculated value of omega
omegaString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for omega \returns a string with the formula for omega

P

pack(JTable) - Method in class rand.asset_forfeiture.WageTableModel
This over rides the original pack in order to auto-size the column widths properly so all column names are readable.
paintComponent(Graphics) - Method in class rand.asset_forfeiture.MyTextBoxRenderer
Reimplementation of super.paintComponent by setting the background color to the selectionBackground if the cell has focus and is non-empty then calling super.paintComponent.
phi3() - Method in class rand.asset_forfeiture.Benchmark
 
phi3() - Method in class rand.asset_forfeiture.GCalc
Accessor for optimal phi3 \returns the optimized value of phi3
phi3() - Method in class rand.asset_forfeiture.KFixed
 
phi3() - Method in class rand.asset_forfeiture.KVariable
 
phi3String() - Method in class rand.asset_forfeiture.Benchmark
 
phi3String() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for optimal phi3 \returns a string with the formula used to optimize phi3
phi3String() - Method in class rand.asset_forfeiture.KFixed
 
phi3String() - Method in class rand.asset_forfeiture.KVariable
 
pi() - Method in class rand.asset_forfeiture.GCalc
Accessor for pi \returns pi
piOpt() - Method in class rand.asset_forfeiture.GCalc
Accessor for the optimal pi \returns the optimal value of pi
piOptString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for the optimal pi \returns a string containing the formula used to optimize pi
PL1() - Method in class rand.asset_forfeiture.GCalc
Accessor for PL1 \returns PL1
PL2() - Method in class rand.asset_forfeiture.GCalc
Accessor for PL2 \returns PL2
PL3() - Method in class rand.asset_forfeiture.GCalc
Accessor for PL3 \returns PL3
PL4() - Method in class rand.asset_forfeiture.GCalc
Accessor for PL4 \returns newPL3
Pq() - Method in class rand.asset_forfeiture.GCalc
Accessor for Pq \returns the calculated value of Pq based on input values
PqString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for Pq \returns a string with the formula used to calculate Pq
print(Double, Boolean) - Static method in class rand.asset_forfeiture.GCalc
A method to standardize the look and feel of doubles in the DisplayPanel as well as the text outputs.
print(Double) - Static method in class rand.asset_forfeiture.GCalc
An alternative to print(Double, Boolean) that assumes d is not a currency.
ProfitCalculator - Interface in rand.asset_forfeiture
An interface that lays out the requirements for a class to calculate the profits derived from hiring illegal immigrants.

Q

Q() - Method in class rand.asset_forfeiture.GCalc
Accessor for Q \returns the calculated Q based on input values
QOpt() - Method in class rand.asset_forfeiture.GCalc
Accessor for optimal Q \returns the optimized value of Q
QOptString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for the optimal Q \returns a string containing the formula used to optimize Q
QString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for Q \returns a string with the formula used to calculate Q

R

R() - Method in class rand.asset_forfeiture.GCalc
Accessor for R \returns R
rand.asset_forfeiture - package rand.asset_forfeiture
 
removeRow() - Method in class rand.asset_forfeiture.WageWizard
This method removes the currently selected row from the WageWizard.
rho() - Method in class rand.asset_forfeiture.GCalc
Accessor for rho \returns rho
rhoOpt() - Method in class rand.asset_forfeiture.Benchmark
 
rhoOpt() - Method in class rand.asset_forfeiture.GCalc
Accessor for optimal rho \returns the optimal value of rho
rhoOptString() - Method in class rand.asset_forfeiture.Benchmark
 
rhoOptString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for rho \returns a string containing the formula used to optimize rho
ROpt() - Method in class rand.asset_forfeiture.GCalc
Accessor for the optimal R \returns the optimized value of R

S

setNewPL3(double) - Method in class rand.asset_forfeiture.GCalc
Mutator to set an alternative value for PL3 based on BLS or domain knowledge.
setNewPL3(double) - Method in interface rand.asset_forfeiture.ProfitCalculator
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.
setVals(HashMap<variables, Double>) - Method in class rand.asset_forfeiture.GCalc
 
setVals(HashMap<variables, Double>) - Method in interface rand.asset_forfeiture.ProfitCalculator
This method will provide the inputs to the calculation in the form of a HashMap mapping an available variable to its value.
setValues(HashMap<variables, Double>, String) - Method in class rand.asset_forfeiture.DisplayPanel
A mutator for a whole column's worth of variables at once.
SS_MEDICARE - Static variable in class rand.asset_forfeiture.WageWizard
The portion of the total benefits overhead due to payroll taxes.
States - Enum in rand.asset_forfeiture
 

T

tableChanged(TableModelEvent) - Method in class rand.asset_forfeiture.WageWizard
This is an event handler to process TableModelEvents whenever the wtm is changed.
toAlternateString() - Method in enum rand.asset_forfeiture.variables
A custom string conversion method to create more legible variables names on the output side.
toString() - Method in enum rand.asset_forfeiture.MOGnames
A custom toString() method that strips out the underscores.
toString() - Method in enum rand.asset_forfeiture.variables
A custom string conversion method to create much more legible variable names on the input side.
toString() - Method in enum rand.asset_forfeiture.WageWizard.columnHeadings
Give the enum a custom string converter in order to have more user-friendly column headings.
TOTAL_BENEFITS - Static variable in class rand.asset_forfeiture.WageWizard
The default total benefits overhead, as a fraction of base salary.

V

validate() - Method in class rand.asset_forfeiture.GCalc
 
validate() - Method in interface rand.asset_forfeiture.ProfitCalculator
This method runs any input validation available for the ProfitCalculator.
validRange(Boolean) - Method in class rand.asset_forfeiture.GCalc
Tests for valid ranges of the technology parameters.
valueOf(String) - Static method in enum rand.asset_forfeiture.MOGnames
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum rand.asset_forfeiture.States
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum rand.asset_forfeiture.variables
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum rand.asset_forfeiture.WageWizard.columnHeadings
Returns the enum constant of this type with the specified name.
values() - Static method in enum rand.asset_forfeiture.MOGnames
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum rand.asset_forfeiture.States
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum rand.asset_forfeiture.variables
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum rand.asset_forfeiture.WageWizard.columnHeadings
Returns an array containing the constants of this enum type, in the order they're declared.
variables - Enum in rand.asset_forfeiture
These are all the input variables that can be used in the DisplayPanel and ProfitCalculator.

W

WageTableModel - Class in rand.asset_forfeiture
We need an enhancement to the DefaultTableModel in order to properly render combo boxes in individual cells as well as prevent the user from editing the output cells.
WageTableModel(Object[]) - Constructor for class rand.asset_forfeiture.WageTableModel
You only get one constructor, and it just calls its super.
WageWizard - Class in rand.asset_forfeiture
This is the main class you need to instantiate to run the Wage Calculation Wizard.
WageWizard(Frame, String, boolean) - Constructor for class rand.asset_forfeiture.WageWizard
This class only gets one constructor, and this is it.
WageWizard.columnHeadings - Enum in rand.asset_forfeiture
This enum describes the column headings for the WageWizard spreadsheet.
WageWizard.MyComboBoxEditor - Class in rand.asset_forfeiture
A class to handle choosing items from a combo box inside of a JTable.
WageWizard.MyComboBoxEditor(Object[]) - Constructor for class rand.asset_forfeiture.WageWizard.MyComboBoxEditor
The constructor just calls the super, but with a JComboBox rather than an array of items.
WageWizard.MyComboBoxRenderer - Class in rand.asset_forfeiture
Here is just a little class to properly display the combo boxes within cells of the WageWizard.
WageWizard.MyComboBoxRenderer(Object[]) - Constructor for class rand.asset_forfeiture.WageWizard.MyComboBoxRenderer
The constructor just calls its super; nothing fancy.
WEEKS_PER_YEAR - Static variable in class rand.asset_forfeiture.WageWizard
 

X

X1() - Method in class rand.asset_forfeiture.GCalc
Accessor for X1 \returns L1 + 1 to avoid problems of having no L1 workers
X1Opt() - Method in class rand.asset_forfeiture.Benchmark
 
X1Opt() - Method in class rand.asset_forfeiture.GCalc
Accessor for optimal X1 \returns the optimal value of X1, unless that optimum is less than 1, in which case it returns 1 (real labor = X1 - 1)
X1OptString() - Method in class rand.asset_forfeiture.Benchmark
 
X1OptString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for optimal X1 \returns a string containing the formula used to optimize X1
X2() - Method in class rand.asset_forfeiture.GCalc
Accessor for X2 \returns L2 + 1 to avoid problems of having no L2 workers
X3() - Method in class rand.asset_forfeiture.GCalc
Accessor for X3 \returns L3 + 1 to avoid problems of having no L3 workers
X3Opt() - Method in class rand.asset_forfeiture.Benchmark
 
X3Opt() - Method in class rand.asset_forfeiture.GCalc
Accessor for optimal X3 \returns the optimized value of X3, unless X3 < 1, in which case it returns one, since real labor = X3-1
X3Opt() - Method in class rand.asset_forfeiture.KFixed
 
X3Opt() - Method in class rand.asset_forfeiture.KVariable
 
X3OptString() - Method in class rand.asset_forfeiture.Benchmark
 
X3OptString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for optimal X3 \returns a string with the formula used to optimize X3
X3OptString() - Method in class rand.asset_forfeiture.KFixed
 
X3OptString() - Method in class rand.asset_forfeiture.KVariable
 
X4Opt() - Method in class rand.asset_forfeiture.Benchmark
 
X4Opt() - Method in class rand.asset_forfeiture.GCalc
Accessor for X4 \returns the optimal value of X4, unless that optimum is less than 1, in which case it returns 1 (real labor = X1 - 1)
X4OptString() - Method in class rand.asset_forfeiture.GCalc
User-readable formula for X4 \returns a string containing the formula used to optimize X4

A B C D E F G H I K M N O P Q R S T V W X