@Override
  public void load() {
    super.load();

    // we want the servlet service, but it's loaded after the MTS.
    // Also, we want the agent's proxy to the node-level
    // ServletService. The blackboard is loaded late enough, so we
    // wait 'til then...
    if (sb.hasService(BlackboardService.class)) {
      registerServlet();
    } else {
      ServiceAvailableListener sal =
          new ServiceAvailableListener() {
            public void serviceAvailable(ServiceAvailableEvent ae) {
              Class<?> cl = ae.getService();
              if (BlackboardService.class.isAssignableFrom(cl)) {
                registerServlet();
              }
            }
          };
      sb.addServiceListener(sal);
    }
  }
Ejemplo n.º 2
0
 public void resume() throws StateModelException {
   super.resume();
   threadingModel.resume();
 }
Ejemplo n.º 3
0
 public void suspend() throws StateModelException {
   super.suspend();
   threadingModel.suspend();
 }
Ejemplo n.º 4
0
 public void start() throws StateModelException {
   super.start();
   startThreadingModel();
 }
Ejemplo n.º 5
0
 public void load() throws StateModelException {
   if (getBlackboardService() == null)
     System.err.println("Warning: Could not get Blackboard service " + this);
   super.load();
   load(null);
 }
Ejemplo n.º 6
0
 /** Component Model <em>AND</em> GenericStateModel initialization * */
 public void initialize() {
   super.initialize(); // uninitialized->unloaded (defined in GSMAdapter)
 }