Blame view
src/mior/model/multi/OCLScheduler.java
592 Bytes
1b1e928cc initial import of... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
package mior.model.multi; import mcmas.core.MCMCommandQueue; import mcmas.core.MCMContext; import mcmas.core.MCMDevice; public class OCLScheduler { private MCMContext context; private MCMDevice[] devices; private MCMCommandQueue[] queues; public OCLScheduler(MCMContext context) { this.context = context; this.devices = context.getDevices(); this.queues = new MCMCommandQueue[devices.length]; for (int i = 0; i < queues.length; i++) { queues[i] = context.createCommandQueue(devices[i]); } } public void run(OCLTask task) { task.run(context, queues[0]); } } |