org.n52.wps.server
Class AbstractObservableAlgorithm

java.lang.Object
  extended by org.n52.wps.server.AbstractObservableAlgorithm
All Implemented Interfaces:
IAlgorithm, ISubject
Direct Known Subclasses:
AbstractGridGainAlgorithm, AbstractUnicoreAlgorithm

public abstract class AbstractObservableAlgorithm
extends java.lang.Object
implements IAlgorithm, ISubject


Constructor Summary
AbstractObservableAlgorithm()
          default constructor, calls the initializeDescription() Method
AbstractObservableAlgorithm(java.lang.String wellKnownName)
          default constructor, calls the initializeDescription() Method
 
Method Summary
 void addObserver(IObserver o)
           
 net.opengis.wps.x100.ProcessDescriptionType getDescription()
           
 java.lang.Object getState()
           
 java.lang.String getWellKnownName()
          Returns some well-known name for the process.
protected  net.opengis.wps.x100.ProcessDescriptionType initializeDescription()
          This method should be overwritten, in case you want to have a way of initializing.
 void notifyObservers()
           
 boolean processDescriptionIsValid()
          Checks if the processDescription complies to the process itself and fits any schema or other dependencies.
 void removeObserver(IObserver o)
           
 void update(java.lang.Object state)
           
 
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
getErrors, getInputDataType, getOutputDataType, run
 

Constructor Detail

AbstractObservableAlgorithm

public AbstractObservableAlgorithm()
default constructor, calls the initializeDescription() Method


AbstractObservableAlgorithm

public AbstractObservableAlgorithm(java.lang.String wellKnownName)
default constructor, calls the initializeDescription() Method

Method Detail

initializeDescription

protected net.opengis.wps.x100.ProcessDescriptionType initializeDescription()
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.

Returns:

getDescription

public net.opengis.wps.x100.ProcessDescriptionType getDescription()
Specified by:
getDescription in interface IAlgorithm

processDescriptionIsValid

public boolean processDescriptionIsValid()
Description copied from interface: IAlgorithm
Checks if the processDescription complies to the process itself and fits any schema or other dependencies.

Specified by:
processDescriptionIsValid in interface IAlgorithm

getWellKnownName

public java.lang.String getWellKnownName()
Description copied from interface: IAlgorithm
Returns some well-known name for the process.

Specified by:
getWellKnownName in interface IAlgorithm
Returns:
Returns some well-known name for the process or algorithm if that exists, else returns an empty String, never null.

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()


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