Пример #1
0
 public static HayesModem Test2()
 {
     ModemVisitor u = new UnixModemConfigurator();
     HayesModem h = new HayesModem();
     h.accept(u);
     return h;
 }
Пример #2
0
        static public HayesModem Test2()
        {
            ModemVisitor u = new UnixModemConfigurator();
            HayesModem   h = new HayesModem();

            h.accept(u);
            return(h);
        }
Пример #3
0
 public static String Test()
 {
     ModemVisitor u = new UnixModemConfigurator();
     HayesModem h = new HayesModem();
     ErnieModem e = new ErnieModem();
     h.accept(u);
     e.accept(u);
     return h.configurationString+" "+e.internalPattern;
 }
Пример #4
0
        static public String Test()
        {
            ModemVisitor u = new UnixModemConfigurator();
            HayesModem   h = new HayesModem();
            ErnieModem   e = new ErnieModem();

            h.accept(u);
            e.accept(u);
            return(h.configurationString + " " + e.internalPattern);
        }