コード例 #1
0
    public static Client CollectClientInformation() {
      Client client = new Client();
      OperatingSystem os = new OperatingSystem();
      ClientType cType = new ClientType();
      cType.Name = Settings.Default.ClientTypeName;

      client.Id = GetUniqueMachineId();
      client.HeuristicLabVersion = GetHLVersion();
      client.Name = GetMachineName();
      client.MemorySize = GetPhysicalMemory().GetValueOrDefault();
      client.NumberOfCores = GetNumberOfCores();
      os.Name = GetOperatingSystem();
      client.OperatingSystem = os;
      client.ProcessorType = GetCpuInfo();
      client.ClientType = cType;
      client.ClientConfiguration = GetClientConfiguration();
      client.Timestamp = DateTime.Now;
      client.PerformanceValue = RunBenchmark();

      return client;
    }
コード例 #2
0
ファイル: ClientType.cs プロジェクト: thunder176/HeuristicLab
 protected ClientType(ClientType original, Cloner cloner)
   : base(original, cloner) {
   this.Name = original.Name;
 }
コード例 #3
0
ファイル: ClientType.cs プロジェクト: thunder176/HeuristicLab
 protected ClientType(ClientType original, Cloner cloner)
     : base(original, cloner)
 {
     this.Name = original.Name;
 }