edu.cmu.minorthird.classify
Class SGMExample

java.lang.Object
  extended by edu.cmu.minorthird.classify.Example
      extended by edu.cmu.minorthird.classify.SGMExample
All Implemented Interfaces:
HasSubpopulationId, Instance, Visible, java.io.Serializable

public class SGMExample
extends Example
implements Instance, Visible, java.io.Serializable

An instance designed for a relational dataset. Extends from Example. Modified by Zhenzhen Kou to include an ExmapleID

Author:
Zhenzhen Kou
See Also:
Serialized Form

Field Summary
protected  java.lang.String exampleId
           
 
Fields inherited from class edu.cmu.minorthird.classify.Example
instance, label, weight
 
Constructor Summary
SGMExample(Instance instance, ClassLabel label, java.lang.String exampleId)
           
SGMExample(Instance instance, ClassLabel label, java.lang.String exampleId, double weight)
           
 
Method Summary
 java.lang.String getExampleID()
          Get the ExampleID
 boolean hasID(java.lang.String id)
          Has the ExampleID or not
 java.lang.String toString()
           
 
Methods inherited from class edu.cmu.minorthird.classify.Example
asInstance, binaryFeatureIterator, featureIterator, getLabel, getSource, getSubpopulationId, getWeight, getWeight, numericFeatureIterator, numFeatures, setWeight, toGUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.cmu.minorthird.classify.Instance
binaryFeatureIterator, featureIterator, getSource, getSubpopulationId, getWeight, numericFeatureIterator, numFeatures
 
Methods inherited from interface edu.cmu.minorthird.util.gui.Visible
toGUI
 

Field Detail

exampleId

protected java.lang.String exampleId
Constructor Detail

SGMExample

public SGMExample(Instance instance,
                  ClassLabel label,
                  java.lang.String exampleId,
                  double weight)

SGMExample

public SGMExample(Instance instance,
                  ClassLabel label,
                  java.lang.String exampleId)
Method Detail

getExampleID

public java.lang.String getExampleID()
Get the ExampleID


hasID

public boolean hasID(java.lang.String id)
Has the ExampleID or not


toString

public java.lang.String toString()
Overrides:
toString in class Example