Example #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 ByteMemoryGateFactory(IMemoryGateFactory memoryGateFactory, IByteFactory byteFactory)
 {
     _memoryGateFactory = memoryGateFactory;
     _byteFactory       = byteFactory;
 }
 public ByteMemoryGate(IMemoryGateFactory memoryGateFactory, IByteFactory byteFactory)
 {
     _byteFactory = byteFactory;
     _memoryGates = Enumerable.Range(0, 8).Select(_ => memoryGateFactory.Create()).ToList();
 }
 public CaezMemoryGateFactory(IMemoryGateFactory memoryGateFactory)
 {
     _memoryGateFactory = memoryGateFactory;
 }
Example #6
0
 public CaezRegisterFactory(IMemoryGateFactory memoryGateFactory, IAnd and)
 {
     _memoryGateFactory = memoryGateFactory;
     _and = and;
 }
 public BitRegisterFactory(IMemoryGateFactory memoryGateFactory)
 {
     _memoryGateFactory = memoryGateFactory;
 }