Class AbstractMerge.SourceAttribute
- java.lang.Object
-
- adams.flow.transformer.wekadatasetsmerge.AbstractMerge.SourceAttribute
-
- All Implemented Interfaces:
Comparable<AbstractMerge.SourceAttribute>
- Enclosing class:
- AbstractMerge
protected class AbstractMerge.SourceAttribute extends Object implements Comparable<AbstractMerge.SourceAttribute>
Helper class for determining the mapping from input attributes in the source datasets to output attributes in the merged dataset.
-
-
Field Summary
Fields Modifier and Type Field Description int
attributeIndex
The index of the source attribute in the source dataset.String
attributeName
The name of the source attribute in the source dataset.int
datasetIndex
The index of the source dataset.
-
Constructor Summary
Constructors Constructor Description SourceAttribute(int datasetIndex, int attributeIndex, String attributeName)
Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AbstractMerge.SourceAttribute o)
weka.core.Attribute
getSource()
Gets the actual source attribute from the source datasets.String
toString()
-
-
-
Field Detail
-
datasetIndex
public final int datasetIndex
The index of the source dataset.
-
attributeIndex
public final int attributeIndex
The index of the source attribute in the source dataset.
-
attributeName
public final String attributeName
The name of the source attribute in the source dataset.
-
-
Constructor Detail
-
SourceAttribute
public SourceAttribute(int datasetIndex, int attributeIndex, String attributeName)
Standard constructor.- Parameters:
datasetIndex
- The index of the source dataset.attributeIndex
- The index of the source attribute in the source dataset.attributeName
- The name of the source attribute in the source dataset.
-
-
Method Detail
-
getSource
public weka.core.Attribute getSource()
Gets the actual source attribute from the source datasets.- Returns:
- The source attribute.
-
compareTo
public int compareTo(AbstractMerge.SourceAttribute o)
- Specified by:
compareTo
in interfaceComparable<AbstractMerge.SourceAttribute>
-
-