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

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

public class StringInstance
extends Instance

This class contains the information of a instance obtained from a String. The information must be separated with coma delimiters.

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
          The attribute information
 
Fields inherited from class edu.uiuc.ge.illigal.gale.data.Instance
baKnown, faInfo, iClass, iLength
 
Constructor Summary
StringInstance(java.lang.String sInstance, edu.uiuc.ge.illigal.gale.data.AttributeSet attSet)
          Initialize a instance from the String information that it receives.
 
Method Summary
 java.lang.String toString()
          Converts the instance into a string readable format.
 
Methods inherited from class edu.uiuc.ge.illigal.gale.data.Instance
getInstanceClass, getLength, getValue, isKnown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attSet

protected edu.uiuc.ge.illigal.gale.data.AttributeSet attSet
The attribute information

Constructor Detail

StringInstance

public StringInstance(java.lang.String sInstance,
                      edu.uiuc.ge.illigal.gale.data.AttributeSet attSet)
               throws java.lang.Exception
Initialize a instance from the String information that it receives. The instance values are described by real values, except the last one which is the integer that defines the class where the instance belongs to.

Parameters:
sInstance - Contains the information of instance
attSet - the set of attributes to use
Throws:
java.lang.Exception - could not real the instance for the given attribute set
Method Detail

toString

public java.lang.String toString()
Converts the instance into a string readable format. The format is equivalent to the constructor format.

Specified by:
toString in class Instance
Returns:
The Instance information in a String format