Пример #1
0
 public Stepper(IMemoryGateFactory memoryGateFactory, IAnd and, INot not, IOr or)
 {
     _and         = and;
     _not         = not;
     _or          = or;
     _memoryGates = Enumerable.Range(0, 12).Select(_ => memoryGateFactory.Create()).ToList();
 }
 public CaezMemoryGate(IMemoryGateFactory memoryGateFactory)
 {
     _memoryGates = Enumerable.Range(0, 8).Select(_ => memoryGateFactory.Create()).ToList();
 }
 public ByteMemoryGate(IMemoryGateFactory memoryGateFactory, IByteFactory byteFactory)
 {
     _byteFactory = byteFactory;
     _memoryGates = Enumerable.Range(0, 8).Select(_ => memoryGateFactory.Create()).ToList();
 }
 public IRegister <bool> Create(Action <bool> updateOutput, string name)
 {
     return(new BitRegister(_memoryGateFactory.Create(), new And(), updateOutput));
 }