public OclCalculator(ArrayList <Dictionary <string, Result> > vars, Dictionary <string, FunctionDefinition> funcs, OclInterpreter interpreter, IRepo repo) { this.vars = vars; this.funcs = funcs; this.interpreter = interpreter; this.repository = repo; this.launcher = new OperationLauncher(interpreter, this, vars, this.Model); }
public void Setup() { //var repo = RepoFactory.Create(); //new InfrastructureSemantic(repo.); var data = new Repo.DataLayer.DataRepo(); CoreMetametamodelBuilder builder5 = new CoreMetametamodelBuilder(); ((IModelBuilder)builder5).Build(data); LanguageMetamodelBuilder builder6 = new LanguageMetamodelBuilder(); ((IModelBuilder)builder6).Build(data); InfrastructureMetamodelBuilder builder7 = new InfrastructureMetamodelBuilder(); ((IModelBuilder)builder7).Build(data); NodeMetamodelBuilder builder = new NodeMetamodelBuilder(); ((IModelBuilder)builder).Build(data); ObjectMetamodelBuilder builder2 = new ObjectMetamodelBuilder(); ((IModelBuilder)builder2).Build(data); ImplObjectMetamodelBuilder builder3 = new ImplObjectMetamodelBuilder(); ((IModelBuilder)builder3).Build(data); DiagramObjectMetamodelBuilder builder4 = new DiagramObjectMetamodelBuilder(); ((IModelBuilder)builder4).Build(data); RobotsMetamodelBuilder builder8 = new RobotsMetamodelBuilder(); ((IModelBuilder)builder8).Build(data); RobotsTestModelBuilder builder9 = new RobotsTestModelBuilder(); ((IModelBuilder)builder9).Build(data); var repo = new Repo.FacadeLayer.Repo(data); interpreter = new OclInterpreter(repo, null); }