/** * Initializes the service in preparation for a new simulation */ public void init () { phaseRegistrations = null; // register with JMS Server if (!bootstrapMode) { jmsManagementService.initializeServerQueue(serverQueueName); jmsManagementService.registerMessageListener(serverQueueName, serverMessageReceiver); } // broker message registration for clock-control messages //brokerProxyService.registerSimListener(this); for (Class<?> messageType: Arrays.asList(BrokerAuthentication.class, PauseRequest.class, PauseRelease.class)) { brokerProxyService.registerBrokerMessageListener(this, messageType); } }
@Override public String initialize (Competition competition, List<String> completedInits) { incoming.clear(); serverProps.configureMe(this); brokerProxyService.registerBrokerMessageListener(this, Order.class); super.init(); serverProps.publishConfiguration(this); return "Auctioneer"; }
EconomicControlEvent.class, BalancingOrder.class)) { brokerProxyService.registerBrokerMessageListener(this, messageType);