public QuestionOutputModelQueryService( IDomainItemLocator domainItemLocator, ISymbolTable symbolTable) : base(domainItemLocator) { m_symbolTable = symbolTable; }
public QuestionnaireOutputModelQueryService( IDomainItemLocator domainItemLocator, IQuestionOutputModelQueryService questionQueryService) : base(domainItemLocator) { m_questionQueryService = questionQueryService; }
public VariableService( IDomainItemLocator domainItemLocator, ISymbolTable symbolTable) { m_domainItemLocator = domainItemLocator; m_symbolTable = symbolTable; }
public UnknownTypeValidator( IDomainItemLocator domainItemLocator, IVariableService variableService) { m_domainItemLocator = domainItemLocator; m_variableService = variableService; }
public QlsAstBuilder( IDomainItemLocator domainItemLocator, IQlsAstFactory qlsAstFactory) { m_domainItemLocator = domainItemLocator; m_qlsAstFactory = qlsAstFactory; }
public CalculationVisitor( IDomainItemLocator domainItemLocator, IVariableService variableService) { m_domainItemLocator = domainItemLocator; m_variableService = variableService; }
public ExtractVariableVisitor( IDomainItemLocator domainItemLocator, IVariableService variableService) { m_domainItemLocator = domainItemLocator; m_variableService = variableService; }
public BuildOutputVisitor( IDomainItemLocator domainItemLocator, IOutputItemFactory outputItemFactory) { m_domainItemLocator = domainItemLocator; m_outputItemFactory = outputItemFactory; }
public AstBuilder( IAstFactory astFactory, IDomainItemLocator domainItemLocator) { m_astFactory = astFactory; m_domainItemLocator = domainItemLocator; }
public UpdateValuesCommandHandler( IDomainItemLocator domainItemLocator, IVariableUpdater variableUpdater) { m_domainItemLocator = domainItemLocator; m_variableUpdater = variableUpdater; }
public CyclicDependencyValidator( IDomainItemLocator domainItemLocator, ICalculationService calculationService) { m_domainItemLocator = domainItemLocator; m_calculationService = calculationService; }
public BuildQlsAstVisitor( IQlsAstFactory astFactory, IDomainItemLocator domainItemLocator) { m_astFactory = astFactory; m_domainItemLocator = domainItemLocator; }
public static DomainId <T> To <T>( this DomainId <IAstNode> node, IDomainItemLocator domainItemLocator) where T : IAstNode { var domainItem = domainItemLocator.Get <T>(node.Id); return(new DomainId <T>(domainItem.Id)); }
public BooleanEvaluatorVisitor( IDomainItemLocator domainItemLocator, ICalculationVisitor calculationVisitor, ISymbolTable lookup) { m_domainItemLocator = domainItemLocator; m_calculationVisitor = calculationVisitor; m_lookup = lookup; }
public OutputItemFactory( IIdMaker ids, IDomainItemRegistry registry, IDomainItemLocator domainItemLocator) { m_ids = ids; m_registry = registry; m_domainItemLocator = domainItemLocator; }
public void Init() { var services = new ServiceCollection(); services.AddModule(new AntlrModule()); services.AddModule(new InfrastructureModule()); services.AddModule(new EntitiesModule()); m_serviceProvider = services.BuildServiceProvider(); m_domainItemLocator = m_serviceProvider.GetService <IDomainItemLocator>(); }
public VariableUpdater( ISymbolTable symbolTable, IQuestionnaireOutputCreator questionnaireOutputCreator, IDomainItemLocator domainItemLocator, ICalculationService calculationService) { m_symbolTable = symbolTable; m_questionnaireOutputCreator = questionnaireOutputCreator; m_domainItemLocator = domainItemLocator; m_calculationService = calculationService; }
public CalculationService( IDomainItemLocator domainItemLocator, ICalculationVisitor calculationVisitor, ISymbolTable symbolTable, IExtractVariableVisitor extractVariableVisitor) { m_domainItemLocator = domainItemLocator; m_calculationVisitor = calculationVisitor; m_symbolTable = symbolTable; m_extractVariableVisitor = extractVariableVisitor; }
public QuestionnaireQueryService( IQuestionnaireDefinitionLoader definitionLoader, IQuestionnaireAstCreator astCreator, IDomainItemLocator domainItemLocator, IQuestionnaireModelCreator modelCreator) { m_definitionLoader = definitionLoader; m_astCreator = astCreator; m_domainItemLocator = domainItemLocator; m_modelCreator = modelCreator; }
public void Init() { var services = new ServiceCollection(); services.AddModule(new AntlrModule()); services.AddModule(new InfrastructureModule()); services.AddModule(new EntitiesModule()); m_serviceProvider = services.BuildServiceProvider(); m_domainItemLocator = m_serviceProvider.GetService <IDomainItemLocator>(); m_outputCreator = m_serviceProvider.GetService <IQuestionnaireOutputCreator>(); m_variableUpdater = m_serviceProvider.GetService <IVariableUpdater>(); }
public CreateDefinitionFromTextCommandHandler( IQuestionnaireAstCreator astCreator, IDomainItemLocator domainItemLocator, IQuestionnaireOutputCreator outputCreator, IQuestionnaireTypeChecker questionnaireTypeChecker ) { m_astCreator = astCreator; m_domainItemLocator = domainItemLocator; m_outputCreator = outputCreator; m_questionnaireTypeChecker = questionnaireTypeChecker; }
public BuildOutputVisitor( IDomainItemLocator domainItemLocator, IOutputItemFactory outputItemFactory, ISymbolTable lookup, IBooleanEvaluatorVisitor booleanEvaluator) { m_domainItemLocator = domainItemLocator; m_outputItemFactory = outputItemFactory; m_lookup = lookup; m_booleanEvaluator = booleanEvaluator; m_questionsCurrentlyVisible.Push(true); }
public CreateStyleSheetFromTextCommandHandler( IStyleSheetCreator styleSheetAstCreator, IDomainItemLocator domainItemLocator, IStyleSheetTypeChecker styleSheetTypeChecker, IStyledQuestionnaireOutputCreator outputCreator ) { m_styleSheetAstCreator = styleSheetAstCreator; m_domainItemLocator = domainItemLocator; m_styleSheetTypeChecker = styleSheetTypeChecker; m_outputCreator = outputCreator; }
public QuestionStyleVisitor( IDomainItemLocator domainItemLocator, IStyledOutputItemFactory styledOutputItemFactory, IStyleFactory styleFactory) { m_domainItemLocator = domainItemLocator; m_styledOutputItemFactory = styledOutputItemFactory; m_styleFactory = styleFactory; StyleStacks.Add(typeof(IntegerQuestionType), new StyleStack(m_styleFactory.CreateIntegerBaseStyle())); StyleStacks.Add(typeof(DecimalQuestionType), new StyleStack(m_styleFactory.CreateDecimalBaseStyle())); StyleStacks.Add(typeof(DateQuestionType), new StyleStack(m_styleFactory.CreateDateBaseStyle())); StyleStacks.Add(typeof(StringQuestionType), new StyleStack(m_styleFactory.CreateStringBaseStyle())); StyleStacks.Add(typeof(BooleanQuestionType), new StyleStack(m_styleFactory.CreateBoolBaseStyle())); }
private static void InitializeModules() { var ioc = new DependencyInjectionContainer(); QlServiceCollection = ioc.Create(); QlServiceCollection.AddModule(new InfrastructureModule()); QlServiceCollection.AddModule(new AntlrModule()); QlServiceCollection.AddModule(new OrchestrationModule()); m_serviceProvider = QlServiceCollection.BuildServiceProvider(true); m_domainItemLocator = m_serviceProvider.GetService <IDomainItemLocator>(); m_qprint = m_serviceProvider.GetService <IQuestionnairePrinter>(); m_qprint.Writer = Console.Out; m_bprint = m_serviceProvider.GetService <IBooleanLogicPrinter>(); m_bprint.Writer = Console.Out; }
public UnknownQuestionValidator( IDomainItemLocator domainItemLocator) { m_domainItemLocator = domainItemLocator; }
public DuplicateVariableValidator( IDomainItemLocator domainItemLocator) { m_domainItemLocator = domainItemLocator; }
public QuestionnaireDefintionQueryService( IDomainItemLocator domainItemLocator) : base(domainItemLocator) { }
public CorrectWidgetValidator( IDomainItemLocator domainItemLocator) { m_domainItemLocator = domainItemLocator; }
public T ToDomainItem(IDomainItemLocator domainItemLocator) { return(domainItemLocator.Get <T>(Id)); }