Configurable
, java.io.Serializable
, BudgetManager
, MOAObject
, OptionHandler
public class FixedBM extends AbstractOptionHandler implements BudgetManager
Modifier and Type | Field | Description |
---|---|---|
FloatOption |
budgetOption |
config
Constructor | Description |
---|---|
FixedBM() |
Modifier and Type | Method | Description |
---|---|---|
void |
getDescription(java.lang.StringBuilder sb,
int indent) |
Returns a string representation of this object.
|
int |
getLastLabelAcqReport() |
Returns the number of labels that have been chosen for acquisition since
the last report.
|
java.lang.String |
getPurposeString() |
Dictionary with option texts and objects
|
boolean |
isAbove(double value) |
Returns true if the given value is above an internal threshold and the
label should be acquired.
|
protected void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository) |
This method describes the implementation of how to prepare this object for use.
|
void |
resetLearning() |
Resets the budget manager.
|
copy, measureByteSize, measureByteSize, toString
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
measureByteSize
public FloatOption budgetOption
public java.lang.String getPurposeString()
AbstractOptionHandler
getPurposeString
in interface OptionHandler
getPurposeString
in class AbstractOptionHandler
public boolean isAbove(double value)
BudgetManager
isAbove
in interface BudgetManager
public int getLastLabelAcqReport()
BudgetManager
getLastLabelAcqReport
in interface BudgetManager
public void resetLearning()
BudgetManager
resetLearning
in interface BudgetManager
public void getDescription(java.lang.StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentprotected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to useCopyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.