Show / Hide Table of Contents

    Class EvidenceReaderCommand

    Creates instances of EvidenceReader on demand.

    Inheritance
    System.Object
    EvidenceReaderCommand
    Implements
    IEvidenceReaderCommand
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: BayesServer.Data
    Assembly: BayesServer.Data.dll
    Syntax
    public sealed class EvidenceReaderCommand : IEvidenceReaderCommand

    Constructors

    EvidenceReaderCommand(IDataReaderCommand, IList<VariableReference>, ReaderOptions)

    Initializes a new instance of the EvidenceReaderCommand class.

    Declaration
    public EvidenceReaderCommand(IDataReaderCommand command, IList<VariableReference> variables, ReaderOptions readerOptions)
    Parameters
    Type Name Description
    IDataReaderCommand command

    The data reader command to read non temporal data.

    System.Collections.Generic.IList<VariableReference> variables

    The non temporal variables.

    ReaderOptions readerOptions

    Options for reading the data.

    EvidenceReaderCommand(IDataReaderCommand, IList<VariableReference>, ReaderOptions, IDataReaderCommand, IList<VariableReference>, TemporalReaderOptions)

    Initializes a new instance of the EvidenceReaderCommand class, supporting both temporal and non temporal data.

    Declaration
    public EvidenceReaderCommand(IDataReaderCommand command, IList<VariableReference> variables, ReaderOptions readerOptions, IDataReaderCommand commandTemporal, IList<VariableReference> variablesTemporal, TemporalReaderOptions temporalReaderOptions)
    Parameters
    Type Name Description
    IDataReaderCommand command

    The data reader command to read non temporal data.

    System.Collections.Generic.IList<VariableReference> variables

    The non temporal variables.

    ReaderOptions readerOptions

    Options for reading non temporal data.

    IDataReaderCommand commandTemporal

    The data reader command to read temporal data.

    System.Collections.Generic.IList<VariableReference> variablesTemporal

    The temporal variables.

    TemporalReaderOptions temporalReaderOptions

    Options for reading temporal data.

    EvidenceReaderCommand(IDataReaderCommand, IList<VariableReference>, TemporalReaderOptions)

    Initializes a new instance of the EvidenceReaderCommand class. This override is used when there is temporal data, but no non temporal data.

    Declaration
    public EvidenceReaderCommand(IDataReaderCommand commandTemporal, IList<VariableReference> variablesTemporal, TemporalReaderOptions temporalReaderOptions)
    Parameters
    Type Name Description
    IDataReaderCommand commandTemporal

    The data reader command to read temporal data.

    System.Collections.Generic.IList<VariableReference> variablesTemporal

    The temporal variables.

    TemporalReaderOptions temporalReaderOptions

    Options for reading temporal data.

    Properties

    OnExecuteReader

    Gets or sets a function that is called when a new reader is created.

    Declaration
    public Action<EvidenceReaderEventArgs> OnExecuteReader { get; set; }
    Property Value
    Type Description
    System.Action<EvidenceReaderEventArgs>

    Methods

    ExecuteReader()

    Returns an instance of IEvidenceReader which allows evidence to be iterated over.

    Declaration
    public IEvidenceReader ExecuteReader()
    Returns
    Type Description
    IEvidenceReader

    An evidence reader.

    Implements

    IEvidenceReaderCommand
    Back to top Copyright Bayes Server Ltd. All rights Reserved.