Package com.bayesserver.data
Class DefaultEvidenceReaderCommand
- java.lang.Object
-
- com.bayesserver.data.DefaultEvidenceReaderCommand
-
- All Implemented Interfaces:
EvidenceReaderCommand
public final class DefaultEvidenceReaderCommand extends Object implements EvidenceReaderCommand
Creates instances ofEvidenceReader
on demand.
-
-
Constructor Summary
Constructors Constructor Description DefaultEvidenceReaderCommand(DataReaderCommand command, List<VariableReference> variables, ReaderOptions readerOptions)
Initializes a new instance of theDefaultEvidenceReaderCommand
class.DefaultEvidenceReaderCommand(DataReaderCommand command, List<VariableReference> variables, ReaderOptions readerOptions, DataReaderCommand commandTemporal, List<VariableReference> variablesTemporal, TemporalReaderOptions temporalReaderOptions)
Initializes a new instance of theDefaultEvidenceReaderCommand
class, supporting both temporal and non temporal data.DefaultEvidenceReaderCommand(DataReaderCommand commandTemporal, List<VariableReference> variablesTemporal, TemporalReaderOptions temporalReaderOptions)
Initializes a new instance of theDefaultEvidenceReaderCommand
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvidenceReader
executeReader()
Returns an instance ofIEvidenceReader
which allows evidence to be iterated over.ExecuteEvidenceReader
getOnExecuteReader()
Gets a function that is called when a new reader is created.void
setOnExecuteReader(ExecuteEvidenceReader value)
Sets a function that is called when a new reader is created.
-
-
-
Constructor Detail
-
DefaultEvidenceReaderCommand
public DefaultEvidenceReaderCommand(DataReaderCommand command, List<VariableReference> variables, ReaderOptions readerOptions)
Initializes a new instance of theDefaultEvidenceReaderCommand
class.- Parameters:
command
- The data reader command to read non temporal data.variables
- The non temporal variables.readerOptions
- Options for reading the data.
-
DefaultEvidenceReaderCommand
public DefaultEvidenceReaderCommand(DataReaderCommand commandTemporal, List<VariableReference> variablesTemporal, TemporalReaderOptions temporalReaderOptions)
Initializes a new instance of theDefaultEvidenceReaderCommand
class. This override is used when there is temporal data, but no non temporal data.- Parameters:
commandTemporal
- The data reader command to read temporal data.variablesTemporal
- The temporal variables.temporalReaderOptions
- Options for reading temporal data.
-
DefaultEvidenceReaderCommand
public DefaultEvidenceReaderCommand(DataReaderCommand command, List<VariableReference> variables, ReaderOptions readerOptions, DataReaderCommand commandTemporal, List<VariableReference> variablesTemporal, TemporalReaderOptions temporalReaderOptions)
Initializes a new instance of theDefaultEvidenceReaderCommand
class, supporting both temporal and non temporal data.- Parameters:
command
- The data reader command to read non temporal data.variables
- The non temporal variables.readerOptions
- Options for reading non temporal data.commandTemporal
- The data reader command to read temporal data.variablesTemporal
- The temporal variables.temporalReaderOptions
- Options for reading temporal data.
-
-
Method Detail
-
getOnExecuteReader
public ExecuteEvidenceReader getOnExecuteReader()
Gets a function that is called when a new reader is created.
-
setOnExecuteReader
public void setOnExecuteReader(ExecuteEvidenceReader value)
Sets a function that is called when a new reader is created.
-
executeReader
public EvidenceReader executeReader()
Returns an instance ofIEvidenceReader
which allows evidence to be iterated over.- Specified by:
executeReader
in interfaceEvidenceReaderCommand
- Returns:
- An evidence reader.
-
-