Class Attribute

java.lang.Object
  extended by Attribute

public class Attribute
extends java.lang.Object

A class describing an attribute in a machine learning problem: in particular, the name of the attribute and the values it can take

Author:
John MacCormick

Constructor Summary
Attribute(java.lang.String name, java.lang.String[] values)
          Construct a new Attribute with the given name and values.
 
Method Summary
 java.lang.String getName()
          Get the name of the attribute.
 java.lang.String[] getValues()
          Get an array listing the values this attribute can take.
 void print()
          print a description of the attribute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String name,
                 java.lang.String[] values)
Construct a new Attribute with the given name and values.

Parameters:
name - the name of the attribute
values - the values this attribute can take
Method Detail

print

public void print()
print a description of the attribute


getName

public java.lang.String getName()
Get the name of the attribute.

Returns:
the name of the attribute

getValues

public java.lang.String[] getValues()
Get an array listing the values this attribute can take.

Returns:
the values this attribute can take