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

java.lang.Object
  |
  +--edu.uiuc.ge.illigal.gale.data.InstanceSet
All Implemented Interfaces:
OrderedSet
Direct Known Subclasses:
ConstructiveInstanceSet, FileInstanceSet

public abstract class InstanceSet
extends java.lang.Object
implements OrderedSet

This abstract class contains the set of instances available for a given problem. It is designed to contain real-valued instances.

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

Field Summary
protected  edu.uiuc.ge.illigal.gale.data.AttributeSet attSet
          Class tags
protected  edu.uiuc.ge.illigal.gale.data.Instance[] fsInstances
          Contains the Instances of the InstanceSet
protected  int iSize
          Number of Instances present in the InstanceSet
protected  java.lang.String sRelation
          Relation name
 
Constructor Summary
InstanceSet()
           
 
Method Summary
 edu.uiuc.ge.illigal.gale.data.AttributeSet attributeSet()
          Returns the attribute set.
 edu.uiuc.ge.illigal.gale.data.Instance getInstance(int iPos)
          Returns the instance for the given position
 java.lang.String getRelationName()
          Returns the relation name.
 int getSize()
          Returns the number of instances in the OrderedSet
abstract  java.lang.String toString()
          Converts the InstanceSet into a string readable format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

iSize

protected int iSize
Number of Instances present in the InstanceSet


fsInstances

protected edu.uiuc.ge.illigal.gale.data.Instance[] fsInstances
Contains the Instances of the InstanceSet


sRelation

protected java.lang.String sRelation
Relation name


attSet

protected edu.uiuc.ge.illigal.gale.data.AttributeSet attSet
Class tags

Constructor Detail

InstanceSet

public InstanceSet()
Method Detail

getInstance

public edu.uiuc.ge.illigal.gale.data.Instance getInstance(int iPos)
Description copied from interface: OrderedSet
Returns the instance for the given position

Specified by:
getInstance in interface OrderedSet
Parameters:
iPos - Index of the requested instance
Returns:
The value of the requested index

getSize

public int getSize()
Description copied from interface: OrderedSet
Returns the number of instances in the OrderedSet

Specified by:
getSize in interface OrderedSet
Returns:
The number of instances

attributeSet

public edu.uiuc.ge.illigal.gale.data.AttributeSet attributeSet()
Returns the attribute set.

Returns:
the attribute set for the given relation

getRelationName

public java.lang.String getRelationName()
Returns the relation name.

Returns:
the relation name

toString

public abstract java.lang.String toString()
Converts the InstanceSet into a string readable format. It must be implemented for all subclasses

Overrides:
toString in class java.lang.Object
Returns:
The Instance information in a String format