Package agentj.nativeimp

Examples of agentj.nativeimp.ProtolibTimer


        parkObj.parkUntil(deadline); // returns when done ...

        Logging.parkStatus(controller, Logging.ParkStatusType.PARKRELEASED, threadparkingName);

        // Wait for ns-2
        ProtolibTimer timer = new ProtolibTimer(controller, 0, 0); // and then immediately stopping
        timer.startTimerAndBlockUntilTimeout(); // and then starting again once timer has returned
        // timer does the release needed for the unpark handshake.

        AgentJVirtualMachine.setCurrentNode(controller.getNs2node());
        // carry on now since we have woken up ns-2
    }
View Full Code Here


   logger.trace("TimerTask.java: run() left");

   if (period != 0){
        logger.trace("javm/util/TimerTask: new Timer created");
        nextExecutionTime += Math.abs(period);
        ProtolibTimer protoTimer = new ProtolibTimer(controller, (double) Math.abs(period) / 1000.0, 0);
        protoTimer.startTimerAndNotifyOnTimeout(this);
        logger.trace("javm/util/TimerTask: new Timer created sucessfully");
   }
         else { // non-repeating task
              state = EXECUTED;
              timer.removeTimerTask(this);
View Full Code Here

        queue.add(task);

        Controller controller = AgentJVirtualMachine.getCurrentNS2NodeController();
        double delayMillis = (double) (time - javm.lang.System.currentTimeMillis()) / 1000.0;

        ProtolibTimer protoTimer = new ProtolibTimer(controller, delayMillis, 0);
        protoTimer.startTimerAndNotifyOnTimeout(task);
  logger.trace("javm/util/Timer: sched leaving");

    }
View Full Code Here

TOP

Related Classes of agentj.nativeimp.ProtolibTimer

Copyright © 2018 www.massapicom. 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.