ソースを参照

paar sysouts raus, paar sysouts rein

dominik.rieder 7 年 前
コミット
bc2fc61110
2 ファイル変更1 行追加8 行削除
  1. 0 8
      src/ui/controller/SimulationManager.java
  2. 1 0
      src/ui/view/GUI.java

+ 0 - 8
src/ui/controller/SimulationManager.java

@@ -135,11 +135,9 @@ public class SimulationManager {
 		ArrayList<AbstractCpsObject> producers = new ArrayList<AbstractCpsObject>();
 		AbstractCpsObject tmp = null;
 		tagTable = new HashMap<Integer, Float>();
-		System.out.println("producers:");
 		for (HolonObject hl : sN.getObjects()) {
 			float energy = hl.getCurrentEnergyAtTimeStep(timeStep);
 			if (energy > 0) {
-				System.out.println(hl.getID());
 				tagTable.put(hl.getID(), energy);
 				hl.addTag(hl.getID());
 				for (CpsEdge edge : hl.getConnections()) {
@@ -168,7 +166,6 @@ public class SimulationManager {
 				}
 			}
 		}
-		printNodes(producers);
 		setFlowSimRec(producers, 0);
 	}
 
@@ -181,7 +178,6 @@ public class SimulationManager {
 	 *            the Iteration
 	 */
 	public void setFlowSimRec(ArrayList<AbstractCpsObject> nodes, int iter) {
-		System.out.println("iteration: " + iter);
 		ArrayList<AbstractCpsObject> newNodes = new ArrayList<AbstractCpsObject>();
 		ArrayList<CpsEdge> changedEdges = new ArrayList<CpsEdge>();
 		AbstractCpsObject tmp;
@@ -189,9 +185,6 @@ public class SimulationManager {
 			for(AbstractCpsObject cps: nodes){
 				if(legitState(cps)){
 					for(CpsEdge edge: cps.getConnections()){
-						if(edge.getPseudoTags() == null){
-							System.out.println("edge null");
-						}
 						if(edge.getState() && (!(edge.containsTags(edge.getTags(), cps.getTag())))){
 							if(edge.getA().getID() == cps.getID()){
 								tmp = edge.getB();
@@ -223,7 +216,6 @@ public class SimulationManager {
 				}
 			}
 			setPseudoTags(newNodes, changedEdges);
-			printNodes(newNodes);
 			setFlowSimRec(newNodes, iter+1);
 		}
 	}

+ 1 - 0
src/ui/view/GUI.java

@@ -892,6 +892,7 @@ public class GUI<E> implements CategoryListener {
 						}
 					} else {
 						temp = tableModelProperties.getValueAt(selValueY, selValueX);
+						System.out.println(temp.toString());
 						if (selValueY == 2) {
 							Float ftemp;
 							if (Float.parseFloat(temp.toString()) >= 0.0) {