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.


Method Summary
 Quantity accountValueFromProperties(java.util.Properties props)
           
 boolean canBuy(int currentRound)
           
 boolean canSell(int currentRound)
           
 Quantity cashFromProperties(java.util.Properties props)
           
 Quantity currentCouponCount(BinaryClaim claim)
           
 java.lang.String getHint()
           
 Quantity getScore(int round)
           
 java.lang.String getScoreExplanation()
           
 boolean isDormant(int currentRound)
           
 void linkHtml(java.lang.StringBuffer buff)
           
 java.lang.String logConfigValues(org.apache.log4j.Logger log, java.util.Properties props, int rounds)
           
 java.lang.String pageLink()
           
 void resetOutstandingOrders()
           
 void setHint(java.lang.String hint)
           
 void setHintsForRound(int currentRound, Session session)
           
 void setScore(int round, Quantity Score)
           
 Quantity totalScore()
           
 

Method Detail

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)