org.deegree.protocol.wps
Class GeoAlgorithmWithData

java.lang.Object
  extended by org.deegree.protocol.wps.GeoAlgorithmWithData

public class GeoAlgorithmWithData
extends Object

This class wraps a GeoAlgorithm with its test data.

Version:
$Revision: $, $Date: $
Author:
Jens Pabel, last edited by: $Author: pabel $

Constructor Summary
GeoAlgorithmWithData(es.unex.sextante.core.GeoAlgorithm alg)
          Creates a GeoAlgorithmWithData without test data.
GeoAlgorithmWithData(es.unex.sextante.core.GeoAlgorithm alg, LinkedList<LinkedList<ExampleData>> data, LinkedList<LinkedList<OutputFormat>> format)
          Creates a GeoAlgorithmWithData with test data.
 
Method Summary
 void addAllInputData(LinkedList<LinkedList<ExampleData>> data)
          Adds lists of test data for more than one execution.
 void addAllOutputFormats(LinkedList<LinkedList<OutputFormat>> format)
          Adds lists of output formats for more than one execution.
 void addInputData(LinkedList<ExampleData> data)
          Adds a list of test data for one execution.
 void addOutputFormats(LinkedList<OutputFormat> format)
          Adds a list of output formats for one execution.
 es.unex.sextante.core.GeoAlgorithm getAlgorithm()
          Returns the SEXTANTE GeoAlgorithm.
 LinkedList<LinkedList<ExampleData>> getAllInputData()
          Returns all test data of this algorithm.
 LinkedList<LinkedList<OutputFormat>> getAllOutputFormats()
          Returns all output formats of this algorithm.
 String getCommandLineName()
          Returns the command line name of the SEXTANTE GeoAlgorithm.
 String getIdentifier()
          Returns the identifier of this process.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoAlgorithmWithData

public GeoAlgorithmWithData(es.unex.sextante.core.GeoAlgorithm alg)
Creates a GeoAlgorithmWithData without test data.

Parameters:
alg - - SEXTANTE GeoAlgorithm.

GeoAlgorithmWithData

public GeoAlgorithmWithData(es.unex.sextante.core.GeoAlgorithm alg,
                            LinkedList<LinkedList<ExampleData>> data,
                            LinkedList<LinkedList<OutputFormat>> format)
Creates a GeoAlgorithmWithData with test data.

Parameters:
alg - SEXTANTE GeoAlgorithm.
data - A list of a list of ExampleData. If the algorithm need only one input parameter, you need only one element of ExampleData in the list. If the algorithm need more than one input parameter, you need for every input parameter a element of ExampleData in the list. The sequence of the example data must be identical to the sequence of the input parameters. For more than one execution you need a list of these lists.
Method Detail

addInputData

public void addInputData(LinkedList<ExampleData> data)
Adds a list of test data for one execution.

Parameters:
data - List of test data for one execution.

addAllInputData

public void addAllInputData(LinkedList<LinkedList<ExampleData>> data)
Adds lists of test data for more than one execution.

Parameters:
data - A list of a list of ExampleData. If the algorithm need only one input parameter, you need only one element of ExampleData in the list. If the algorithm need more than one input parameter, you need for every input parameter a element of ExampleData in the list. The sequence of the example data must be identical to the sequence of the input parameters. For more than one execution you need a list of these lists.

addOutputFormats

public void addOutputFormats(LinkedList<OutputFormat> format)
Adds a list of output formats for one execution.

Parameters:
format - List of output formats for one execution.

addAllOutputFormats

public void addAllOutputFormats(LinkedList<LinkedList<OutputFormat>> format)
Adds lists of output formats for more than one execution.

Parameters:
format - A list of a list of OutputFormat. If the algorithm need only one output parameter, you need only one element of OutputFormat in the list. If the algorithm need more than one output parameter, you need for every output parameter a element of OutputFormat in the list. The sequence of the example data must be identical to the sequence of the output parameters. For more than one execution you need a list of these lists.

getAllInputData

public LinkedList<LinkedList<ExampleData>> getAllInputData()
Returns all test data of this algorithm.

Returns:
All test data. Every list of VectorExampleData contains test data for one execution.

getAllOutputFormats

public LinkedList<LinkedList<OutputFormat>> getAllOutputFormats()
Returns all output formats of this algorithm.

Returns:
All output formats. Every list of OutputFormat contains output formats for one execution.

getAlgorithm

public es.unex.sextante.core.GeoAlgorithm getAlgorithm()
Returns the SEXTANTE GeoAlgorithm.

Returns:
SEXTANTE GeoAlgorithm.

getIdentifier

public String getIdentifier()
Returns the identifier of this process.

Returns:
Identifier of this process.

getCommandLineName

public String getCommandLineName()
Returns the command line name of the SEXTANTE GeoAlgorithm.

Returns:
Command line name of the SEXTANTE GeoAlgorithm.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.