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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
attSet
protected edu.uiuc.ge.illigal.gale.data.AttributeSet attSet
- The attribute information
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 instanceattSet
- the set of attributes to use
- Throws:
java.lang.Exception
- could not real the instance for the given attribute set
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