comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/Transition.java @ 657:af3f56758f59

merged gnv-artifacts/0.5
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:13:53 +0200
parents a887074460b6
children 9a828e5a2390
comparison
equal deleted inserted replaced
590:5f5f273c8566 657:af3f56758f59
1 package de.intevation.gnv.transition;
2
3 import java.io.Serializable;
4
5 import org.w3c.dom.Node;
6
7 import de.intevation.gnv.state.State;
8
9 /**
10 *
11 * @author Tim Englich <tim.englich@intevation.de>
12 *
13 */
14 public interface Transition extends Serializable{
15
16 /**
17 * Returns the ID of the State from which the Transition could be used
18 * @return the ID of the State from which the Transition could be used
19 */
20 public String getFrom();
21
22 /**
23 * Returns the ID of the State where it is possible to go as next.
24 * @return the ID of the State where it is possible to go as next.
25 */
26 public String getTo();
27
28 /**
29 * Determines if it is possible to go along this Transition or not.
30 * @param state the current State
31 * @return
32 */
33 public boolean isValid(State state);
34
35 /**
36 * Configures the Transition.
37 * @param configuration
38 */
39 public void setup(Node configuration);
40
41 }

http://dive4elements.wald.intevation.org