public class Procedure extends java.util.Observable implements ProcedureIntf, java.lang.Runnable
Author: Alain Hebert, Ecole Polytechnique de Montreal (2002)
Modifier and Type | Field and Description |
---|---|
Operator |
operatorOut
Operator object created by the procedure.
|
java.lang.Thread |
thread
Thread object used to run the procedure.
|
Constructor and Description |
---|
Procedure() |
Modifier and Type | Method and Description |
---|---|
Operator |
exec()
Default exec() method for debugging purposes.
|
boolean |
isAlive()
Return the state of the execution thread.
|
void |
join()
Wait for the procedure to finish its execution.
|
void |
notifyObserver()
Send message "run completed" to Observers.
|
void |
run()
Implements the Runnable interface.
|
void |
startThread()
Start a thread named "Procedure Thread" to execute the procedure.
|
public java.lang.Thread thread
public Operator operatorOut
public void notifyObserver()
public void run()
run
in interface java.lang.Runnable
java.lang.RuntimeException
- If a JargonException is thrown during execution
of the exec() methodpublic void startThread()
public boolean isAlive()
public void join() throws java.lang.InterruptedException
java.lang.InterruptedException
public Operator exec() throws JargonException
exec
in interface ProcedureIntf
JargonException