Beispiel #1
0
 public Clock(IClockStateFactory clockStateFactory, IAnd and, IOr or)
 {
     _and  = and;
     _or   = or;
     _clk  = clockStateFactory.Create();
     _clkD = clockStateFactory.Create();
     ClkE  = false;
     ClkS  = false;
 }
Beispiel #2
0
 // internal method for the State changing
 internal void SetState(IClockState cs)
 {
     _state = cs;
 }