示例#1
0
 public ONTHelper(ONTType type, string ONTSerial)
 {
     Type = type;
     _ont = ONTFactory.GetONT(type);
     _ont.SerialNumber = ONTSerial;
     LoadONT(ONTSerial);
 }
示例#2
0
 public ONTHelper(ONTType type)
 {
     Type = type;
     _ont = ONTFactory.GetONT(type);
 }
示例#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");
     }
 }