diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-08-07 14:52:00 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-08-07 14:52:00 +0000 |
commit | 94bf81d31e74a209d60f2fd4f1f20448770bf1a0 (patch) | |
tree | ee0a3ebc6e659360cbf822bf428034c33527ce39 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/WorkflowState.java | |
parent | ef8b65e36085eb8d113620cb91ae1f0b2695eea2 (diff) | |
download | pdf-over-94bf81d31e74a209d60f2fd4f1f20448770bf1a0.tar.gz pdf-over-94bf81d31e74a209d60f2fd4f1f20448770bf1a0.tar.bz2 pdf-over-94bf81d31e74a209d60f2fd4f1f20448770bf1a0.zip |
Refactoring
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12276 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/WorkflowState.java')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/WorkflowState.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/WorkflowState.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/WorkflowState.java new file mode 100644 index 00000000..f9d10d08 --- /dev/null +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/WorkflowState.java @@ -0,0 +1,32 @@ +package at.asit.pdfover.gui.workflow; + +/** + * Base state class + * @author afitzek + */ +public abstract class WorkflowState { + + private WorkflowState _next = null; + + /** + * Gets the next logical state or null if this their is no state transition + * @return the next state (or null) + */ + public WorkflowState nextState() { + return this._next; + } + + /** + * Sets the next logical state + * @param state + */ + protected void setNextState(WorkflowState state) { + this._next = state; + } + + /** + * Perform main logic for this state + * @param workflow + */ + public abstract void update(Workflow workflow); +} |