Package adams.core.base
Class BaseMeasureCollection
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.AbstractBaseString
-
- adams.core.base.BaseMeasureCollection
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.core.base.BaseObject>
,Serializable
,Comparable
public class BaseMeasureCollection extends adams.core.base.AbstractBaseString
Wrapper for MOA'sMeasureCollection
classes.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_PACKAGE
the default package for collections.
-
Constructor Summary
Constructors Constructor Description BaseMeasureCollection()
Initializes the collection with the default collection.BaseMeasureCollection(String coll)
Initializes the collection the specified collection name.BaseMeasureCollection(moa.evaluation.MeasureCollection coll)
Initializes the collection the specified collection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description moa.evaluation.MeasureCollection
collectionValue()
Returns the collection as collection object.String
getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).protected void
initialize()
Initializes the internal object.boolean
isValid(String value)
Checks whether the string value is a valid presentation for this class.-
Methods inherited from class adams.core.base.AbstractBaseString
convert, getValue, isEmpty, length, setValue, stringValue
-
-
-
-
Field Detail
-
DEFAULT_PACKAGE
public static final String DEFAULT_PACKAGE
the default package for collections.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BaseMeasureCollection
public BaseMeasureCollection()
Initializes the collection with the default collection.
-
BaseMeasureCollection
public BaseMeasureCollection(moa.evaluation.MeasureCollection coll)
Initializes the collection the specified collection.- Parameters:
coll
- the collection to use
-
BaseMeasureCollection
public BaseMeasureCollection(String coll)
Initializes the collection the specified collection name.- Parameters:
coll
- the collection to use
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the internal object.
Default implementation does nothing.- Overrides:
initialize
in classadams.core.base.AbstractBaseString
-
isValid
public boolean isValid(String value)
Checks whether the string value is a valid presentation for this class.- Overrides:
isValid
in classadams.core.base.AbstractBaseString
- Parameters:
value
- the string value to check- Returns:
- true if non-null
-
collectionValue
public moa.evaluation.MeasureCollection collectionValue()
Returns the collection as collection object.- Returns:
- the collection
-
getTipText
public String getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).- Specified by:
getTipText
in classadams.core.base.AbstractBaseString
- Returns:
- the tool tip
-
-