public VirtualChannelBuilder(IParametersSymbolTable symbolTable, int slowRowRateInMilliHz, ISlowRowStorage <TTime> slowRowStorage, ITimeUtils <TTime> timeUtils) { m_symbolTable = symbolTable; m_slowRowRateInMilliHz = slowRowRateInMilliHz; m_slowRowStorage = slowRowStorage; m_timeUtils = timeUtils; }
public SlowRowVirtualChannel(IExpression virtualExpression, int virtualParameterId, int slowRowRateInMilliHz, IParametersSymbolTable symbolTable, ISlowRowStorage <TTime> slowRowStorage, ITimeUtils <TTime> timeUtils) { m_virtualParameterId = virtualParameterId; m_slowRowRateInMilliHz = slowRowRateInMilliHz; m_timeUtils = timeUtils; m_context = new SlowRowExpressionContext <TTime>(slowRowStorage); var compiler = new CompileVisitor(m_context, symbolTable, new DefaultCallContext()); virtualExpression.Accept(compiler); m_evaluate = compiler.GetCompiledExpression(); }
public SingleLoggedParameterVirtualChannel(IExpression virtualExpression, int virtualParameterId, int loggedParameterId, int loggedParameterFrequencyInMilliHz, IParametersSymbolTable symbolTable, ISlowRowStorage <TTime> slowRowStorage, ITimeUtils <TTime> timeUtils) { m_virtualParameterId = virtualParameterId; m_loggedParameterFrequencyInMilliHz = loggedParameterFrequencyInMilliHz; m_timeUtils = timeUtils; m_context = new SingleValueWithSlowRowExpressionContext <TTime>(slowRowStorage, loggedParameterId); var compiler = new CompileVisitor(m_context, symbolTable, new DefaultCallContext()); virtualExpression.Accept(compiler); m_evaluate = compiler.GetCompiledExpression(); }
public MultiLoggedParametersVirtualChannel(IExpression virtualExpression, int virtualParameterId, int[] loggedParametersIds, int loggedParametersFrequencyInMilliHz, IParametersSymbolTable symbolTable, ISlowRowStorage <TTime> slowRowStorage, ITimeUtils <TTime> timeUtils) { m_virtualParameterId = virtualParameterId; m_loggedParametersFrequencyInMilliHz = loggedParametersFrequencyInMilliHz; m_timeUtils = timeUtils; m_coverageCircularBuffer = new CoverageCircularBuffer <TTime>(loggedParametersIds, loggedParametersFrequencyInMilliHz, 30, timeUtils); m_context = new MultiValueWithSlowRowExpressionContext <TTime>(slowRowStorage, loggedParametersIds); var compiler = new CompileVisitor(m_context, symbolTable, new DefaultCallContext()); virtualExpression.Accept(compiler); m_evaluate = compiler.GetCompiledExpression(); m_timeZero = timeUtils.Zero(); }
public CompileVisitor(IExpressionContext context, IParametersSymbolTable symbolTable, ICallContext callContext) { m_context = context; m_symbolTable = symbolTable; m_callContext = callContext; }
public EvaluatorVisitor(IExpressionContext context, IParametersSymbolTable symbolTable, IFunctionContext functionContext) { m_context = context; m_symbolTable = symbolTable; m_functionContext = functionContext; }
public VirtualChannelBuilderVisitor(IParametersSymbolTable symbolTable) { m_symbolTable = symbolTable; }