net.sourceforge.jasa.market.rules
Class MaxRoundsDayEndingCondition
java.lang.Object
net.sourceforge.jasa.market.rules.TimingCondition
net.sourceforge.jasa.market.rules.MaxRoundsDayEndingCondition
- All Implemented Interfaces:
- DayEndingCondition
public class MaxRoundsDayEndingCondition
- extends TimingCondition
- implements DayEndingCondition
The interface for expressing the condition of closing an market.
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
P_LENGTH_OF_DAY
public static final java.lang.String P_LENGTH_OF_DAY
- See Also:
- Constant Field Values
lengthOfDay
protected int lengthOfDay
- The maximum length in rounds of a trading day
MaxRoundsDayEndingCondition
public MaxRoundsDayEndingCondition()
MaxRoundsDayEndingCondition
public MaxRoundsDayEndingCondition(Market auction)
getLengthOfDay
public int getLengthOfDay()
setLengthOfDay
public void setLengthOfDay(int lengthOfDay)
eval
public boolean eval()
- Specified by:
eval
in class TimingCondition
getRemainingRounds
public int getRemainingRounds()