edu.uiuc.ge.illigal.gale.data
Class ConstructiveInstanceSet
java.lang.Object
|
+--edu.uiuc.ge.illigal.gale.data.InstanceSet
|
+--edu.uiuc.ge.illigal.gale.data.ConstructiveInstanceSet
- All Implemented Interfaces:
- OrderedSet
- public class ConstructiveInstanceSet
- extends InstanceSet
This class implements a instance set that can be constructed and
updated from a control outside the class.
- Since:
- 0.9alpha
- Version:
- 0.9alpha
- Author:
- Xavier Llorà <xllora@illigal.ge.uiuc.edu>
Field Summary |
protected edu.uiuc.ge.illigal.gale.config.GALEConfiguration |
galeCnf
GALE environment configuration object |
Constructor Summary |
ConstructiveInstanceSet(int size,
java.lang.String name,
edu.uiuc.ge.illigal.gale.config.GALEConfiguration gale,
edu.uiuc.ge.illigal.gale.data.AttributeSet att)
Builds an initializes the data structures for the object. |
Method Summary |
void |
setInstance(edu.uiuc.ge.illigal.gale.data.Instance ins)
Adds the instance to the Instance set. |
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 |
galeCnf
protected edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf
- GALE environment configuration object
ConstructiveInstanceSet
public ConstructiveInstanceSet(int size,
java.lang.String name,
edu.uiuc.ge.illigal.gale.config.GALEConfiguration gale,
edu.uiuc.ge.illigal.gale.data.AttributeSet att)
- Builds an initializes the data structures for the object.
- Parameters:
size
- the number of instances that are going to be kept inside
the objectname
- the relation namegale
- the GALE environment configuration objectatt
- the attribute set definition
setInstance
public void setInstance(edu.uiuc.ge.illigal.gale.data.Instance ins)
- Adds the instance to the Instance set.
- Parameters:
ins
- the instance to add.
toString
public java.lang.String toString()
- Description copied from class:
InstanceSet
- Converts the InstanceSet into a string readable format. It must be
implemented for all subclasses
- Specified by:
toString
in class InstanceSet
- Returns:
- The Instance information in a String format