All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JObserve.AutoSaveThread

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----JObserve.AutoSaveThread

public class AutoSaveThread
extends Thread
Automatic, periodic saves of the working environment. Runs in an independent thread. Saves only done if the observe list is nonempty.


Variable Index

 o sleepTime
Time between saves (msec) Quits if this is ever turned negative

Constructor Index

 o AutoSaveThread(Observe, String, long)
Constructor

Method Index

 o run()
Save loop.

Variables

 o sleepTime
 public long sleepTime
Time between saves (msec) Quits if this is ever turned negative

Constructors

 o AutoSaveThread
 public AutoSaveThread(Observe myParent,
                       String saveFile,
                       long sleepTime)
Constructor

Parameters:
Observe - parent Observe window
- String root name of save files
long - save interval in milliseconds.

Methods

 o run
 public void run()
Save loop. Sleep for sleepTime then save working environment. Quits if sleepTime is ever turned negative

Overrides:
run in class Thread

All Packages  Class Hierarchy  This Package  Previous  Next  Index