private void Initialize() { _consoleReader = new ConsoleReader(); _inputParser = new InputParser(); _userInputs = new List <int>(); _currentState = new MonitoringState(this); _circuitSimulatorBuilder = new CircuitSimulatorBuilder(); ConsoleWriterSingleton.ShowStart(); }
public void SetState(BaseMonitorState newState, int number) { _currentState = newState; _currentState.RegisterInput(number); }