compbio.metadata
Class Preset<T>

java.lang.Object
  extended by compbio.metadata.Preset<T>
Type Parameters:
T - executable type

public class Preset<T>
extends Object

Collection of Options and Parameters with their values

Version:
1.0 December 2009
Author:
pvtroshin
See Also:
Option, Parameter

Constructor Summary
Preset()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Option<T>> getArguments(RunnerConfig<T> rconfig)
          Converts list of options as String to type Option
 String getDescription()
           
 String getName()
           
 List<String> getOptions()
           
 int hashCode()
           
 void setDescription(String description)
           
 void setName(String name)
           
 void setOptions(List<String> option)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Preset

public Preset()
Method Detail

setOptions

public void setOptions(List<String> option)

setName

public void setName(String name)

setDescription

public void setDescription(String description)

getOptions

public List<String> getOptions()
Returns:
a List of Options as a String

getName

public String getName()
Returns:
- name of the Preset

getDescription

public String getDescription()
Returns:
- a long description of the Preset

getArguments

public List<Option<T>> getArguments(RunnerConfig<T> rconfig)
                             throws WrongParameterException
Converts list of options as String to type Option

Parameters:
rconfig -
Returns:
List of Options
Throws:
WrongParameterException - if the value of the parameter is invalid @see Parameter

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object