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 ofEvidenceReaderon demand.
-
-
Constructor Summary
Constructors Constructor Description DefaultEvidenceReaderCommand(DataReaderCommand command, List<VariableReference> variables, ReaderOptions readerOptions)Initializes a new instance of theDefaultEvidenceReaderCommandclass.DefaultEvidenceReaderCommand(DataReaderCommand command, List<VariableReference> variables, ReaderOptions readerOptions, DataReaderCommand commandTemporal, List<VariableReference> variablesTemporal, TemporalReaderOptions temporalReaderOptions)Initializes a new instance of theDefaultEvidenceReaderCommandclass, supporting both temporal and non temporal data.DefaultEvidenceReaderCommand(DataReaderCommand commandTemporal, List<VariableReference> variablesTemporal, TemporalReaderOptions temporalReaderOptions)Initializes a new instance of theDefaultEvidenceReaderCommandclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvidenceReaderexecuteReader()Returns an instance ofIEvidenceReaderwhich allows evidence to be iterated over.ExecuteEvidenceReadergetOnExecuteReader()Gets a function that is called when a new reader is created.voidsetOnExecuteReader(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 theDefaultEvidenceReaderCommandclass.- 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 theDefaultEvidenceReaderCommandclass. 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 theDefaultEvidenceReaderCommandclass, 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 ofIEvidenceReaderwhich allows evidence to be iterated over.- Specified by:
executeReaderin interfaceEvidenceReaderCommand- Returns:
- An evidence reader.
-
-