Package moa.evaluation.preview
Class PreviewCollection<CollectionElementType extends Preview>
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.evaluation.preview.Preview
-
- moa.evaluation.preview.PreviewCollection<CollectionElementType>
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class PreviewCollection<CollectionElementType extends Preview> extends Preview
Class that stores and keeps the history of multiple previews- Version:
- $Revision: 1 $
- Author:
- Tuan Pham Minh (tuan.pham@ovgu.de)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreviewCollection(String orderingName, String indexName, Class<?> taskClass)
PreviewCollection(String orderingName, String indexName, Class<?> taskClass, String variedParamName, double[] variedParamValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
entryToString(int entryIndex)
String
entryToString(int subPreviewIndex, int interlacedEntryIndex)
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.double[]
getEntryData(int entryIndex)
String
getIndexName()
String
getMeasurementName(int measurementIndex)
int
getMeasurementNameCount()
String
getOrderingName()
List<CollectionElementType>
getPreviews()
Class<?>
getTaskClass()
String
getVariedParamName()
double[]
getVariedParamValues()
String
headerToString()
int
numEntries()
void
setPreview(int previewIndex, CollectionElementType preview)
String
toString()
Returns a description of the object.-
Methods inherited from class moa.evaluation.preview.Preview
getData, getMeasurementNames
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize
-
-
-
-
Method Detail
-
setPreview
public void setPreview(int previewIndex, CollectionElementType preview) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
numEntries
public int numEntries()
- Specified by:
numEntries
in classPreview
-
headerToString
public String headerToString()
-
entryToString
public String entryToString(int entryIndex)
- Specified by:
entryToString
in classPreview
-
entryToString
public String entryToString(int subPreviewIndex, int interlacedEntryIndex)
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
getPreviews
public List<CollectionElementType> getPreviews()
-
toString
public String toString()
Description copied from class:AbstractMOAObject
Returns a description of the object.- Overrides:
toString
in classAbstractMOAObject
- Returns:
- a description of the object
-
getMeasurementNameCount
public int getMeasurementNameCount()
- Specified by:
getMeasurementNameCount
in classPreview
-
getMeasurementName
public String getMeasurementName(int measurementIndex)
- Specified by:
getMeasurementName
in classPreview
-
getTaskClass
public Class<?> getTaskClass()
- Specified by:
getTaskClass
in classPreview
-
getEntryData
public double[] getEntryData(int entryIndex)
- Specified by:
getEntryData
in classPreview
-
getOrderingName
public String getOrderingName()
-
getIndexName
public String getIndexName()
-
getVariedParamName
public String getVariedParamName()
-
getVariedParamValues
public double[] getVariedParamValues()
-
-