public void Initialize() { strategyMgr = new StrategyManager(); grantTrees = new GeneratedGrantTrees(); Settings settings = new Settings(); searchNodes = new SearchNodes(strategyMgr, grantTrees, treeOperation); treeOperation = new TreeOperation(strategyMgr, grantTrees); strategyMgr.setSpecifiedTree(settings.getPossibleTrees()[0].className); strategyMgr.setSpecifiedEventStrategy(settings.getPossibleEventManager()[0].className); strategyMgr.setSpecifiedFilter(Settings.getPossibleFilters()[0].className); strategyMgr.setSpecifiedDisplayStrategy(settings.getPosibleDisplayStrategies()[0].className); strategyMgr.setSpecifiedGeneralTemplateUi(settings.getPossibleUiTemplateStrategies()[0].className); strategyMgr.getSpecifiedGeneralTemplateUi().setGeneratedGrantTrees(grantTrees); strategyMgr.getSpecifiedGeneralTemplateUi().setTreeOperation(treeOperation); List <GRANTManager.Strategy> posibleOS = settings.getPossibleOperationSystems(); strategyMgr.setSpecifiedOperationSystem(settings.getPossibleOperationSystems()[0].className); strategyMgr.getSpecifiedFilter().setGeneratedGrantTrees(grantTrees); strategyMgr.getSpecifiedFilter().setTreeOperation(treeOperation); guiFuctions = new GuiFunctions(strategyMgr, grantTrees, treeOperation); pathToTemplate = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "Template"); pathToTemplate = System.IO.Path.Combine(pathToTemplate, "TemplateUi.xml"); // guiFuctions.deleteGrantTrees(); }
public void Initialize() { strategyMgr = new StrategyManager(); grantTrees = new GeneratedGrantTrees(); Settings settings = new Settings(); treeOperation = new TreeOperation(strategyMgr, grantTrees); List <GRANTManager.Strategy> posibleOS = settings.getPossibleOperationSystems(); List <Strategy> str = settings.getPossibleTrees(); strategyMgr.setSpecifiedTree(settings.getPossibleTrees()[0].className); strategyMgr.setSpecifiedEventStrategy(settings.getPossibleEventManager()[0].className); strategyMgr.setSpecifiedFilter(Settings.getPossibleFilters()[0].className); strategyMgr.setSpecifiedBrailleDisplay(settings.getPossibleBrailleDisplays()[0].className); strategyMgr.getSpecifiedBrailleDisplay().setStrategyMgr(strategyMgr); strategyMgr.getSpecifiedBrailleDisplay().setTreeOperation(treeOperation); strategyMgr.getSpecifiedBrailleDisplay().setGeneratedGrantTrees(grantTrees); strategyMgr.setSpecifiedDisplayStrategy(settings.getPosibleDisplayStrategies()[0].className); strategyMgr.setSpecifiedGeneralTemplateUi(settings.getPossibleUiTemplateStrategies()[0].className); strategyMgr.getSpecifiedGeneralTemplateUi().setGeneratedGrantTrees(grantTrees); strategyMgr.getSpecifiedGeneralTemplateUi().setTreeOperation(treeOperation); strategyMgr.getSpecifiedFilter().setGeneratedGrantTrees(grantTrees); strategyMgr.setSpecifiedOperationSystem(settings.getPossibleOperationSystems()[0].className); strategyMgr.setSpecifiedExternalScreenreader(settings.getPossibleExternalScreenreaders()[0].className); strategyMgr.setSpecifiedBrailleConverter(settings.getPossibleBrailleConverter()[0].className); strategyMgr.getSpecifiedFilter().setTreeOperation(treeOperation); guiFuctions = new GuiFunctions(strategyMgr, grantTrees, treeOperation); treePath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "SavedTrees", "calc.grant"); }
public void Initialize() { strategyMgr = new StrategyManager(); grantTrees = new GeneratedGrantTrees(); Settings settings = new Settings(); treeOperation = new TreeOperation(strategyMgr, grantTrees); List <GRANTManager.Strategy> posibleOS = settings.getPossibleOperationSystems(); List <Strategy> str = settings.getPossibleTrees(); strategyMgr.setSpecifiedTree(settings.getPossibleTrees()[0].className); strategyMgr.setSpecifiedEventStrategy(settings.getPossibleEventManager()[0].className); strategyMgr.setSpecifiedFilter(Settings.getPossibleFilters()[0].className); // strategyMgr.setSpecifiedDisplayStrategy(settings.getPosibleDisplayStrategies()[0].className); /* strategyMgr.setSpecifiedGeneralTemplateUi(settings.getPossibleUiTemplateStrategies()[0].className); * strategyMgr.getSpecifiedGeneralTemplateUi().setGeneratedGrantTrees(grantTrees); * strategyMgr.getSpecifiedGeneralTemplateUi().setTreeOperation(treeOperation);*/ strategyMgr.getSpecifiedFilter().setGeneratedGrantTrees(grantTrees); strategyMgr.setSpecifiedOperationSystem(settings.getPossibleOperationSystems()[0].className); /*strategyMgr.setSpecifiedBrailleDisplay(settings.getPossibleBrailleDisplays()[0].className); * strategyMgr.getSpecifiedBrailleDisplay().setGeneratedGrantTrees(grantTrees); * strategyMgr.getSpecifiedBrailleDisplay().setStrategyMgr(strategyMgr); * strategyMgr.getSpecifiedBrailleDisplay().setTreeOperation(treeOperation);*/ strategyMgr.getSpecifiedFilter().setTreeOperation(treeOperation); guiFuctions = new GuiFunctions(strategyMgr, grantTrees, treeOperation); //Anwendung starten HelpFunctions hf = new HelpFunctions(strategyMgr, grantTrees); hf.startApp(applicationName, applicationPathName); }
public void Initialize() { strategyMgr = new StrategyManager(); grantTrees = new GeneratedGrantTrees(); Settings settings = new Settings(); treeOperation = new TreeOperation(strategyMgr, grantTrees); List <GRANTManager.Strategy> posibleOS = settings.getPossibleOperationSystems(); strategyMgr.setSpecifiedTree(settings.getPossibleTrees()[0].className); strategyMgr.setSpecifiedEventStrategy(settings.getPossibleEventManager()[0].className); strategyMgr.setSpecifiedFilter(Settings.getPossibleFilters()[0].className); strategyMgr.setSpecifiedDisplayStrategy(settings.getPosibleDisplayStrategies()[0].className); strategyMgr.setSpecifiedGeneralTemplateUi(settings.getPossibleUiTemplateStrategies()[0].className); strategyMgr.getSpecifiedGeneralTemplateUi().setGeneratedGrantTrees(grantTrees); strategyMgr.getSpecifiedGeneralTemplateUi().setTreeOperation(treeOperation); strategyMgr.getSpecifiedFilter().setGeneratedGrantTrees(grantTrees); strategyMgr.setSpecifiedOperationSystem(settings.getPossibleOperationSystems()[0].className); strategyMgr.getSpecifiedFilter().setTreeOperation(treeOperation); guiFuctions = new GuiFunctions(strategyMgr, grantTrees, treeOperation); String projectPath; projectPath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "SavedTrees"); treePathUia2 = System.IO.Path.Combine(projectPath, "filteredTree_Rechner.grant"); }
public GUIInspector() { InitializeComponent(); settings = new Settings(); strategyMgr = new StrategyManager(); grantTrees = new GeneratedGrantTrees(); treeOperations = new TreeOperation(strategyMgr, grantTrees); // Setzen des Eventmanager List <Strategy> possibleEventManager = settings.getPossibleEventManager(); strategyMgr.setSpecifiedEventStrategy(possibleEventManager[0].className); List <Strategy> possibleOperationSystems = settings.getPossibleOperationSystems(); String cUserOperationSystemName = possibleOperationSystems[0].userName; // muss dynamisch ermittelt werden strategyMgr.setSpecifiedOperationSystem(Settings.strategyUserNameToClassName(cUserOperationSystemName)); IOperationSystemStrategy operationSystemStrategy = strategyMgr.getSpecifiedOperationSystem(); List <Strategy> possibleTrees = settings.getPossibleTrees(); strategyMgr.setSpecifiedTree(possibleTrees[0].className); ITreeStrategy <OSMElements.OSMElement> treeStrategy = strategyMgr.getSpecifiedTree(); List <Strategy> possibleFilter = Settings.getPossibleFilters(); String cUserFilterName = possibleFilter[0].userName; // der Filter muss dynamisch ermittelt werden strategyMgr.setSpecifiedFilter(Settings.strategyUserNameToClassName(cUserFilterName)); strategyMgr.getSpecifiedFilter().setGeneratedGrantTrees(grantTrees); strategyMgr.getSpecifiedFilter().setTreeOperation(treeOperations); IFilterStrategy filterStrategy = strategyMgr.getSpecifiedFilter(); strategyMgr.setSpecifiedGeneralTemplateUi(settings.getPossibleUiTemplateStrategies()[0].className); strategyMgr.getSpecifiedGeneralTemplateUi().setGeneratedGrantTrees(grantTrees); strategyMgr.getSpecifiedGeneralTemplateUi().setTreeOperation(treeOperations); strategyMgr.setSpecifiedBrailleDisplay(settings.getPossibleBrailleDisplays()[0].className); // muss dynamisch ermittelt werden #region setzen der neuen (Juni 2017) Event Interfaces strategyMgr.setSpecifiedEventAction(settings.getPossibleEventAction()[0].className); strategyMgr.getSpecifiedEventAction().setGrantTrees(grantTrees); strategyMgr.getSpecifiedEventAction().setTreeOperation(treeOperations); strategyMgr.setSpecifiedEventManager(settings.getPossibleEventManager2()[0].className); strategyMgr.setSpecifiedEventProcessor(settings.getPossibleEventProcessor()[0].className); strategyMgr.getSpecifiedEventProcessor().setGrantTrees(grantTrees); strategyMgr.getSpecifiedEventProcessor().setTreeOperations(treeOperations); #endregion strategyMgr.setSpecifiedExternalScreenreader(settings.getPossibleExternalScreenreaders()[0].className); strategyMgr.setSpecifiedBrailleConverter(settings.getPossibleBrailleConverter()[0].className); filteredTreeOutput.SelectedItemChanged += new RoutedPropertyChangedEventHandler <object>(filteredTreeOutput_SelectedItemChanged); guiFunctions = new GuiFunctions(strategyMgr, grantTrees, treeOperations); root = new TreeViewItem(); NodeButton.IsEnabled = false; SaveButton.IsEnabled = false; filteredPropRoot = new GuiFunctions.MyViewModel(); }
public TreeOperation(StrategyManager strategyMgr, GeneratedGrantTrees grantTrees) { this.strategyMgr = strategyMgr; this.grantTrees = grantTrees; generatedIds = new GeneratedIds(strategyMgr); searchNodes = new SearchNodes(strategyMgr, grantTrees, this); updateNodes = new UpdateNodes(strategyMgr, grantTrees, this); oSMNodeEventActionConnector = new OSMNodeEventActionConnector(grantTrees); osmTreeConnector = new OsmTreeConnector(grantTrees); }
public void Initialize() { strategyMgr = new StrategyManager(); grantTrees = new GeneratedGrantTrees(); Settings settings = new Settings(); // searchNodes = new SearchNodes(strategyMgr, grantTrees); treeOperation = new TreeOperation(strategyMgr, grantTrees); List <GRANTManager.Strategy> posibleOS = settings.getPossibleOperationSystems(); strategyMgr.setSpecifiedTree(settings.getPossibleTrees()[0].className); strategyMgr.setSpecifiedEventStrategy(settings.getPossibleEventManager()[0].className); strategyMgr.setSpecifiedFilter(Settings.getPossibleFilters()[0].className); strategyMgr.setSpecifiedDisplayStrategy(settings.getPosibleDisplayStrategies()[0].className); strategyMgr.setSpecifiedGeneralTemplateUi(settings.getPossibleUiTemplateStrategies()[0].className); strategyMgr.getSpecifiedGeneralTemplateUi().setGeneratedGrantTrees(grantTrees); strategyMgr.getSpecifiedGeneralTemplateUi().setTreeOperation(treeOperation); strategyMgr.getSpecifiedFilter().setGeneratedGrantTrees(grantTrees); strategyMgr.setSpecifiedOperationSystem(settings.getPossibleOperationSystems()[0].className); strategyMgr.getSpecifiedFilter().setTreeOperation(treeOperation); guiFuctions = new GuiFunctions(strategyMgr, grantTrees, treeOperation); }
public void Initialize() { #region initialisieren strategyMgr = new StrategyManager(); grantTrees = new GeneratedGrantTrees(); Settings settings = new Settings(); treeOperation = new TreeOperation(strategyMgr, grantTrees); List <GRANTManager.Strategy> posibleOS = settings.getPossibleOperationSystems(); List <Strategy> str = settings.getPossibleTrees(); strategyMgr.setSpecifiedTree(settings.getPossibleTrees()[0].className); strategyMgr.setSpecifiedEventStrategy(settings.getPossibleEventManager()[0].className); strategyMgr.setSpecifiedFilter(Settings.getPossibleFilters()[0].className); strategyMgr.setSpecifiedDisplayStrategy(settings.getPosibleDisplayStrategies()[0].className); /* strategyMgr.setSpecifiedGeneralTemplateUi(settings.getPossibleUiTemplateStrategies()[0].className); * strategyMgr.getSpecifiedGeneralTemplateUi().setGeneratedGrantTrees(grantTrees); * strategyMgr.getSpecifiedGeneralTemplateUi().setTreeOperation(treeOperation);*/ strategyMgr.getSpecifiedFilter().setGeneratedGrantTrees(grantTrees); strategyMgr.setSpecifiedOperationSystem(settings.getPossibleOperationSystems()[0].className); strategyMgr.setSpecifiedBrailleDisplay(settings.getPossibleBrailleDisplays()[0].className); strategyMgr.getSpecifiedBrailleDisplay().setGeneratedGrantTrees(grantTrees); strategyMgr.getSpecifiedBrailleDisplay().setStrategyMgr(strategyMgr); strategyMgr.getSpecifiedBrailleDisplay().setTreeOperation(treeOperation); strategyMgr.getSpecifiedFilter().setTreeOperation(treeOperation); guiFuctions = new GuiFunctions(strategyMgr, grantTrees, treeOperation); #endregion List <String> viewCategories = Settings.getPossibleTypesOfViews(); if (viewCategories == null) { Assert.Fail("Die ViewCategories sind in der Config nicht richtig angegeben!"); } VIEWCATEGORYSYMBOLVIEW = viewCategories[0]; VIEWCATEGORYLAYOUTVIEW = viewCategories[1]; pathToTemplate = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "Template"); pathToTemplate = System.IO.Path.Combine(pathToTemplate, "TemplateUiGroups.xml"); }
public TemplateNode(StrategyManager strategyMgr, GeneratedGrantTrees grantTrees, TreeOperation treeOperation) : base(strategyMgr, grantTrees, treeOperation) { }
public TemplateSubtree(StrategyManager strategyMgr, GeneratedGrantTrees grantTrees, TreeOperation treeOperation) : base(strategyMgr, grantTrees, treeOperation) { deviceWidth = strategyMgr.getSpecifiedDisplayStrategy().getActiveDevice().width; deviceHeight = strategyMgr.getSpecifiedDisplayStrategy().getActiveDevice().height; }
public SearchNodes(StrategyManager strategyMgr, GeneratedGrantTrees grantTrees, TreeOperation treeOperation) { this.strategyMgr = strategyMgr; this.grantTrees = grantTrees; this.treeOperation = treeOperation; }
public HelpFunctions(StrategyManager strategyMgr, GeneratedGrantTrees grantTrees) { this.strategyMgr = strategyMgr; this.grantTrees = grantTrees; }
public ATemplateUi(StrategyManager strategyMgr, GeneratedGrantTrees grantTrees, TreeOperation treeOperation) { this.strategyMgr = strategyMgr; this.grantTrees = grantTrees; this.treeOperation = treeOperation; }
public void setGeneratedGrantTrees(GeneratedGrantTrees grantTrees) { this.grantTrees = grantTrees; }
private void InitializeFilterComponent() { settings = new Settings(); strategyMgr = new StrategyManager(); grantTree = new GeneratedGrantTrees(); searchNodes = new SearchNodes(strategyMgr, grantTree, treeOperation); treeOperation = new TreeOperation(strategyMgr, grantTree); // Setzen des Eventmanager List <Strategy> possibleEventManager = settings.getPossibleEventManager(); //abfrage der klassen, debugnamen, des typ für eintragung in strategy.confog - datei für entsprechende erstellung der klasse hier im manager //IEvent_PRISMStrategy test = new StrategyEvent_PRISM.Event_PRISM(); //Type t = test.GetType(); strategyMgr.setSpecifiedEventStrategy(possibleEventManager[0].className); #region setzen der neuen (Juni 2017) Event Interfaces strategyMgr.setSpecifiedEventAction(settings.getPossibleEventAction()[0].className); strategyMgr.getSpecifiedEventAction().setGrantTrees(grantTree); strategyMgr.getSpecifiedEventAction().setTreeOperation(treeOperation); strategyMgr.setSpecifiedEventManager(settings.getPossibleEventManager2()[0].className); strategyMgr.setSpecifiedEventProcessor(settings.getPossibleEventProcessor()[0].className); strategyMgr.getSpecifiedEventProcessor().setGrantTrees(grantTree); strategyMgr.getSpecifiedEventProcessor().setTreeOperations(treeOperation); //todo: neu, nur in example, noch an application machen strategyMgr.getSpecifiedEventManager().setGrantTrees(grantTree); strategyMgr.getSpecifiedEventManager().setTreeOperations(treeOperation); //test strategyMgr.getSpecifiedEventManager().EventExample(); #endregion List <Strategy> possibleOperationSystems = settings.getPossibleOperationSystems(); String cUserOperationSystemName = possibleOperationSystems[0].userName; // muss dynamisch ermittelt werden strategyMgr.setSpecifiedOperationSystem(Settings.strategyUserNameToClassName(cUserOperationSystemName)); List <Strategy> possibleTrees = settings.getPossibleTrees(); strategyMgr.setSpecifiedTree(possibleTrees[0].className); List <Strategy> possibleFilter = Settings.getPossibleFilters(); String cUserFilterName = possibleFilter[0].userName; // der Filter muss dynamisch ermittelt werden strategyMgr.setSpecifiedFilter(Settings.strategyUserNameToClassName(cUserFilterName)); // strategyMgr.getSpecifiedFilter().setStrategyMgr(strategyMgr); strategyMgr.setSpecifiedBrailleDisplay(settings.getPossibleBrailleDisplays()[0].className); // muss dynamisch ermittelt werden //if (strategyMgr.getSpecifiedBrailleDisplay() == null) { Settings settings = new Settings(); strategyMgr.setSpecifiedBrailleDisplay(settings.getPossibleBrailleDisplays()[0].className); // muss dynamisch ermittelt werden strategyMgr.getSpecifiedBrailleDisplay().setStrategyMgr(strategyMgr); strategyMgr.getSpecifiedBrailleDisplay().setGeneratedGrantTrees(grantTree); strategyMgr.getSpecifiedBrailleDisplay().setTreeOperation(treeOperation); // strategyMgr.getSpecifiedBrailleDisplay().initializedSimulator(); //strategyMgr.getSpecifiedBrailleDisplay().setActiveAdapter(); //strategyMgr.getSpecifiedBrailleDisplay().generatedBrailleUi(); } // brailleDisplayStrategy = strategyMgr.getSpecifiedBrailleDisplay(); // brailleDisplayStrategy.setStrategyMgr(strategyMgr); strategyMgr.setSpecifiedDisplayStrategy(settings.getPosibleDisplayStrategies()[0].className); strategyMgr.setSpecifiedGeneralTemplateUi(settings.getPossibleUiTemplateStrategies()[0].className); strategyMgr.getSpecifiedGeneralTemplateUi().setGeneratedGrantTrees(grantTree); strategyMgr.getSpecifiedGeneralTemplateUi().setTreeOperation(treeOperation); strategyMgr.getSpecifiedFilter().setGeneratedGrantTrees(grantTree); strategyMgr.getSpecifiedFilter().setTreeOperation(treeOperation); exampleTree = new ExampleTree(strategyMgr, grantTree, treeOperation); exampleInspectGui = new InspectGui(strategyMgr); exampleBrailleDis = new ExampleBrailleDis(strategyMgr, grantTree, treeOperation); exampleDisplay = new ExampleDisplayStrategy(strategyMgr); guiFunctions = new GuiFunctions(strategyMgr, grantTree, treeOperation); }
public ExampleBrailleDis(StrategyManager mgr, GeneratedGrantTrees grantTrees, TreeOperation treeOperation) { strategyMgr = mgr; this.grantTrees = grantTrees; this.treeOperation = treeOperation; }
public OSMNodeEventActionConnector(GeneratedGrantTrees grantTrees) { this.grantTrees = grantTrees; }
public OsmTreeConnector(GeneratedGrantTrees grantTrees) { this.grantTrees = grantTrees; }
public Textview(StrategyManager strategyMgr, GeneratedGrantTrees grantTrees, TreeOperation treeOperation) { this.strategyMgr = strategyMgr; this.grantTrees = grantTrees; this.treeOperation = treeOperation; }
public void setGrantTrees(GeneratedGrantTrees trees) { grantTrees = trees; }
public ExampleTree(StrategyManager mgr, GeneratedGrantTrees tree, TreeOperation treeOperation) { strategyMgr = mgr; grantTree = tree; this.treeOperation = treeOperation; }
public TemplateGroupAutomatic(StrategyManager strategyMgr, GeneratedGrantTrees grantTrees, TreeOperation treeOperation) : base(strategyMgr, grantTrees, treeOperation) { }