public class PointsScoringEquations extends java.lang.Object implements PointsScoringEquationsIF
| Constructor and Description |
|---|
PointsScoringEquations()
Constructor setting the scores to a default of 0
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(PointsScoringEquationsIF points)
Adds all the points from the scoring equation to this scoring equation
|
void |
addToEarly13AndUnder(int equation)
Adds the value to equation1
|
void |
addToEarly14Plus(int equation)
Adds the value to equation2
|
void |
addToLater13AndUnder(int equation)
Adds the value to equation3
|
void |
addToLater14Plus(int equation)
Adds the value to equation4
|
int |
getEarly13AndUnder()
Get the value of equation1
|
int |
getEarly14Plus()
Get the value of equation2
|
int |
getEquationValue(int idx)
Returns the equation value at the 0-based index
|
int |
getLater13AndUnder()
Get the value of equation3
|
int |
getLater14Plus()
Get the value of equation4
|
void |
setEarly13AndUnder(int equation1)
Set the value of equation1
|
void |
setEarly14Plus(int equation2)
Set the value of equation2
|
void |
setEquationValue(int idx,
int value)
Sets the equation value at the 0-based index, with the value
|
void |
setLater13AndUnder(int equation3)
Set the value of equation3
|
void |
setLater14Plus(int equation)
Set the value of equation4
|
public PointsScoringEquations()
public void add(PointsScoringEquationsIF points)
add in interface PointsScoringEquationsIFpoints - public int getEarly13AndUnder()
getEarly13AndUnder in interface PointsScoringEquationsIFpublic void setEarly13AndUnder(int equation1)
setEarly13AndUnder in interface PointsScoringEquationsIFequation1 - new value of equation1public void addToEarly13AndUnder(int equation)
addToEarly13AndUnder in interface PointsScoringEquationsIFequation - public int getEarly14Plus()
getEarly14Plus in interface PointsScoringEquationsIFpublic void setEarly14Plus(int equation2)
setEarly14Plus in interface PointsScoringEquationsIFequation2 - new value of equation2public void addToEarly14Plus(int equation)
addToEarly14Plus in interface PointsScoringEquationsIFequation - public int getLater13AndUnder()
getLater13AndUnder in interface PointsScoringEquationsIFpublic void setLater13AndUnder(int equation3)
setLater13AndUnder in interface PointsScoringEquationsIFequation3 - new value of equation3public void addToLater13AndUnder(int equation)
addToLater13AndUnder in interface PointsScoringEquationsIFequation - public int getLater14Plus()
getLater14Plus in interface PointsScoringEquationsIFpublic void setLater14Plus(int equation)
setLater14Plus in interface PointsScoringEquationsIFequation - public void addToLater14Plus(int equation)
addToLater14Plus in interface PointsScoringEquationsIFequation - public int getEquationValue(int idx)
getEquationValue in interface PointsScoringEquationsIFidx - public void setEquationValue(int idx,
int value)
setEquationValue in interface PointsScoringEquationsIFidx - value - - the new value