public Simulator(IDiagnoser Algorithm) { Diagnoser = Algorithm; if (Diagnoser != null && Diagnoser is DiagnosesSearcher) { gateFunc = ((DiagnosesSearcher)Diagnoser).function; } else { gateFunc = new FlipFunction(); } parser = new ISCASParser(); }
public Simulator() { parser = new ISCASParser(); gateFunc = new FlipFunction(); rnd = new Random(); }