Adapting to plot v2: Abstraction of graphs & new implementations: JZY3D, JavaFX, JFreeChart
This commit is contained in:
1 parent
39026e2d6b
commit
ef3369deaa
2 files changed
+8
-3
No files matched your search
@@ -231,9 +231,13 @@ public class Acquisition {
|
||||
|
||||
logger.fine("Map Model to internal logic");
|
||||
|
||||
if(smodel.getScan().getManipulation()!= null && smodel.getScan().getManipulation().size()>0){
|
||||
if(smodel.getScan().getManipulation()!= null && smodel.getScan().getManipulation().size()>0){
|
||||
// Setup optimized with manipulations
|
||||
EventBus b = new AsyncEventBus(Executors.newCachedThreadPool());
|
||||
//EventBus b = new AsyncEventBus(Executors.newCachedThreadPool());
|
||||
EventBus b = new AsyncEventBus(Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()));
|
||||
|
||||
//EventBus b = new AsyncEventBus(Executors.newSingleThreadExecutor());
|
||||
|
||||
// Map scan to base model
|
||||
// After this call actionLoop and collector will be initialized
|
||||
Collector collector = new Collector(b);
|
||||
|
||||
@@ -71,7 +71,8 @@ public class Manipulator {
|
||||
}
|
||||
// Need to update the metadata of the message
|
||||
dm.setMetadata(this.metadata);
|
||||
}
|
||||
}
|
||||
bus.post(message);
|
||||
//System.out.println(Thread.currentThread());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user