|
Trull | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ComponentScheduler
An abstraction of the capability to execute and control a component in the proper thread.
| Method Summary | |
|---|---|
void |
await()
This method waits for the runner to finish processing all pending requests. |
void |
propertyChange(Component c,
java.beans.PropertyChangeEvent event)
This method sends an event to the component and waits until the component has processed the event. |
void |
resume(Component c)
This method resumes a component and waits until the component has resumed. |
void |
start(Component c)
This method starts a component and waits until the component is ready. |
void |
start(Component c,
java.beans.PropertyChangeEvent event)
This method starts a component with the given event and waits until the component is ready. |
void |
stop(Component c)
This method stops a component and waits until the component has stopped. |
void |
suspend(Component c)
This method suspends a component and waits until the component has suspended. |
| Methods inherited from interface edu.luc.cs.trull.Scheduler |
|---|
execute, schedule |
| Method Detail |
|---|
void await()
throws java.lang.InterruptedException
await in interface Schedulerjava.lang.InterruptedException - if the current thread is interrupted
before or while waiting.
void propertyChange(Component c,
java.beans.PropertyChangeEvent event)
throws java.lang.InterruptedException
c - the component that will receive the event.event - the event sent to the component.
java.lang.InterruptedException
void resume(Component c)
throws java.lang.InterruptedException
c - the component to be resumed.
java.lang.InterruptedException
void start(Component c)
throws java.lang.InterruptedException
c - the component to be started.
java.lang.InterruptedException
void start(Component c,
java.beans.PropertyChangeEvent event)
throws java.lang.InterruptedException
c - the component to be started.event - the event to be sent to the component.
java.lang.InterruptedException
void stop(Component c)
throws java.lang.InterruptedException
c - the component to be stopped.
java.lang.InterruptedException
void suspend(Component c)
throws java.lang.InterruptedException
c - the component to be suspended.
java.lang.InterruptedException
|
Trull | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||