view gnv-artifacts/src/main/java/de/intevation/gnv/state/State.java @ 478:0e0c64c821dc

Added support to step back to the point for choosing a product. gnv-artifacts/trunk@547 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 15 Jan 2010 18:21:49 +0000
parents a6a33ef35809
children 20dde2b6f1b5
line wrap: on
line source
/**
 *
 */
package de.intevation.gnv.state;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;

import org.w3c.dom.Document;
import org.w3c.dom.Node;

import de.intevation.artifacts.CallMeta;
import de.intevation.gnv.state.exception.StateException;

/**
 * @author Tim Englich <tim.englich@intevation.de>
 * 
 */
public interface State extends Serializable {

    public void setup(Node configuration);

    public String getID();

    public String getDescription();

    public void describe(Document document, Node rootNode, 
                         CallMeta callMeta, String uuid);

    public void setParent(State state);

    public State getParent();

    public Collection<InputValue> getRequiredInputValues();

    public Map<String, InputData> inputData();

    public void putInputData(Collection<InputData> inputData, 
                             String uuid)throws StateException;

    public Collection<InputData> getInputData() throws StateException;

    public void advance(String uuid, CallMeta callMeta)
                                                    throws StateException;
    public void initialize(String uuid, CallMeta callMeta)
                                                    throws StateException;
    
    public void reset(String uuid);
}

http://dive4elements.wald.intevation.org