Examples of addForkedJob()


Examples of jmt.engine.QueueNet.GlobalJobInfoList.addForkedJob()

          for (int n = 0; n < jobsPerLink; n++) {
            ForkJob newJob = new ForkJob(numOut, job, this);
            // Sends new job to all following stations
            send(newJob, 0.0, outNode);
            // Adds job to system jobinfolist
            global.addForkedJob(newJob);
          }
        }
        // Increment job counter
        jobNum++;
View Full Code Here

Examples of jmt.engine.QueueNet.GlobalJobInfoList.addForkedJob()

          // If needed is zero, all pieces has been retrived and job can be
          // fowarded
          if (needed == 0) {
            jobs.remove(fJob.getForkedJob());
            // Adds original job, otherwise we will have one less job in the network
            global.addForkedJob(fJob.getForkedJob());
            // Sends job forward
            sendForward(fJob.getForkedJob(), 0.0);
            // Notify fork node (to support blocking)
            send(NetEvent.EVENT_JOIN, fJob.getForkedJob(), 0.0, fJob.getReferenceFork().getSectionID(), fJob.getReferenceFork()
                .getOwnerNode());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.