public ExecuteAllState(SymbolClearState clearState, IInterpreterRepository repository, ISpatialRepository spatialRepository, IQueryReader queryReader, ISymbolVisitor symbolVisitor, IExecutionVisitor executionVisitor, IFuncVisitor funcVisitor, string name, QueryShowState queryShowState, ResultShowState resultShowState) { Repository = repository; SpatialRepository = spatialRepository; this.clearState = clearState; this.queryReader = queryReader; this.symbolVisitor = symbolVisitor; this.executionVisitor = executionVisitor; this.funcVisitor = funcVisitor; this.queryShowState = queryShowState; this.resultShowState = resultShowState; Name = name; }
public Context(IQueryReader queryReader, ISymbolVisitor symbolVisitor, IExecutionVisitor executionVisitor, IFuncVisitor funcVisitor, ISpatialRepository spatialRepository, IInterpreterRepository repository, ISettings settings, ILogger logger) { this.spatialRepository = spatialRepository; queryClearState = new QueryClearState() { Repository = repository, Name = "QueryClearState" }; queryAddState = new QueryAddState() { Repository = repository, Name = "QueryAddState" }; queryShowState = new QueryShowState(queryAddState) { Repository = repository, Name = "QueryShowState" }; queryAddState.ShowState = queryShowState; symbolShowState = new SymbolShowState(repository, "SymbolShowState"); symbolClearState = new SymbolClearState(repository, spatialRepository, symbolShowState, queryShowState, "SymbolClearState"); resultShowState = new ResultShowState(repository, queryShowState, "ResultShowState"); executeAllState = new ExecuteAllState(symbolClearState, repository, spatialRepository, queryReader, symbolVisitor, executionVisitor, funcVisitor, "ExecuteAllState", queryShowState, resultShowState); resultWriteState = new ResultWriteState(repository, "ResultWriteState", resultShowState); showSettingsState = new ShowSettingsState(settings, "ShowSettingsState"); showLicenceState = new ShowLicenceState(queryAddState, "ShowLicenceState"); performanceTestState = new PerformanceTestState(repository, spatialRepository, queryReader, symbolVisitor, executionVisitor, funcVisitor, logger, settings, "PerformanceTestState"); currentState = showLicenceState; currentState = currentState.Execute(""); }