diff gnv-artifacts/src/main/java/de/intevation/gnv/state/State.java @ 540:80630520e25a

merged gnv-artifacts/0.4
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:13:49 +0200
parents cef17cc90fd0
children 9681ac6b6527
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/State.java	Fri Sep 28 12:13:49 2012 +0200
@@ -0,0 +1,60 @@
+/**
+ *
+ */
+package de.intevation.gnv.state;
+
+import de.intevation.artifacts.CallContext;
+
+import de.intevation.gnv.state.exception.StateException;
+
+import java.io.Serializable;
+
+import java.util.Collection;
+import java.util.Map;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+
+/**
+ * @author Tim Englich         (tim.englich@intevation.de)
+ * @author Ingo Weinzierl      (ingo.weinzierl@intevation.de)
+ * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
+ */
+public interface State extends Serializable {
+
+    public void setup(Node configuration);
+
+    public String getID();
+
+    public String getDescription();
+
+    public void describe(
+        Document    document,
+        Node        rootNode,
+        CallContext context,
+        String      uuid
+    );
+
+    public void setParent(State state);
+
+    public State getParent();
+
+    public Collection<InputValue> getRequiredInputValues();
+
+    public Map<String, InputData> inputData();
+
+    public void putInputData(Collection<InputData> inputData, String uuid)
+    throws StateException;
+
+    public Collection<InputData> getInputData() throws StateException;
+
+    public void advance(String uuid, CallContext context)
+    throws StateException;
+
+    public void initialize(String uuid, CallContext context)
+    throws StateException;
+
+    public void reset(String uuid);
+
+    public void endOfLife(Object globalContext);
+}

http://dive4elements.wald.intevation.org