org.n52.wps.server
Class AbstractSelfDescribingAlgorithm

java.lang.Object
  extended by org.n52.wps.server.AbstractAlgorithm
      extended by org.n52.wps.server.AbstractSelfDescribingAlgorithm
All Implemented Interfaces:
IAlgorithm, ISubject
Direct Known Subclasses:
AddRasterValues, ConvexHullAlgorithm, DifferenceAlgorithm, DouglasPeuckerAlgorithm, IntersectionAlgorithm, SimpleBufferAlgorithm, TopologyPreservingSimplificationAlgorithm

public abstract class AbstractSelfDescribingAlgorithm
extends AbstractAlgorithm
implements ISubject


Field Summary
 
Fields inherited from class org.n52.wps.server.AbstractAlgorithm
description
 
Constructor Summary
AbstractSelfDescribingAlgorithm()
           
 
Method Summary
 void addObserver(IObserver o)
           
 java.util.List<java.lang.String> getErrors()
           
abstract  java.util.List<java.lang.String> getInputIdentifiers()
           
 java.math.BigInteger getMaxOccurs(java.lang.String identifier)
           
 java.math.BigInteger getMinOccurs(java.lang.String identifier)
           
abstract  java.util.List<java.lang.String> getOutputIdentifiers()
           
 java.lang.Object getState()
           
protected  net.opengis.wps.x100.ProcessDescriptionType initializeDescription()
          This method should be overwritten, in case you want to have a way of initializing.
 void notifyObservers()
           
 void removeObserver(IObserver o)
           
 void update(java.lang.Object state)
           
 
Methods inherited from class org.n52.wps.server.AbstractAlgorithm
getDescription, getWellKnownName, processDescriptionIsValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.n52.wps.server.IAlgorithm
getInputDataType, getOutputDataType, run
 

Constructor Detail

AbstractSelfDescribingAlgorithm

public AbstractSelfDescribingAlgorithm()
Method Detail

initializeDescription

protected net.opengis.wps.x100.ProcessDescriptionType initializeDescription()
Description copied from class: AbstractAlgorithm
This method should be overwritten, in case you want to have a way of initializing. In detail it looks for a xml descfile, which is located in the same directory as the implementing class and has the same name as the class, but with the extension XML.

Overrides:
initializeDescription in class AbstractAlgorithm
Returns:

getMinOccurs

public java.math.BigInteger getMinOccurs(java.lang.String identifier)

getMaxOccurs

public java.math.BigInteger getMaxOccurs(java.lang.String identifier)

getInputIdentifiers

public abstract java.util.List<java.lang.String> getInputIdentifiers()

getOutputIdentifiers

public abstract java.util.List<java.lang.String> getOutputIdentifiers()

getState

public java.lang.Object getState()
Specified by:
getState in interface ISubject

update

public void update(java.lang.Object state)
Specified by:
update in interface ISubject

addObserver

public void addObserver(IObserver o)
Specified by:
addObserver in interface ISubject

removeObserver

public void removeObserver(IObserver o)
Specified by:
removeObserver in interface ISubject

notifyObservers

public void notifyObservers()

getErrors

public java.util.List<java.lang.String> getErrors()
Specified by:
getErrors in interface IAlgorithm


Copyright © 2007-2011 52north.org. All Rights Reserved.