Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/transitions/Transition.java @ 106:5864c41219db
Initializes a TransitionEngine storing all transitions for each artifact at the application start.
flys-artifacts/trunk@1288 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 03 Feb 2011 10:23:30 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
105:beb991dc4827 | 106:5864c41219db |
---|---|
1 package de.intevation.flys.artifacts.transitions; | |
2 | |
3 import de.intevation.flys.artifacts.states.State; | |
4 | |
5 | |
6 /** | |
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
8 */ | |
9 public interface Transition { | |
10 | |
11 /** | |
12 * Return the ID of the start State. | |
13 */ | |
14 public String getFrom(); | |
15 | |
16 /** | |
17 * Return the ID of the target State. | |
18 */ | |
19 public String getTo(); | |
20 | |
21 /** | |
22 * Set the ID of the current State. | |
23 * | |
24 * @param from The ID of the current state. | |
25 */ | |
26 public void setFrom(String from); | |
27 | |
28 /** | |
29 * Set the ID of the target State. | |
30 * | |
31 * @param to The ID of the target state. | |
32 */ | |
33 public void setTo(String to); | |
34 | |
35 /** | |
36 * Determines if the transition from <code>state</code> is valid. | |
37 */ | |
38 public boolean isValid(State state); | |
39 } | |
40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |