Пример #1
0
 public Simulator(IDiagnoser Algorithm)
 {
     Diagnoser = Algorithm;
     if (Diagnoser != null && Diagnoser is DiagnosesSearcher)
     {
         gateFunc = ((DiagnosesSearcher)Diagnoser).function;
     }
     else
     {
         gateFunc = new FlipFunction();
     }
     parser = new ISCASParser();
 }
Пример #2
0
 public Simulator()
 {
     parser   = new ISCASParser();
     gateFunc = new FlipFunction();
     rnd      = new Random();
 }