Esempio n. 1
0
 public VectorView(int m)
 {
     InitializeComponent();
     panel.SendBtn.Click += SendBtn_Click;
     panel.ChangeComponentVisibility(false);
     pPanel.Controls.Add(panel);
     M                      = m;
     VectorLength           = m + 1;
     vectorLengthLabel.Text = VectorLength.ToString();
     inputField.MaxLength   = VectorLength;
 }
 public string AsCsvString() =>
 LoopIndex.ToString()
 .ConcatCsv(MonitoringScheme.AsString())
 .ConcatCsv(VectorLength.ToString())
 .ConcatCsv(NumOfNodes.ToString())
 .ConcatCsv(Approximation.AsString())
 .ConcatCsv(Communication.Bandwidth.ToString())
 .ConcatCsv(Communication.UdpBandwidth.ToString())
 .ConcatCsv(Communication.Messages.ToString())
 .ConcatCsv(Communication.UdpMessages.ToString())
 .ConcatCsv(Communication.Latency.ToString())
 .ConcatCsv(NumberOfFullSyncs.ToString())
 .ConcatCsv(LowerBound.AsCsvString())
 .ConcatCsv(FunctionValue.ToString(CultureInfo.InvariantCulture))
 .ConcatCsv(UpperBound.AsCsvString())
 .ConcatCsv(NodesFunctionValues.Aggregate("", (csv, value) => csv.ConcatCsv(value.ToString(CultureInfo.InvariantCulture))));