rand.asset_forfeiture
Class KVariable

java.lang.Object
  extended by rand.asset_forfeiture.GCalc
      extended by rand.asset_forfeiture.KVariable
All Implemented Interfaces:
ProfitCalculator

public class KVariable
extends GCalc

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.


Constructor Summary
KVariable()
          The only constructor simply calls super()
 
Method Summary
 java.lang.String getName()
          The name of this particular ProfitCalculator.
protected  java.lang.Double KOpt()
          Accessor for optimal K \returns the optimized value of K
protected  java.lang.String KOptString()
          User-readable formula for optimal K \returns a string with the formula used to optimize K
 java.lang.Boolean needsVar(variables v)
          Determines whether this implementation of ProfitCalculator requires a particular variable for its calculations.
protected  java.lang.Double phi3()
          Accessor for optimal phi3 \returns the optimized value of phi3
protected  java.lang.String phi3String()
          User-readable formula for optimal phi3 \returns a string with the formula used to optimize phi3
protected  java.lang.Double X3Opt()
          Accessor for optimal X3 \returns the optimized value of X3, unless X3 < 1, in which case it returns one, since real labor = X3-1
protected  java.lang.String X3OptString()
          User-readable formula for optimal X3 \returns a string with the formula used to optimize X3
 
Methods inherited from class rand.asset_forfeiture.GCalc
alpha, alphaString, beta, betaString, calculateBase, calculateExcursion, delta, deltaString, epsilon, gamma, gammaString, getOptimal, getTitle, K, KString, omega, omegaString, pi, piOpt, piOptString, PL1, PL2, PL3, PL4, Pq, PqString, print, print, Q, QOpt, QOptString, QString, R, rho, rhoOpt, rhoOptString, ROpt, setNewPL3, setVals, validate, validRange, X1, X1Opt, X1OptString, X2, X3, X4Opt, X4OptString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KVariable

public KVariable()
The only constructor simply calls super()

Method Detail

getName

public java.lang.String getName()
Description copied from interface: ProfitCalculator
The name of this particular ProfitCalculator. \returns a string with the name of the calculator. Does not have to be unique.

Specified by:
getName in interface ProfitCalculator
Specified by:
getName in class GCalc

needsVar

public java.lang.Boolean needsVar(variables v)
Description copied from interface: ProfitCalculator
Determines whether this implementation of ProfitCalculator requires a particular variable for its calculations. \param v the variable in question \returns true if the variable is required; false if it is not

Specified by:
needsVar in interface ProfitCalculator
Specified by:
needsVar in class GCalc

phi3

protected java.lang.Double phi3()
Description copied from class: GCalc
Accessor for optimal phi3 \returns the optimized value of phi3

Specified by:
phi3 in class GCalc

phi3String

protected java.lang.String phi3String()
Description copied from class: GCalc
User-readable formula for optimal phi3 \returns a string with the formula used to optimize phi3

Specified by:
phi3String in class GCalc

KOpt

protected java.lang.Double KOpt()
Description copied from class: GCalc
Accessor for optimal K \returns the optimized value of K

Specified by:
KOpt in class GCalc

KOptString

protected java.lang.String KOptString()
Description copied from class: GCalc
User-readable formula for optimal K \returns a string with the formula used to optimize K

Specified by:
KOptString in class GCalc

X3Opt

protected java.lang.Double X3Opt()
Description copied from class: 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

Specified by:
X3Opt in class GCalc

X3OptString

protected java.lang.String X3OptString()
Description copied from class: GCalc
User-readable formula for optimal X3 \returns a string with the formula used to optimize X3

Specified by:
X3OptString in class GCalc