Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/State.java @ 657:af3f56758f59
merged gnv-artifacts/0.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:53 +0200 (2012-09-28) |
parents | e86d37008fd1 |
children | dde7f51dbe1e |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.state; | |
5 | |
6 import java.io.Serializable; | |
7 import java.util.Collection; | |
8 import java.util.Map; | |
9 | |
10 import org.w3c.dom.Document; | |
11 import org.w3c.dom.Node; | |
12 | |
13 import de.intevation.artifacts.CallContext; | |
14 import de.intevation.gnv.state.exception.StateException; | |
15 | |
16 /** | |
17 * @author Tim Englich (tim.englich@intevation.de) | |
18 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) | |
19 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) | |
20 */ | |
21 public interface State extends Serializable { | |
22 | |
23 public void setup(Node configuration); | |
24 | |
25 public String getID(); | |
26 | |
27 public String getDescription(); | |
28 | |
29 public void describe( | |
30 Document document, | |
31 Node rootNode, | |
32 CallContext context, | |
33 String uuid | |
34 ); | |
35 | |
36 public void feed(Collection<InputData> inputData, String uuid) | |
37 throws StateException; | |
38 | |
39 public void setParent(State state); | |
40 | |
41 public State getParent(); | |
42 | |
43 public Collection<InputValue> getRequiredInputValues(); | |
44 | |
45 public Map<String, InputData> inputData(); | |
46 | |
47 public void putInputData(Collection<InputData> inputData, String uuid) | |
48 throws StateException; | |
49 | |
50 public Collection<InputData> getInputData() throws StateException; | |
51 | |
52 public void advance(String uuid, CallContext context) | |
53 throws StateException; | |
54 | |
55 public void initialize(String uuid, CallContext context) | |
56 throws StateException; | |
57 | |
58 public void reset(String uuid); | |
59 | |
60 public void endOfLife(Object globalContext); | |
61 | |
62 public void setPreSettings(Map<String,InputData> preSettings); | |
63 | |
64 public Map<String,InputData> getPreSettings(); | |
65 } |