sod.util
Class AbstractApplication
java.lang.Object
|
+--sod.util.AbstractApplication
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Run1, Run2
- public abstract class AbstractApplication
- extends java.lang.Object
- implements java.io.Serializable
This is the superclass of any class that wants to be executed.
- See Also:
- Serialized Form
Field Summary |
protected java.io.OutputStream |
out
|
Method Summary |
void |
init(java.io.OutputStream out)
This common methods initializes the reference of the class OutputStream. |
abstract void |
resume()
This method will be called to resume execution of the application after a it was suspended. |
abstract void |
run()
This method will be called to run this application. |
abstract void |
suspend()
This method will be called to suspend the application, so the process can be migrated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected java.io.OutputStream out
AbstractApplication
public AbstractApplication()
init
public void init(java.io.OutputStream out)
- This common methods initializes the reference of the class OutputStream.
run
public abstract void run()
- This method will be called to run this application. Note that it will be called even after the application was suspended.
suspend
public abstract void suspend()
- This method will be called to suspend the application, so the process can be migrated.
resume
public abstract void resume()
- This method will be called to resume execution of the application after a it was suspended.