Esempio n. 1
0
 private int GetSourceLoad()
 {
     return(Rams.Select(x => x.LoadUsage).Sum() +
            Hards.Select(x => x.LoadUsage).Sum() +
            Cpus.Select(x => x.LoadUsage).Sum() +
            Gpus.Select(x => x.LoadUsage).Sum() +
            Networks.Select(x => x.LoadUsage).Sum() +
            Wirelesses.Select(x => x.LoadUsage).Sum() +
            Motherboard.LoadUsage);
 }
Esempio n. 2
0
 public Environment DeepClone()
 {
     return(new Environment(Cpus.Select(x => x.DeepClone()).ToArray()));
 }