edu.cuny.cat.stat
Class RangeBasedScoreDaysCondition
java.lang.Object
edu.cuny.cat.stat.AbstractScoreDaysCondition
edu.cuny.cat.stat.RangeBasedScoreDaysCondition
- All Implemented Interfaces:
- AuctionEventListener, ScoreDaysCondition, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
public class RangeBasedScoreDaysCondition
- extends AbstractScoreDaysCondition
A ScoreDaysCondition
with which game days falling into a certain
frame are all counted for scoring.
Parameters
base.start
int >=0 (0 by default) |
(the first day of the scoring time frame) |
base.end
int >= 0 (game len by default) |
(the last day of the scoring time frame) |
- Version:
- $Revision: 1.6 $
- Author:
- Jinzhong Niu
Field Summary |
protected int |
day
|
protected int |
end
|
static java.lang.String |
P_END
|
static java.lang.String |
P_START
|
protected int |
start
|
protected boolean |
taken
|
Method Summary |
void |
setup(edu.cuny.config.param.ParameterDatabase parameters,
edu.cuny.config.param.Parameter base)
|
java.lang.String |
toString()
|
protected boolean |
updateTaken(int day)
determines whether the day is a scoring day or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
P_START
public static final java.lang.String P_START
- See Also:
- Constant Field Values
P_END
public static final java.lang.String P_END
- See Also:
- Constant Field Values
start
protected int start
end
protected int end
taken
protected boolean taken
day
protected int day
RangeBasedScoreDaysCondition
public RangeBasedScoreDaysCondition()
setup
public void setup(edu.cuny.config.param.ParameterDatabase parameters,
edu.cuny.config.param.Parameter base)
- Specified by:
setup
in interface edu.cuny.config.param.Parameterizable
- Overrides:
setup
in class AbstractScoreDaysCondition
updateTaken
protected boolean updateTaken(int day)
- Description copied from class:
AbstractScoreDaysCondition
- determines whether the day is a scoring day or not.
- Specified by:
updateTaken
in class AbstractScoreDaysCondition
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractScoreDaysCondition