Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/Transition.java @ 875:5e9efdda6894
merged gnv-artifacts/1.0
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:56 +0200 |
parents | 05bf8534a35a |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
722:bb3ffe7d719e | 875:5e9efdda6894 |
---|---|
1 package de.intevation.gnv.transition; | |
2 | |
3 import de.intevation.gnv.state.State; | |
4 | |
5 import java.io.Serializable; | |
6 | |
7 import org.w3c.dom.Node; | |
8 | |
9 /** | |
10 * This interface describes basic methods necessary for a transition model. | |
11 * | |
12 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
13 * | |
14 */ | |
15 public interface Transition extends Serializable{ | |
16 | |
17 /** | |
18 * Returns the ID of the State from which the Transition could be used | |
19 * @return the ID of the State from which the Transition could be used | |
20 */ | |
21 public String getFrom(); | |
22 | |
23 /** | |
24 * Returns the ID of the State where it is possible to go as next. | |
25 * @return the ID of the State where it is possible to go as next. | |
26 */ | |
27 public String getTo(); | |
28 | |
29 /** | |
30 * Determines if it is possible to go along this Transition or not. | |
31 * @param state the current State | |
32 * @return true, if this transition is valid for the given state - otherwise | |
33 * false. | |
34 */ | |
35 public boolean isValid(State state); | |
36 | |
37 /** | |
38 * Configures the Transition. | |
39 * @param configuration | |
40 */ | |
41 public void setup(Node configuration); | |
42 | |
43 } | |
44 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |