Class Clock

java.lang.Object
  |
  +--Clock

public class Clock
extends java.lang.Object
implements java.lang.Runnable

Simulation external clock. It runs in cycle of delay miliseconds and waiting loop checks each (delay/10) milis if cycle ended


Constructor Summary
Clock(int mini_delay)
          Constructs clock
 
Method Summary
 void run()
          Implements Runnable interface
 void waiting()
          Called for waiting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Clock

public Clock(int mini_delay)
Constructs clock
Parameters:
mini_delay - 1/10 of wanted delay
Method Detail

run

public void run()
Implements Runnable interface
Specified by:
run in interface java.lang.Runnable

waiting

public void waiting()
Called for waiting. When called, waits for beging of new clock cycle and then returns control to calling process