# HG changeset patch # User Tim Englich # Date 1268656775 0 # Node ID 8f7fe0cc6e5a0df55377434b4cdbc0893d7eb87d # Parent 18dc6a99f4f445432f8cbe64d3c6e5a122f40f75 Added Interface and Defaultimplementation for States which can be handled without any userinteraction. gnv-artifacts/trunk@772 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 18dc6a99f4f4 -r 8f7fe0cc6e5a gnv-artifacts/ChangeLog --- a/gnv-artifacts/ChangeLog Mon Mar 15 12:34:40 2010 +0000 +++ b/gnv-artifacts/ChangeLog Mon Mar 15 12:39:35 2010 +0000 @@ -1,3 +1,13 @@ +2010-03-15 Tim Englich + + * src/main/java/de/intevation/gnv/state/DefaultAutoResumeState.java, + src/main/java/de/intevation/gnv/state/AutoResumeState.java: + Added new Interface and its DefaultImplementation to the Project. + This Interface will mark States which can be handled automatically without + any interaction from the User. + So it is possible to fork a Sequence e.g. by given Constructorparameters + of an Artifact. + 2010-03-15 Tim Englich * src/main/java/de/intevation/gnv/state/StateBase.java (feed): diff -r 18dc6a99f4f4 -r 8f7fe0cc6e5a gnv-artifacts/src/main/java/de/intevation/gnv/state/AutoResumeState.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/AutoResumeState.java Mon Mar 15 12:39:35 2010 +0000 @@ -0,0 +1,15 @@ +/** + * + */ +package de.intevation.gnv.state; +/** + * + * Markerinterface for States which should be used for + * automatically Resume and jump to the next State using + * the Conditions of the Transitions which are linked to it. + * @author Tim Englich + * + */ +public interface AutoResumeState extends State{ + +} diff -r 18dc6a99f4f4 -r 8f7fe0cc6e5a gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultAutoResumeState.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultAutoResumeState.java Mon Mar 15 12:39:35 2010 +0000 @@ -0,0 +1,24 @@ +/** + * + */ +package de.intevation.gnv.state; + + +/** + * @author Tim Englich + * + */ +public class DefaultAutoResumeState extends StateBase implements AutoResumeState { + + /** + * The UID of this Class. + */ + private static final long serialVersionUID = -4470531390092041577L; + + /** + * Constructor + */ + public DefaultAutoResumeState() { + super(); + } +}