net.commerce.zocalo.experiment
Interface ExperimentSubject
- All Known Implementing Classes:
- AbstractSubject, Borrower, Judge, Manipulator, Trader, TradingSubject
public interface ExperimentSubject
Interface for experiment subjects. Subjects track score, and know the
User object if there is one.
getHint
java.lang.String getHint()
setHint
void setHint(java.lang.String hint)
setHintsForRound
void setHintsForRound(int currentRound,
Session session)
accountValueFromProperties
Quantity accountValueFromProperties(java.util.Properties props)
cashFromProperties
Quantity cashFromProperties(java.util.Properties props)
getScore
Quantity getScore(int round)
setScore
void setScore(int round,
Quantity Score)
totalScore
Quantity totalScore()
getScoreExplanation
java.lang.String getScoreExplanation()
currentCouponCount
Quantity currentCouponCount(BinaryClaim claim)
resetOutstandingOrders
void resetOutstandingOrders()
logConfigValues
java.lang.String logConfigValues(org.apache.log4j.Logger log,
java.util.Properties props,
int rounds)
linkHtml
void linkHtml(java.lang.StringBuffer buff)
pageLink
java.lang.String pageLink()
canBuy
boolean canBuy(int currentRound)
canSell
boolean canSell(int currentRound)
isDormant
boolean isDormant(int currentRound)