public virtual void Run() { throw new ApplicationException("ThreadSimulator.Run() should be overridden."); }
public void onResponses() { if (runnable != null) { runnable.Run(); runnable = null; } }