org.graffiti.plugin.algorithm
Class DefaultAlgorithmResult

java.lang.Object
  extended by org.graffiti.plugin.algorithm.DefaultAlgorithmResult
All Implemented Interfaces:
AlgorithmResult

public class DefaultAlgorithmResult
extends Object
implements AlgorithmResult

DOCUMENT ME!

Author:
Paul

Field Summary
protected  Map<String,Object> resultMap
          DOCUMENT ME!
 
Constructor Summary
DefaultAlgorithmResult()
          Constructor for DefaultAlgorithmResult.
DefaultAlgorithmResult(Map<String,Object> resultMap)
          Constructor for DefaultAlgorithmResult.
 
Method Summary
 void addToResult(String key, Object value)
          Adds a key-value pair to the Map.
 Object[] getComponentsForJDialog()
           
 Map<String,Object> getResult()
          Returns the Map.
 void setComponentForJDialog(Object comp)
           
 void setComponentsForJDialog(Object[] comps)
           
 String toString()
          By default return the string representation of the internal map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resultMap

protected Map<String,Object> resultMap
DOCUMENT ME!

Constructor Detail

DefaultAlgorithmResult

public DefaultAlgorithmResult()
Constructor for DefaultAlgorithmResult.


DefaultAlgorithmResult

public DefaultAlgorithmResult(Map<String,Object> resultMap)
Constructor for DefaultAlgorithmResult.

Parameters:
resultMap - DOCUMENT ME!
Method Detail

getResult

public Map<String,Object> getResult()
Description copied from interface: AlgorithmResult
Returns the Map. This function is intended to be used by other components that want to display the results.

Specified by:
getResult in interface AlgorithmResult
Returns:
DOCUMENT ME!
See Also:
AlgorithmResult.getResult()

addToResult

public void addToResult(String key,
                        Object value)
Description copied from interface: AlgorithmResult
Adds a key-value pair to the Map.

Specified by:
addToResult in interface AlgorithmResult
Parameters:
key - the key for the result.
value - the value of the result.

setComponentsForJDialog

public void setComponentsForJDialog(Object[] comps)
Specified by:
setComponentsForJDialog in interface AlgorithmResult

setComponentForJDialog

public void setComponentForJDialog(Object comp)
Specified by:
setComponentForJDialog in interface AlgorithmResult

getComponentsForJDialog

public Object[] getComponentsForJDialog()
Specified by:
getComponentsForJDialog in interface AlgorithmResult

toString

public String toString()
By default return the string representation of the internal map.

Overrides:
toString in class Object


Generated at 2012-05-30 11:00:36 PM CEST