package jtres;

import javax.realtime.*;

import javax.safetycritical.*;

public class DisconnectHandler extends AperiodicEventHandler {
   /* Object to access the network. (Resides in MissionMemory) */
   private final Network network;

   public DisconnectHandler(Network network,
      PriorityParameters priority,
      StorageParameters storage,
      AperiodicEvent event) {
      super(priority, storage, event, "DisconnectHandler");
      this.network = network;
   }

   public void handleAsyncEvent() {
      /* The method call below carries out the device access. */
      network.disconnect();
   }
}
