Package edu.jhu.mb.ernst.engine

Examples of edu.jhu.mb.ernst.engine.DiscreteEvent


   
    public static void  process (
      final DiscreteEventQueue  discreteEventQueue )
    ////////////////////////////////////////////////////////////////////////
    {
      final DiscreteEvent  discreteEvent = discreteEventQueue.poll ( );
     
      if ( discreteEvent == null )
      {
        return;
      }
     
      final boolean  reinsert = discreteEvent.process ( );
     
      if ( reinsert )
      {
        discreteEventQueue.offer ( discreteEvent );
      }
View Full Code Here


     
      // take out the first poisson input element
     
      pInputEvent = network.getFirstPInputEvent ( );
     
      final DiscreteEvent  discreteEvent = discreteEventQueue.peek ( );

      double
        fireTime,
        inputTime,
        pInputTime,
        discreteEventTime;

      // System.out.println("running...");
     
      if ( firstFireEvent != null )
      {
        fireTime = firstFireEvent.time;
      }
      else
      {
        fireTime = Double.MAX_VALUE;
      }

      if ( firstInputEvent != null )
      {
        inputTime = firstInputEvent.time;
      }
      else
      {
        inputTime = Double.MAX_VALUE;
      }

      if ( pInputEvent != null )
      {
        pInputTime = pInputEvent.time;
      }
      else
      {
        pInputTime = Double.MAX_VALUE;
      }
     
      if ( discreteEvent != null )
      {
        discreteEventTime = discreteEvent.getTime ( );
      }
      else
      {
        discreteEventTime = Double.MAX_VALUE;
      }
View Full Code Here

TOP

Related Classes of edu.jhu.mb.ernst.engine.DiscreteEvent

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.