public void start() {
if (orderListener == null && calculationListener == null) {
throw new IllegalStateException("Must set the order listener or the"
+ " calculation listener first");
}
NotificationDispatcher dispatcher;
dispatcher = new NotificationDispatcher(transport, orderListener,
calculationListener);
transport.registerReceiver(dispatcher);
if (!started) {
started = true;
transport.start();