All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class kpalin.alabra.ClockListen

java.lang.Object
   |
   +----java.util.Observable
           |
           +----kpalin.alabra.ClockListen

public class ClockListen
extends Observable
implements Serializable
This signals ChessPlay when player has used his given time.

Author:
Kimmo Palin
See Also:
Observable

Variable Index

 o notified
Has this object been notified.
 o playerId
Id of the player whose clock this affects.

Constructor Index

 o ClockListen(int, Observer)

Method Index

 o allert()
Alerts all oberservers about reached deadline.
 o clearChanged()
 o getPlayer()
Gets the players id whos clock has elapsed.
 o hasChanged()
 o setChanged()

Variables

 o notified
 private boolean notified
Has this object been notified.

 o playerId
 private int playerId
Id of the player whose clock this affects.

Constructors

 o ClockListen
 ClockListen(int side,
             Observer obs)

Methods

 o getPlayer
 public synchronized int getPlayer()
Gets the players id whos clock has elapsed.

 o allert
 public void allert()
Alerts all oberservers about reached deadline.

 o hasChanged
 public synchronized boolean hasChanged()
Overrides:
hasChanged in class Observable
 o clearChanged
 protected synchronized void clearChanged()
Overrides:
clearChanged in class Observable
 o setChanged
 protected synchronized void setChanged()
Overrides:
setChanged in class Observable

All Packages  Class Hierarchy  This Package  Previous  Next  Index