view gnv-artifacts/src/main/java/de/intevation/gnv/state/State.java @ 483:c8089cd7d777

Added explicit index scheme to palette classes to allow external references. gnv-artifacts/trunk@558 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 18 Jan 2010 10:56:41 +0000
parents 20dde2b6f1b5
children cef17cc90fd0
line wrap: on
line source
/**
 *
 */
package de.intevation.gnv.state;

import de.intevation.artifacts.CallMeta;

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

import java.io.Serializable;

import java.util.Collection;
import java.util.Map;

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

/**
 * @author Tim Englich         (tim.englich@intevation.de)
 * @author Ingo Weinzierl      (ingo.weinzierl@intevation.de)
 * @author Sascha L. Teichmann (sascha.teichmann@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);

    public void endOfLife(Object globalContext);
}

http://dive4elements.wald.intevation.org