net.commerce.zocalo.experiment.role
Class JudgeRole

java.lang.Object
  extended by net.commerce.zocalo.experiment.role.Role
      extended by net.commerce.zocalo.experiment.role.JudgeRole

public class JudgeRole
extends Role

JudgeRole indicates that Judges don't have accounts and aren't backed by users.


Constructor Summary
JudgeRole()
           
 
Method Summary
 boolean canBuy(int currentRound)
           
 boolean canSell(int round)
           
 AbstractSubject createSubject(User user)
           
 AbstractSubject createSubject(User user, int rounds, java.lang.String playerName)
           
 boolean needsUser()
           
 boolean requiresJudges()
           
 java.lang.String roleKeyword()
           
 
Methods inherited from class net.commerce.zocalo.experiment.role.Role
canBuy, canSell, dormant, dormantPeriods, getInitialCash, getInitialCoupons, initializeDormancy, initializeFromProps, setInitialCash, setInitialCoupons
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JudgeRole

public JudgeRole()
Method Detail

requiresJudges

public boolean requiresJudges()
Overrides:
requiresJudges in class Role

roleKeyword

public java.lang.String roleKeyword()
Specified by:
roleKeyword in class Role

createSubject

public AbstractSubject createSubject(User user)

needsUser

public boolean needsUser()
Overrides:
needsUser in class Role

createSubject

public AbstractSubject createSubject(User user,
                                     int rounds,
                                     java.lang.String playerName)
Specified by:
createSubject in class Role

canBuy

public boolean canBuy(int currentRound)
Overrides:
canBuy in class Role

canSell

public boolean canSell(int round)
Overrides:
canSell in class Role