changeset 734:8f7fe0cc6e5a

Added Interface and Defaultimplementation for States which can be handled without any userinteraction. gnv-artifacts/trunk@772 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 15 Mar 2010 12:39:35 +0000
parents 18dc6a99f4f4
children d47901df0a14
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/state/AutoResumeState.java gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultAutoResumeState.java
diffstat 3 files changed, 49 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Mon Mar 15 12:34:40 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Mon Mar 15 12:39:35 2010 +0000
@@ -1,3 +1,13 @@
+2010-03-15  Tim Englich  <tim.englich@intevation.de>
+
+	* src/main/java/de/intevation/gnv/state/DefaultAutoResumeState.java, 
+	  src/main/java/de/intevation/gnv/state/AutoResumeState.java: 
+	  Added new Interface and its DefaultImplementation to the Project.
+	  This Interface will mark States which can be handled automatically without 
+	  any interaction from the User.
+	  So it is possible to fork a Sequence e.g. by given Constructorparameters 
+	  of an Artifact. 
+
 2010-03-15  Tim Englich  <tim.englich@intevation.de>
 
 	* src/main/java/de/intevation/gnv/state/StateBase.java (feed):
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/AutoResumeState.java	Mon Mar 15 12:39:35 2010 +0000
@@ -0,0 +1,15 @@
+/**
+ *
+ */
+package de.intevation.gnv.state;
+/**
+ * 
+ * Markerinterface for States which should be used for
+ * automatically Resume and jump to the next State using 
+ * the Conditions of the Transitions which are linked to it.
+ * @author Tim Englich <tim.englich@intevation.de>
+ *
+ */
+public interface AutoResumeState extends State{
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultAutoResumeState.java	Mon Mar 15 12:39:35 2010 +0000
@@ -0,0 +1,24 @@
+/**
+ *
+ */
+package de.intevation.gnv.state;
+
+
+/**
+ * @author Tim Englich <tim.englich@intevation.de>
+ *
+ */
+public class DefaultAutoResumeState extends StateBase implements AutoResumeState  {
+
+    /**
+     * The UID of this Class.
+     */
+    private static final long serialVersionUID = -4470531390092041577L;
+
+    /**
+     * Constructor
+     */
+    public DefaultAutoResumeState() {
+        super();
+    }
+}

http://dive4elements.wald.intevation.org