org.metasyntactic.thread
Class Monitor

java.lang.Object
  |
  +--org.metasyntactic.thread.Monitor

public class Monitor
extends java.lang.Object

This class exists because I am a bad programmer. This is the purpose of the class (if there's a better way to do this e-mail me the correct solution). This class allows threads to go to sleep, and then be woken up later. It allows a ton a threads to to cooridinate their activities together.


Constructor Summary
Monitor()
           
 
Method Summary
 void sleep()
           
 void wakeUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Monitor

public Monitor()
Method Detail

sleep

public void sleep()
           throws java.lang.InterruptedException
java.lang.InterruptedException

wakeUp

public void wakeUp()