public abstract class AbstractMultiLabelStreamFilter extends AbstractOptionHandler implements MultiLabelStreamFilter
Modifier and Type | Field and Description |
---|---|
protected ExampleStream<Example<Instance>> |
inputStream
The input stream to this filter.
|
config
Constructor and Description |
---|
AbstractMultiLabelStreamFilter() |
Modifier and Type | Method and Description |
---|---|
long |
estimatedRemainingInstances()
Gets the estimated number of remaining instances in this stream
|
boolean |
hasMoreInstances()
Gets whether this stream has more instances to output.
|
boolean |
isRestartable()
Gets whether this stream can restart.
|
void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
void |
restart()
Restarts this stream.
|
protected abstract void |
restartImpl()
Restarts this filter.
|
void |
setInputStream(ExampleStream<Example<Instance>> stream)
Sets the input stream to the filter
|
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHeader, nextInstance
copy, getDescription, measureByteSize
protected ExampleStream<Example<Instance>> inputStream
public void setInputStream(ExampleStream<Example<Instance>> stream)
MultiLabelStreamFilter
setInputStream
in interface MultiLabelStreamFilter
stream
- the input stream to the filterpublic 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 usepublic long estimatedRemainingInstances()
ExampleStream
estimatedRemainingInstances
in interface ExampleStream<Example<Instance>>
public boolean hasMoreInstances()
ExampleStream
hasMoreInstances
in interface ExampleStream<Example<Instance>>
public boolean isRestartable()
ExampleStream
isRestartable
in interface ExampleStream<Example<Instance>>
public void restart()
ExampleStream
restart
in interface ExampleStream<Example<Instance>>
protected abstract void restartImpl()
AbstractStreamFilter
must implement restartImpl
.
restart
uses restartImpl
in AbstractStreamFilter
.Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.