Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.utilities.optionhandling
Class AttributeSettings

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.AttributeSettings

public class AttributeSettings
extends Object

Encapsulates the current settings of the attributes of an object.

Author:
Elke Achtert

Field Summary
private  Object object
          The object.
private  List<AttributeSetting> settings
          The settings of the attributes.
 
Constructor Summary
AttributeSettings(Object object)
          Creates a new parameter setting object.
 
Method Summary
 void addOption(Option<?> option)
          Add an option to the settings list.
 void addSetting(String name, String value)
          Adds a new setting to this settings.
 List<AttributeSetting> getSettings()
          Returns the list of settings.
 String toString()
          Returns a string representation of the object.
 String toString(String prefix)
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

settings

private List<AttributeSetting> settings
The settings of the attributes.


object

private Object object
The object.

Constructor Detail

AttributeSettings

public AttributeSettings(Object object)
Creates a new parameter setting object.

Parameters:
object - the object
Method Detail

addSetting

public void addSetting(String name,
                       String value)
Adds a new setting to this settings.

Parameters:
name - the name of the attribute
value - a string representation of the value of the attribute

addOption

public void addOption(Option<?> option)
Add an option to the settings list.

Parameters:
option - Option to add

getSettings

public List<AttributeSetting> getSettings()
Returns the list of settings.

Returns:
the list of settings

toString

public String toString(String prefix)
Returns a string representation of the object.

Parameters:
prefix -
Returns:
a string representation of the object.

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object.

Release 0.2.1 (2009-07-13_1605)