edu.uiuc.ge.illigal.gale.data
Class AttributeSet

java.lang.Object
  |
  +--edu.uiuc.ge.illigal.gale.data.AttributeSet

public class AttributeSet
extends java.lang.Object

Attribute class contains the information for an attribute of the data set.

Since:
0.9alpha
Version:
0.9alpha
Author:
Xavier Llorà <xllora@illigal.ge.uiuc.edu>

Field Summary
protected  java.util.Vector vecAtts
          Set of attributes present in the data set
 
Constructor Summary
AttributeSet()
          Builds an empty attribute set.
 
Method Summary
 void add(edu.uiuc.ge.illigal.gale.data.Attribute att)
          Adds an attribute to the attribute set.
 edu.uiuc.ge.illigal.gale.data.Attribute attribute(int iPos)
          Returns the attribute of the given index.
 int size()
          Returns the number of attributes kept in the set.
 java.lang.String toString()
          Returns the stringfied representation of attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vecAtts

protected java.util.Vector vecAtts
Set of attributes present in the data set

Constructor Detail

AttributeSet

public AttributeSet()
Builds an empty attribute set.

Method Detail

attribute

public edu.uiuc.ge.illigal.gale.data.Attribute attribute(int iPos)
Returns the attribute of the given index.

Parameters:
iPos - the index of the attribute to retrieve
Returns:
the name

add

public void add(edu.uiuc.ge.illigal.gale.data.Attribute att)
Adds an attribute to the attribute set.

Parameters:
att - the attribute to add

size

public int size()
Returns the number of attributes kept in the set.

Returns:
the number of attributes

toString

public java.lang.String toString()
Returns the stringfied representation of attributes.

Overrides:
toString in class java.lang.Object
Returns:
the string