de.lmu.ifi.dbs.elki.result
Class BasicResult

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
      extended by de.lmu.ifi.dbs.elki.result.BasicResult
All Implemented Interfaces:
HierarchicalResult, Result
Direct Known Subclasses:
AprioriResult, Clustering, ClusterOrderResult, CollectionResult, KNNDistanceOrderResult, OrderingFromDataStore, OutlierResult, SettingsResult

public class BasicResult
extends AbstractHierarchicalResult

Basic class for a result. Much like AbstractHierarchicalResult, except it stores the required short and long result names.


Field Summary
private  String name
          Result name, for presentation
private  String shortname
          Result name, for output
 
Constructor Summary
BasicResult(String name, String shortname)
          Result constructor.
 
Method Summary
 String getLongName()
          A "pretty" name for the result, for use in titles, captions and menus.
 String getShortName()
          A short name for the result, useful for file names.
 
Methods inherited from class de.lmu.ifi.dbs.elki.result.AbstractHierarchicalResult
addChildResult, getHierarchy, setHierarchy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private String name
Result name, for presentation


shortname

private String shortname
Result name, for output

Constructor Detail

BasicResult

public BasicResult(String name,
                   String shortname)
Result constructor.

Parameters:
name - The long name (for pretty printing)
shortname - the short name (for filenames etc.)
Method Detail

getLongName

public final String getLongName()
Description copied from interface: Result
A "pretty" name for the result, for use in titles, captions and menus.

Returns:
result name

getShortName

public final String getShortName()
Description copied from interface: Result
A short name for the result, useful for file names.

Returns:
result name

Release 0.4.0 (2011-09-20_1324)