org.opentox.algorithm.reporting
Class AlgorithmReporter

java.lang.Object
  extended by org.opentox.error.ErrorSource
      extended by org.opentox.algorithm.reporting.AlgorithmReporter
All Implemented Interfaces:
IAlgorithmReporter, IProne2Error

public class AlgorithmReporter
extends ErrorSource
implements IAlgorithmReporter

Version:
1.3.3 (Last update: Dec 28, 2009)
Author:
OpenTox - http://www.opentox.org/, Sopasakis Pantelis, Sarimveis Harry

Field Summary
 
Fields inherited from class org.opentox.error.ErrorSource
errorRep
 
Constructor Summary
AlgorithmReporter()
           
 
Method Summary
 org.restlet.representation.Representation formatedRepresntation(org.restlet.data.MediaType media, AlgorithmEnum algorithm)
          Formatted representation of an algorithm given the algorithm and the desired MIME type.
 ErrorRepresentation getErrorRep()
           
private  org.restlet.representation.Representation getRepresentationForMetaInf(AlgorithmMeta metainf, org.restlet.data.MediaType media)
           
private static java.util.ArrayList<AlgorithmParameter> Parameters(AlgorithmEnum algorithm)
           
private static java.util.ArrayList<java.lang.String> statisticsSupported(AlgorithmEnum algorithm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgorithmReporter

public AlgorithmReporter()
Method Detail

statisticsSupported

private static java.util.ArrayList<java.lang.String> statisticsSupported(AlgorithmEnum algorithm)

Parameters

private static java.util.ArrayList<AlgorithmParameter> Parameters(AlgorithmEnum algorithm)

getRepresentationForMetaInf

private org.restlet.representation.Representation getRepresentationForMetaInf(AlgorithmMeta metainf,
                                                                              org.restlet.data.MediaType media)

formatedRepresntation

public org.restlet.representation.Representation formatedRepresntation(org.restlet.data.MediaType media,
                                                                       AlgorithmEnum algorithm)
Description copied from interface: IAlgorithmReporter
Formatted representation of an algorithm given the algorithm and the desired MIME type.

Specified by:
formatedRepresntation in interface IAlgorithmReporter
Parameters:
media - Prefered mime.
algorithm - The algorithm for which the representation is needed.
Returns:
Representation of algorithm in prefered MIME type.

getErrorRep

public ErrorRepresentation getErrorRep()
Specified by:
getErrorRep in interface IProne2Error
Overrides:
getErrorRep in class ErrorSource