|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprioritizer.DollarTechnique
Defines the $100 technique used.
Field Summary | |
private java.lang.String |
criteria
|
private int[] |
currentPrio
|
private int |
dollarsAvailible
|
private int |
dollarsUsedInCurrent
|
private int |
dollarsUsedInTotal
|
private RequirementList |
rList
|
private int[] |
totalPrio1
|
private int[] |
totalPrio2
|
Constructor Summary | |
DollarTechnique(RequirementList rList)
Constructor for the DollarTechnique. |
Method Summary | |
void |
criteriaDone()
Sets the priorities for the current criteria. |
void |
done()
Assigns the priorities to the requirements in the RequirementList. |
int |
getDollarsAvailible()
Returns the number of dollars availible in current prioritization |
void |
nextUser()
Completes a criteria and prepares the program for the next user to prioritize. |
void |
oneCriteriaDone(java.lang.String criteria)
Is only used when going to the $100 technique from the PlanningGame. |
void |
setCriteria(java.lang.String criteria)
Sets the current criteria. |
void |
setDollarsAvailible(int dollarsAvailible)
Sets the number of dollars availible in current prioritization |
int |
setValue(int value,
int row)
Calculates how many dollar that have been used so far and checks if the new value will exceed the $100 limit or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String criteria
private int[] currentPrio
private int dollarsUsedInCurrent
private int dollarsUsedInTotal
private RequirementList rList
private int[] totalPrio1
private int[] totalPrio2
private int dollarsAvailible
Constructor Detail |
public DollarTechnique(RequirementList rList)
rList
- the RequirementList containing the Requirements to be
prioritizedMethod Detail |
public int getDollarsAvailible()
public void setDollarsAvailible(int dollarsAvailible)
dollarsAvailible
- the number of dollars availiblepublic void criteriaDone()
public void done()
public void oneCriteriaDone(java.lang.String criteria)
criteria
- the current criteriapublic void nextUser()
public void setCriteria(java.lang.String criteria)
criteria
- the criteria.public int setValue(int value, int row)
value
- the new value to try and setrow
- the row in DollarWindow and index in the priority array
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |