From d59534c93e307029bbe508f63e8f8fe539fdd7f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Fri, 19 Apr 2024 21:07:37 +0200 Subject: [PATCH] Remove Debugging Printing --- .../product-state-editor/product-state-editor.component.ts | 1 - .../simple-state-editor/simple-state-editor.component.ts | 1 - .../productSystemGenerator/IsolatedProductStateGenerator.ts | 1 - .../IsolatedSymmetricTemplateStateGenerator.ts | 6 ------ .../productSystemGenerator/ProductSystemGenerator.ts | 1 - .../TemplateProductSystemGenerator.ts | 3 --- .../templates/productGamesystem/ProductTemplateSystem.ts | 4 ---- src/app/project/parser/characterParser/CharacterParser.ts | 5 ----- 8 files changed, 22 deletions(-) diff --git a/src/app/editor/gamesystem-editor/state-editor/product-state-editor/product-state-editor.component.ts b/src/app/editor/gamesystem-editor/state-editor/product-state-editor/product-state-editor.component.ts index ab1168d..1c7a7e8 100644 --- a/src/app/editor/gamesystem-editor/state-editor/product-state-editor/product-state-editor.component.ts +++ b/src/app/editor/gamesystem-editor/state-editor/product-state-editor/product-state-editor.component.ts @@ -50,7 +50,6 @@ export class ProductStateEditorComponent implements OnInit{ if(this.templateElement == undefined) { this.datasource.data = this.gamesystem!.states; } else if(this.gamesystem instanceof ProductTemplateSystem) { - console.log("Product Template System: ", this.gamesystem!.stateMap.get(this.templateElement)) this.datasource.data = this.gamesystem!.stateMap.get(this.templateElement)! } diff --git a/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.ts b/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.ts index df09ed5..b6e03e9 100644 --- a/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.ts +++ b/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.ts @@ -46,7 +46,6 @@ export class SimpleStateEditorComponent implements OnInit{ this.dataSource.filterPredicate = (data: SimpleState, filter: string) => { return data.stateLabel.toLowerCase().includes(filter); } - console.log(this.templateElement) } editState(state: SimpleState) { diff --git a/src/app/project/game-model/gamesystems/productSystemGenerator/IsolatedProductStateGenerator.ts b/src/app/project/game-model/gamesystems/productSystemGenerator/IsolatedProductStateGenerator.ts index db982a9..8f3933b 100644 --- a/src/app/project/game-model/gamesystems/productSystemGenerator/IsolatedProductStateGenerator.ts +++ b/src/app/project/game-model/gamesystems/productSystemGenerator/IsolatedProductStateGenerator.ts @@ -29,7 +29,6 @@ export class IsolatedProductStateGenerator extends ProductSystemGenerator { protected assignGeneratedStatesAndTransitions(generationResult: ProductGeneratorResult) { this.productGamesystem.states = this.productGamesystem.states.concat(generationResult.states); - console.log("Generation-Result: ", this.productGamesystem.states) } protected generateBinaryIsolatedProductStates(leftSystemData: ProductGenerationData, rightSystemData: ProductGenerationData): ProductGeneratorResult { diff --git a/src/app/project/game-model/gamesystems/productSystemGenerator/IsolatedSymmetricTemplateStateGenerator.ts b/src/app/project/game-model/gamesystems/productSystemGenerator/IsolatedSymmetricTemplateStateGenerator.ts index e9301c2..fccf00c 100644 --- a/src/app/project/game-model/gamesystems/productSystemGenerator/IsolatedSymmetricTemplateStateGenerator.ts +++ b/src/app/project/game-model/gamesystems/productSystemGenerator/IsolatedSymmetricTemplateStateGenerator.ts @@ -10,16 +10,11 @@ export class IsolatedSymmetricTemplateStateGenerator extends IsolatedTemplateSta protected generateBinaryIsolatedProductStates(leftSystemData: ProductGenerationData, rightSystemData: ProductGenerationData): ProductGeneratorResult { - console.log("Calling test") - - console.log(leftSystemData.states) - console.log(rightSystemData.states) const generatedProductStates: ProductState[] = [] leftSystemData.states.forEach(leftState => { if(leftState.outgoingTransitions.length == 0 && leftState.incomingTransitions.length == 0) { rightSystemData.states.forEach(rightState => { - console.log("LeftState is isolated") if(leftState.equals(rightState)) { if(rightState.outgoingTransitions.length == 0 && rightState.incomingTransitions.length == 0) { const leftConditions = this.getStateConditions(leftState, true); @@ -37,7 +32,6 @@ export class IsolatedSymmetricTemplateStateGenerator extends IsolatedTemplateSta if(!this.contradictCombinedConditions(leftConditions, rightConditions)) { const generatedState = this.generateBinaryProductState(leftState, rightState, generatedProductStates); - console.log(generatedProductStates) } } }) diff --git a/src/app/project/game-model/gamesystems/productSystemGenerator/ProductSystemGenerator.ts b/src/app/project/game-model/gamesystems/productSystemGenerator/ProductSystemGenerator.ts index f001f1e..e1902a0 100644 --- a/src/app/project/game-model/gamesystems/productSystemGenerator/ProductSystemGenerator.ts +++ b/src/app/project/game-model/gamesystems/productSystemGenerator/ProductSystemGenerator.ts @@ -108,7 +108,6 @@ export class ProductSystemGenerator { this.productGamesystem.states = generationResult.states; this.productGamesystem.transitions = generationResult.transitions; - console.log("General ", generationResult.transitions.length) } protected generateBinaryProductTransition(startingState: ProductState, endingState: ProductState, usedTransition: Transition, generatedTransitions: ProductTransition[], leftSystem: boolean) { diff --git a/src/app/project/game-model/gamesystems/productSystemGenerator/TemplateProductSystemGenerator.ts b/src/app/project/game-model/gamesystems/productSystemGenerator/TemplateProductSystemGenerator.ts index f8b0e74..1047a70 100644 --- a/src/app/project/game-model/gamesystems/productSystemGenerator/TemplateProductSystemGenerator.ts +++ b/src/app/project/game-model/gamesystems/productSystemGenerator/TemplateProductSystemGenerator.ts @@ -28,9 +28,6 @@ export class TemplateProductSystemGenerator extends ProductSystemGenerator { const productTemplateSystem = this.productGamesystem as ProductTemplateSystem productTemplateSystem.transitionMap.set(this.templateElement, generationResult.transitions) productTemplateSystem.stateMap.set(this.templateElement, generationResult.states) - - console.log("Symmetric", (this.productGamesystem as ProductTemplateSystem).symmetric) - console.log("Template: ", generationResult.transitions.length) } protected getTransitionConditions(transition: Transition, leftSystem: boolean) { diff --git a/src/app/project/game-model/templates/productGamesystem/ProductTemplateSystem.ts b/src/app/project/game-model/templates/productGamesystem/ProductTemplateSystem.ts index 1c8fa26..70caac1 100644 --- a/src/app/project/game-model/templates/productGamesystem/ProductTemplateSystem.ts +++ b/src/app/project/game-model/templates/productGamesystem/ProductTemplateSystem.ts @@ -36,10 +36,6 @@ export class ProductTemplateSystem extends ProductGamesystem implements Template if(this.generateIsolatedStates) { const isolatedTemplateStateGenerator = new IsolatedSymmetricTemplateStateGenerator(this, templateElement); isolatedTemplateStateGenerator.generateIsolatedProductStates(); - console.log(this.states) - console.log("Generate symmetric isolated states") - } else { - console.log("Do not generate symmetric isolated states") } } else { const productTemplateGenerator = new TemplateProductSystemGenerator(this, templateElement); diff --git a/src/app/project/parser/characterParser/CharacterParser.ts b/src/app/project/parser/characterParser/CharacterParser.ts index cefa511..6472cb1 100644 --- a/src/app/project/parser/characterParser/CharacterParser.ts +++ b/src/app/project/parser/characterParser/CharacterParser.ts @@ -70,8 +70,6 @@ export class CharacterParser { state.conditionMap.set(character, conditions) state.initialMap.set(character, stateReference.initialMap) - - console.log(state.initialMap) } for(let i=0; i