// 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;
}