Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/Transition.java @ 337:a887074460b6
Last Step of the Refactoring Work on the Transition Model.
Splitted Businesslogic between States and Transitions.
Splitted the ConfigurationElements of State and Transition in several XML-Fragments.
gnv-artifacts/trunk@403 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 08 Dec 2009 13:38:21 +0000 |
parents | |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
336:1b9ca0f2d498 | 337:a887074460b6 |
---|---|
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 } |