com.liquidatom.derbyscore.domain
Class Team

java.lang.Object
  extended by com.liquidatom.derbyscore.domain.Team
All Implemented Interfaces:
java.util.concurrent.locks.ReadWriteLock

@ThreadSafe
public class Team
extends java.lang.Object
implements java.util.concurrent.locks.ReadWriteLock

Domain object which represents a team.

Author:
Russell Francis (russ@metro-six.com)

Constructor Summary
Team()
           
 
Method Summary
 boolean addListener(TeamListener listener)
           
 void applyJamPoints()
           
protected  void fireOnChanged()
           
 Bout getBout()
           
 java.awt.image.BufferedImage getImage()
           
 int getJamPoints()
           
 java.lang.String getJamPointsString()
           
 java.lang.String getName()
           
 int getScore()
           
 java.lang.String getScoreString()
           
 int getTimeouts()
           
 java.util.concurrent.locks.Lock readLock()
           
 boolean removeListener(TeamListener listener)
           
 void setBout(Bout bout)
           
 void setImage(java.awt.image.BufferedImage image)
           
 void setJamPoints(int jamPoints)
           
 void setName(java.lang.String name)
           
 void setScore(int score)
           
 void setTimeouts(int timeouts)
           
 java.util.concurrent.locks.Lock writeLock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Team

public Team()
Method Detail

addListener

public boolean addListener(TeamListener listener)

removeListener

public boolean removeListener(TeamListener listener)

fireOnChanged

protected void fireOnChanged()

getBout

public Bout getBout()

setBout

public void setBout(Bout bout)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getImage

public java.awt.image.BufferedImage getImage()

setImage

public void setImage(java.awt.image.BufferedImage image)

getTimeouts

public int getTimeouts()

setTimeouts

public void setTimeouts(int timeouts)

getJamPoints

public int getJamPoints()

setJamPoints

public void setJamPoints(int jamPoints)

getJamPointsString

public java.lang.String getJamPointsString()

applyJamPoints

public void applyJamPoints()

getScore

public int getScore()

setScore

public void setScore(int score)

getScoreString

public java.lang.String getScoreString()

readLock

public java.util.concurrent.locks.Lock readLock()
Specified by:
readLock in interface java.util.concurrent.locks.ReadWriteLock

writeLock

public java.util.concurrent.locks.Lock writeLock()
Specified by:
writeLock in interface java.util.concurrent.locks.ReadWriteLock