Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/Transition.java @ 1119:7c4f81f74c47
merged gnv-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:00 +0200 |
parents | f953c9a559d8 |
children |
comparison
equal
deleted
inserted
replaced
1027:fca4b5eb8d2f | 1119:7c4f81f74c47 |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 | |
9 package de.intevation.gnv.transition; | |
10 | |
11 import de.intevation.gnv.state.State; | |
12 | |
13 import java.io.Serializable; | |
14 | |
15 import org.w3c.dom.Node; | |
16 | |
17 /** | |
18 * This interface describes basic methods necessary for a transition model. | |
19 * | |
20 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
21 * | |
22 */ | |
23 public interface Transition extends Serializable{ | |
24 | |
25 /** | |
26 * Returns the ID of the State from which the Transition could be used | |
27 * @return the ID of the State from which the Transition could be used | |
28 */ | |
29 public String getFrom(); | |
30 | |
31 /** | |
32 * Returns the ID of the State where it is possible to go as next. | |
33 * @return the ID of the State where it is possible to go as next. | |
34 */ | |
35 public String getTo(); | |
36 | |
37 /** | |
38 * Determines if it is possible to go along this Transition or not. | |
39 * @param state the current State | |
40 * @return true, if this transition is valid for the given state - otherwise | |
41 * false. | |
42 */ | |
43 public boolean isValid(State state); | |
44 | |
45 /** | |
46 * Configures the Transition. | |
47 * @param configuration | |
48 */ | |
49 public void setup(Node configuration); | |
50 | |
51 } | |
52 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |