Package jmt.engine.QueueNet

Examples of jmt.engine.QueueNet.Job.born()


          //the queue of waiting jobs is empty

          if (message.getSource() == this.getOwnerNode() && message.getSourceSection() == this.getSectionID()) {

            //message sent by the terminal itself
            job.born();
            sendForward(job, 0.0);

            //log.write(NetLog.LEVEL_DEBUG, job, this, NetLog.JOB_OUT);

            coolStart = false;
View Full Code Here


            //send an ack
            send(NetEvent.EVENT_ACK, job, 0.0, message.getSourceSection(), message.getSource());

            //job goes on
            job.born();
            sendForward(job, 0.0);

            //log.write(NetLog.LEVEL_DEBUG, job, this, NetLog.JOB_OUT);

            coolStart = false;
View Full Code Here

        //otherwise, if there are no waiting jobs, sets coolstart=true

        if (waitingJobs.size() != 0) {
          job = waitingJobs.removeFirst();
          c = job.getJobClass().getId();
          job.born();

          //NEW
          //@author Stefano Omini, Bertoli Marco

          // in RandomSource the job is created (--> SystemEnteringTime is initialized)
View Full Code Here

          // Gets the class of the job
          c = job.getJobClass().getId();

          //no control is made on the number of jobs created
          //it's an open class
          job.born();

          //NEW
          //@author Stefano Omini, Bertoli Marco

          // in RandomSource the job is created (--> SystemEnteringTime is initialized)
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.