|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.cadena.core.queue.AbstractModelChangeAction
public abstract class AbstractModelChangeAction
| Nested Class Summary | |
|---|---|
static class |
AbstractModelChangeAction.State
|
| Constructor Summary | |
|---|---|
AbstractModelChangeAction()
|
|
| Method Summary | |
|---|---|
void |
completed()
Called by the queue after an has successfully completed |
java.lang.Exception |
getException()
Gets the exception that occured during execution. |
ModelChangeQueue |
getQueue()
Gets the queue that this action is contained within. |
abstract void |
run()
Run the action. |
void |
setException(java.lang.Exception exception)
This is set by the ModelChangeQueue if an exception was
caught while executing this action. |
void |
setQueue(ModelChangeQueue queue)
Called by ModelChangeQueue when it is added to a queue or
removed from a queue. |
void |
started()
Called by the queue directly before the action is started |
void |
waitForExecution()
Waits for the action to be run by the containing queue. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractModelChangeAction()
| Method Detail |
|---|
public abstract void run()
IModelChangeActionModelChangeQueue
run in interface IModelChangeActionpublic void setQueue(ModelChangeQueue queue)
IModelChangeActionModelChangeQueue when it is added to a queue or
removed from a queue.
setQueue in interface IModelChangeActionqueue - The queue it was added to.public void started()
IModelChangeAction
started in interface IModelChangeActionpublic void completed()
IModelChangeAction
completed in interface IModelChangeActionpublic void setException(java.lang.Exception exception)
IModelChangeActionModelChangeQueue if an exception was
caught while executing this action.
setException in interface IModelChangeActionexception - The exception.public java.lang.Exception getException()
IModelChangeActionnull is returned.
getException in interface IModelChangeActionIModelChangeAction.setException(java.lang.Exception)public ModelChangeQueue getQueue()
IModelChangeAction
getQueue in interface IModelChangeActionnull if
the action has not been added to a queue, or the action has
already run.public void waitForExecution()
IModelChangeAction
waitForExecution in interface IModelChangeAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||