edu.colorado.simulations
Class CuckooClock

java.lang.Object
  extended by edu.colorado.simulations.Clock
      extended by edu.colorado.simulations.CuckooClock

public class CuckooClock
extends Clock

A CuckooClock is a Clock that cuckoos when the minute is zero. The primary purpose of this class is to demonstrate how an extended class is implemented.

Java Source Code for this class:
http://www.cs.colorado.edu/~main/edu/colorado/simulations/CuckooClock.java

See Also:
Clock

Constructor Summary
CuckooClock()
           
 
Method Summary
 boolean isCuckooing()
          Check whether this CuckooClock is currently cuckooing.
 
Methods inherited from class edu.colorado.simulations.Clock
advance, earlier, getHour, getMinute, isMorning, setTime, someMorning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CuckooClock

public CuckooClock()
Method Detail

isCuckooing

public boolean isCuckooing()
Check whether this CuckooClock is currently cuckooing.

Parameters:
- - none
Returns:
If this CuckooClock's current minute is zero, then the return value is true; otherwise the return value is false.