Esempio n. 1
0
 public ONTHelper(ONTType type, string ONTSerial)
 {
     Type = type;
     _ont = ONTFactory.GetONT(type);
     _ont.SerialNumber = ONTSerial;
     LoadONT(ONTSerial);
 }
Esempio n. 2
0
 public ONTHelper(ONTType type)
 {
     Type = type;
     _ont = ONTFactory.GetONT(type);
 }
Esempio n. 3
0
 public static ONT GetONT(ONTType type)
 {
     switch (type)
     {
         case ONTType.MDU: return new MDUONT();
         case ONTType.SFU: return new SFUONT();
         default: throw new ArgumentException("GONT137: This error should be impossible");
     }
 }