} else if ("setSchedulerFactory".equals(event.getEvent())) {
// init scheduler tasks
agentHost.getScheduler(this);
} else if ("addTransportService".equals(event.getEvent())) {
TransportService service = (TransportService) event.getService();
service.reconnect(getId());
}
}
/**
* This method is called once in the life time of an agent, at the moment