コード例 #1
0
ファイル: VectorView.cs プロジェクト: justenau/ReedMullerCode
 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;
 }
コード例 #2
0
 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))));