String name = protocolClass.getName(); char statusChar; if (name.equals("org.cougaar.mts.base.LoopbackLinkProtocol")) statusChar = 'L'; else if (name.equals("org.cougaar.mts.base.RMILinkProtocol")) statusChar = 'R'; else if (name.equals("org.cougaar.core.mts.email.OutgoingEmailLinkProtocol")) statusChar = 'E'; else if (name.equals("org.cougaar.core.mts.socket.OutgoingSocketLinkProtocol")) statusChar = 'S'; else if (name.equals("org.cougaar.core.mts.udp.OutgoingUDPLinkProtocol")) statusChar = 'U'; else if (name.equals("org.cougaar.core.mts.NNTPLinkProtocol")) statusChar = 'N'; else if (name.equals("org.cougaar.mts.base.SSLRMILinkProtocol")) statusChar = 'V'; else if (name.equals("org.cougaar.mts.base.SerializedRMILinkProtocol")) statusChar = 'Z'; else if (name.equals("org.cougaar.core.mts.FutileSerializingRMILinkProtocol")) statusChar = 'F'; else if (name.equals("org.cougaar.lib.quo.CorbaLinkProtocol")) statusChar = 'C'; else statusChar = '?';
String name = protocolClass.getName(); char statusChar; if      (name.equals("org.cougaar.mts.base.LoopbackLinkProtocol"))             statusChar = 'L'; else if (name.equals("org.cougaar.mts.base.RMILinkProtocol"))                  statusChar = 'R'; else if (name.equals("org.cougaar.mts.std.SSLRMILinkProtocol"))                statusChar = 'S'; else if (name.equals("org.cougaar.mts.std.email.OutgoingEmailLinkProtocol"))   statusChar = 'E'; else if (name.equals("org.cougaar.mts.std.socket.OutgoingSocketLinkProtocol")) statusChar = 'T'; else if (name.equals("org.cougaar.mts.std.udp.OutgoingUDPLinkProtocol"))       statusChar = 'U'; else if (name.equals("org.cougaar.mts.std.NNTPLinkProtocol"))                  statusChar = 'N'; else if (name.equals("org.cougaar.mts.std.SerializedRMILinkProtocol"))         statusChar = 'X'; else if (name.equals("org.cougaar.mts.std.FutileSerializingLinkProtocol"))     statusChar = 'F'; else if (name.equals("org.cougaar.lib.mquo.CorbaLinkProtocol"))                statusChar = 'C'; else                                                                           statusChar = '?';
    private void showTraffic (DestinationLink link)    {      try       {         Class protocolClass = link.getProtocolClass();/* 8.6.1        if (protocolClass.getName().equals("org.cougaar.mts.base.LoopbackLinkProtocol"))         {          System.err.print (">L");        }         else         {          String prot = (String) protocolClass.getField("PROTOCOL_TYPE").get(null);           char statusChar = Character.toUpperCase (prot.charAt (1));8.6.1 */        String name = protocolClass.getName();                                                            //8.6.1        char statusChar;                                                                                  //8.6.1        if (name.equals("org.cougaar.mts.base.LoopbackLinkProtocol")) statusChar = 'L';                   //8.6.1        else if (name.equals("org.cougaar.mts.base.RMILinkProtocol")) statusChar = 'R';                   //8.6.1        else if (name.equals("org.cougaar.core.mts.email.OutgoingEmailLinkProtocol")) statusChar = 'E';   //8.6.1        else if (name.equals("org.cougaar.core.mts.socket.OutgoingSocketLinkProtocol")) statusChar = 'S'; //8.6.1        else if (name.equals("org.cougaar.core.mts.udp.OutgoingUDPLinkProtocol")) statusChar = 'U';         else if (name.equals("org.cougaar.core.mts.NNTPLinkProtocol")) statusChar = 'N';                  //8.6.1        else if (name.equals("org.cougaar.mts.base.SSLRMILinkProtocol")) statusChar = 'V';                //8.6.1        else if (name.equals("org.cougaar.mts.base.SerializedRMILinkProtocol")) statusChar = 'Z';         //8.6.1        else if (name.equals("org.cougaar.core.mts.FutileSerializingRMILinkProtocol")) statusChar = 'F';  //8.6.1        else if (name.equals("org.cougaar.lib.quo.CorbaLinkProtocol")) statusChar = 'C';                  //8.6.1        else statusChar = '?';                                                                            //8.6.1        System.out.print(">"+statusChar);      }       catch (Exception e) { e.printStackTrace(); }    }