org.powertac.server
Class MessageRouter

java.lang.Object
  extended by org.powertac.server.MessageRouter
All Implemented Interfaces:
org.powertac.common.interfaces.InitializationService

@Service
public class MessageRouter
extends Object
implements org.powertac.common.interfaces.InitializationService


Constructor Summary
MessageRouter()
           
 
Method Summary
 Set<Object> getRegistrations(Object message)
          returns the registrations for the given message
 String initialize(org.powertac.common.Competition competition, List<String> completedInits)
           
 void registerBrokerMessageListener(Object listener, Class<?> clazz)
           
 boolean route(Object message)
           
 void setDefaults()
          Initializes the message listener registrations at the pre-game phase, once per game.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageRouter

public MessageRouter()
Method Detail

getRegistrations

public Set<Object> getRegistrations(Object message)
returns the registrations for the given message


registerBrokerMessageListener

public void registerBrokerMessageListener(Object listener,
                                          Class<?> clazz)

setDefaults

public void setDefaults()
Initializes the message listener registrations at the pre-game phase, once per game.

Specified by:
setDefaults in interface org.powertac.common.interfaces.InitializationService

initialize

public String initialize(org.powertac.common.Competition competition,
                         List<String> completedInits)
Specified by:
initialize in interface org.powertac.common.interfaces.InitializationService

route

public boolean route(Object message)


Copyright © 2012 Power TAC. All Rights Reserved.