Skip to content

Commit

Permalink
Float.toString removed :-)
Browse files Browse the repository at this point in the history
Caused state space explosion.
  • Loading branch information
alf committed Aug 31, 2012
1 parent 13ec3e8 commit 44f0656
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ jpf-core.classpath+=;${jdeeco-dist}/demo.jar;${jdeeco-dist}/jdeeco.jar
jpf-core.sourcepath=${jdeeco-src};${jdeeco-src-demo}

report.console.property_violation=error,trace

#listener=gov.nasa.jpf.listener.SearchMonitor,gov.nasa.jpf.listener.CGLocations

# Not to schedule in atomic blocks
cg.threads.break_yield=false
# approx 2G
vm.max_transition_length = 2000000000

2 changes: 1 addition & 1 deletion demo/cz/cuni/mff/d3s/deeco/demo/cloud/NodeA.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ public static ComponentKnowledge getInitialKnowledge() {
@DEECoPeriodicScheduling(6000)
public static void process(@DEECoOut("loadRatio") OutWrapper<Float> loadRatio) {
loadRatio.item = new Random().nextFloat();
System.out.println("Node A new load ratio: " + loadRatio.item);
System.out.println("Node A new load ratio: " + Math.round(loadRatio.item * 100) + "%");
}
}
4 changes: 3 additions & 1 deletion demo/cz/cuni/mff/d3s/deeco/demo/cloud/NodeB.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public static ComponentKnowledge getInitialKnowledge() {
@DEECoPeriodicScheduling(6000)
public static void process(@DEECoOut("loadRatio") OutWrapper<Float> loadRatio) {
loadRatio.item = new Random().nextFloat();
System.out.println("Node B new load ratio: " + loadRatio.item);

System.out.println("Node B new load ratio: " + Math.round(loadRatio.item * 100) + "%");
}

}

0 comments on commit 44f0656

Please sign in to comment.