コード例 #1
0
 public MultipleArguments(systemSettings systemSettings, Enumerator command)
 {
     _systemSettings = systemSettings;
     _command = command;
     DefineCommands();
     _randomNumber = new System.Random(DateTime.Now.Millisecond);
 }
コード例 #2
0
 public TransferSpeed(systemSettings systemSettings, Enumerator command)
 {
     _systemSettings = systemSettings;
     _command = command;
     DefineCommands();
 }
コード例 #3
0
        private void InitializeTests(systemSettings systemSettings, Enumerator command)
        {
            _setupConnection   = new SetupConnection(systemSettings, command);
            _acknowledge       = new Acknowledge(systemSettings, command);
            _clearTextData     = new ClearTextData(systemSettings, command);
            _binaryTextData    = new BinaryTextData(systemSettings, command);
            _multipleArguments = new MultipleArguments(systemSettings, command);
            _transferSpeed     = new TransferSpeed(systemSettings, command);

        }
コード例 #4
0
 private static Enumerator DefineCommands()
 {
     var command = new Enumerator();
     // Set up default commands
     command.Add(new[]
         {
             "CommError", // Command reports serial port comm error (only works for some comm errors)
             "kComment", // Command to sent comment in argument
         });
     return command;
 }
コード例 #5
0
 public ClearTextData(systemSettings systemSettings, Enumerator command)
 {
     _systemSettings = systemSettings;
     _command = command;
     DefineCommands();          
 }
コード例 #6
0
 public SetupConnection(systemSettings systemSettings, Enumerator command)
 {
     _systemSettings = systemSettings;
     _command = command;
     DefineCommands();
 }
コード例 #7
0
 public Acknowledge(systemSettings systemSettings, Enumerator command)
 {
     _systemSettings = systemSettings;
     _command = command;
     DefineCommands();
 }
コード例 #8
0
 public SetupConnection(systemSettings systemSettings, Enumerator command)
 {
     _systemSettings = systemSettings;
     _command        = command;
     DefineCommands();
 }