public void simulate(long simulationTime)
	{
		state = true;
		while (state)
		{
			SimEvent event = eventQueue.poll();
			if (event == null) break;
			if (simulationTime > 0 && event.getOccurringTime() >= simulationTime) break;
			currentTime = event.getOccurringTime();
			event.getOwner().process(event);
		}
	}