net.sourceforge.jasa.market.rules
Class MaxRoundsAuctionClosingCondition
java.lang.Object
net.sourceforge.jasa.market.rules.TimingCondition
net.sourceforge.jasa.market.rules.MaxRoundsAuctionClosingCondition
- All Implemented Interfaces:
- AuctionClosingCondition
public class MaxRoundsAuctionClosingCondition
- extends TimingCondition
- implements AuctionClosingCondition
The interface for expressing the condition of closing an market.
-
-
Field Summary |
protected int |
maximumRounds
The maximum number of rounds in the market. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maximumRounds
protected int maximumRounds
- The maximum number of rounds in the market. Ignored if negative.
MaxRoundsAuctionClosingCondition
public MaxRoundsAuctionClosingCondition()
MaxRoundsAuctionClosingCondition
public MaxRoundsAuctionClosingCondition(Market auction)
getMaximumRounds
public int getMaximumRounds()
- Return the maximum number of rounds for this market.
setMaximumRounds
public void setMaximumRounds(int maximumRounds)
- Set the maximum number of rounds for this market. The market will
automatically close after this number of rounds has been dealt.
eval
public boolean eval()
- Specified by:
eval
in class TimingCondition
getRemainingRounds
public int getRemainingRounds()