From 2895f5043e570088a860e68d6012a5ce355e10f6 Mon Sep 17 00:00:00 2001 From: Chrissi <christopher@hbsc-werner.de> Date: Fri, 21 Jun 2019 12:58:57 +0200 Subject: [PATCH] Remove println for output --- .../ttc2019/worksync/BddSyncIntegration.scala | 3 --- .../worksync/BddSyncIntegrationWithoutOrder.scala | 1 - .../worksync/BdtAndBddSyncIntegration.scala | 14 +------------- .../ttc2019/worksync/BdtSyncIntegration.scala | 3 --- .../worksync/BdtSyncIntegrationWithoutOrder.scala | 3 --- 5 files changed, 1 insertion(+), 23 deletions(-) diff --git a/solutions/RSync/src/main/scala/ttc2019/worksync/BddSyncIntegration.scala b/solutions/RSync/src/main/scala/ttc2019/worksync/BddSyncIntegration.scala index 219b859..c53602a 100644 --- a/solutions/RSync/src/main/scala/ttc2019/worksync/BddSyncIntegration.scala +++ b/solutions/RSync/src/main/scala/ttc2019/worksync/BddSyncIntegration.scala @@ -67,7 +67,6 @@ object BddSyncIntegration extends IIntegrationCompartment { //find next inputport for subtree truthTable.getPorts().filter(p => p.isInstanceOf[sync.tt.InputPort] && !finishPorts.contains(p)).foreach(ttip => { val newCells = ttip.getCells().filter(c => rows.contains(c.getOwner())) - //println("Looking Port: " + ttip.getName() + " S: " + newCells.size) if (newCells.size >= max) { var setTrue: Set[Set[String]] = Set.empty var setFalse: Set[Set[String]] = Set.empty @@ -95,11 +94,9 @@ object BddSyncIntegration extends IIntegrationCompartment { portTT = ttip max = newCells.size } - //println("############################## " + newCells.size + " || T: " + p1 + " F: " + p2) } }) - //println("Used Port: " + portTT) var portBDD: sync.bddg.InputPort = null val oppo: PlayerSync = +portTT getRelatedClassFromName ("InputPort") if (oppo != null) { diff --git a/solutions/RSync/src/main/scala/ttc2019/worksync/BddSyncIntegrationWithoutOrder.scala b/solutions/RSync/src/main/scala/ttc2019/worksync/BddSyncIntegrationWithoutOrder.scala index 5888202..39a916e 100644 --- a/solutions/RSync/src/main/scala/ttc2019/worksync/BddSyncIntegrationWithoutOrder.scala +++ b/solutions/RSync/src/main/scala/ttc2019/worksync/BddSyncIntegrationWithoutOrder.scala @@ -85,7 +85,6 @@ object BddSyncIntegrationWithoutOrder extends IIntegrationCompartment { }) } - //println("Used Port: " + portTT) var portBDD: sync.bddg.InputPort = null val oppo: PlayerSync = +portTT getRelatedClassFromName ("InputPort") if (oppo != null) { diff --git a/solutions/RSync/src/main/scala/ttc2019/worksync/BdtAndBddSyncIntegration.scala b/solutions/RSync/src/main/scala/ttc2019/worksync/BdtAndBddSyncIntegration.scala index 9e58e63..692771e 100644 --- a/solutions/RSync/src/main/scala/ttc2019/worksync/BdtAndBddSyncIntegration.scala +++ b/solutions/RSync/src/main/scala/ttc2019/worksync/BdtAndBddSyncIntegration.scala @@ -45,7 +45,6 @@ object BdtAndBddSyncIntegration extends IIntegrationCompartment { } def finalEditFunction(): Unit = { - println("FINISH FUNCTION") var ttNode: sync.tt.TruthTable = null createdBdds.foreach(bddNode => { @@ -60,8 +59,7 @@ object BdtAndBddSyncIntegration extends IIntegrationCompartment { connectTargetElementWithSourceElementes(tree, rows.asInstanceOf[Set[PlayerSync]]) }) - printManager() - println("END FINISH FUNCTION") + //printManager() } def createOutputLookSubtree(bdd: sync.bddg.BDD, truthTable: sync.tt.TruthTable, rows: Set[sync.tt.Row], finishPorts: Set[sync.tt.Port]): sync.bddg.Tree = { @@ -74,7 +72,6 @@ object BdtAndBddSyncIntegration extends IIntegrationCompartment { //find next inputport for subtree truthTable.getPorts().filter(p => p.isInstanceOf[sync.tt.InputPort] && !finishPorts.contains(p)).foreach(ttip => { val newCells = ttip.getCells().filter(c => rows.contains(c.getOwner())) - println("Looking Port: " + ttip.getName() + " S: " + newCells.size) if (newCells.size >= max) { var setTrue: Set[Set[String]] = Set.empty var setFalse: Set[Set[String]] = Set.empty @@ -102,11 +99,9 @@ object BdtAndBddSyncIntegration extends IIntegrationCompartment { portTT = ttip max = newCells.size } - println("############################## " + newCells.size + " || T: " + p1 + " F: " + p2) } }) - println("Used Port: " + portTT) var portBDD: sync.bddg.InputPort = null val oppo: PlayerSync = +portTT getRelatedClassFromName ("InputPort") if (oppo != null) { @@ -120,7 +115,6 @@ object BdtAndBddSyncIntegration extends IIntegrationCompartment { val rowsOne = cellis.filter(_.getValue()).map(_.getOwner()) val rowsZero = cellis.filter(!_.getValue()).map(_.getOwner()) - println("Rows (1) " + rowsOne.size + " (2) " + rowsZero.size) var treeZero: sync.bddg.Tree = null var treeOne: sync.bddg.Tree = null @@ -193,8 +187,6 @@ object BdtAndBddSyncIntegration extends IIntegrationCompartment { class OutputPortConstruct() extends IIntegrator { def integrate(comp: PlayerSync): PlayerSync = { - println("OutputPort Integration " + comp); - //Step 1: Get construction values val name: String = +this getName () @@ -214,8 +206,6 @@ object BdtAndBddSyncIntegration extends IIntegrationCompartment { class InputPortConstruct() extends IIntegrator { def integrate(comp: PlayerSync): PlayerSync = { - println("InputPort Integration " + comp); - //Step 1: Get construction values val name: String = +this getName () @@ -235,8 +225,6 @@ object BdtAndBddSyncIntegration extends IIntegrationCompartment { class TruthTableConstruct() extends IIntegrator { def integrate(comp: PlayerSync): PlayerSync = { - println("TruthTable Integration " + comp); - //Step 1: Get construction values val name: String = +this getName () val ports: Set[sync.tt.Port] = +this getPorts () diff --git a/solutions/RSync/src/main/scala/ttc2019/worksync/BdtSyncIntegration.scala b/solutions/RSync/src/main/scala/ttc2019/worksync/BdtSyncIntegration.scala index 706de01..058d6dd 100644 --- a/solutions/RSync/src/main/scala/ttc2019/worksync/BdtSyncIntegration.scala +++ b/solutions/RSync/src/main/scala/ttc2019/worksync/BdtSyncIntegration.scala @@ -58,7 +58,6 @@ object BdtSyncIntegration extends IIntegrationCompartment { truthTable.getPorts().filter(p => p.isInstanceOf[sync.tt.InputPort] && !finishPorts.contains(p)).foreach(ttip => { val newCells = ttip.getCells().filter(c => rows.contains(c.getOwner())) - //println("Looking Port: " + ttip.getName() + " S: " + newCells.size) if (newCells.size >= max) { var setTrue: Set[Set[String]] = Set.empty var setFalse: Set[Set[String]] = Set.empty @@ -86,11 +85,9 @@ object BdtSyncIntegration extends IIntegrationCompartment { portTT = ttip max = newCells.size } - //println("############################## " + newCells.size + " || T: " + p1 + " F: " + p2) } }) - //println("Used Port: " + portTT) var portBDD: sync.bdd.InputPort = null val oppo: PlayerSync = +portTT getRelatedClassFromName ("InputPort") if (oppo != null) { diff --git a/solutions/RSync/src/main/scala/ttc2019/worksync/BdtSyncIntegrationWithoutOrder.scala b/solutions/RSync/src/main/scala/ttc2019/worksync/BdtSyncIntegrationWithoutOrder.scala index 483194a..a9558dd 100644 --- a/solutions/RSync/src/main/scala/ttc2019/worksync/BdtSyncIntegrationWithoutOrder.scala +++ b/solutions/RSync/src/main/scala/ttc2019/worksync/BdtSyncIntegrationWithoutOrder.scala @@ -80,12 +80,10 @@ object BdtSyncIntegrationWithoutOrder extends IIntegrationCompartment { numberFalse = setFalse.size cellis = newCells portTT = ttip - println("in row") break }) } - println("Used Port: " + portTT) var portBDD: sync.bdd.InputPort = null val oppo: PlayerSync = +portTT getRelatedClassFromName ("InputPort") if (oppo != null) { @@ -98,7 +96,6 @@ object BdtSyncIntegrationWithoutOrder extends IIntegrationCompartment { val rowsOne = cellis.filter(_.getValue()).map(_.getOwner()) val rowsZero = cellis.filter(!_.getValue()).map(_.getOwner()) - //println("Rows (1) " + rowsOne.size + " (2) " + rowsZero.size) var treeZero: sync.bdd.Tree = null var treeOne: sync.bdd.Tree = null -- GitLab