mirror of
https://git.psi.ch/fda/ch.psi.fda.xscan.git
synced 2026-05-11 14:15:34 +02:00
Adapting to plot v2: Abstraction of graphs & new implementations: JZY3D, JavaFX, JFreeChart
This commit is contained in:
@@ -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