Ejemplo n.º 1
0
 public CloudClass(cloudName name, int id, string des, float ramMax, float discMax, int[] discNums, int[] cpuNum, string[] apps)
 {
     _name         = name;
     _id           = id;
     _description  = des;
     _upLoadRate   = 0f;
     _downLoadRate = 0f;
     _flowAvg      = 0f;
     _flowMax      = 0f;
     _last12Flows  = new float[12] {
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
     };
     _last24Visits   = new List <int[]>();
     _last9Responses = new float[9] {
         0, 0, 0, 0, 0, 0, 0, 0, 0
     };
     _responseMax = 0f;
     _responseAvg = 0f;
     _ramMax      = ramMax;
     _last12Rams  = new float[12] {
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
     };
     _discMax        = discMax;
     _discNums       = discNums;
     _last24DiscUses = new float[24] {
         0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
     };
     _discInput  = 0f;
     _discOutput = 0f;
     _cpuNum     = cpuNum;
     _cpuRate    = 0f;
     _Apps       = apps;
     _appNum     = apps.Length;
 }
Ejemplo n.º 2
0
 public void SetName(cloudName cn)
 {
     this._name = cn;
 }