Esempio n. 1
0
 /// <summary>
 /// Class Constructor
 /// </summary>
 /// <param name="value">Machine Name</param>
 public MachineQueues(int value)
 {
     MachineNumber     = value;
     QueuesInfo        = new QueueInfo[MaxPropertiesNumber];
     Queues            = new Queue <QueueEvent> [MaxPropertiesNumber]; //RECO: Onchanged Queue notification
     KmeanInstances    = new k_means[MaxPropertiesNumber];             //array contains at Max 120 of K-mean instances
     StatfulProperties = new List <int>();                             // List contains stateful properties only for each machine
 }
Esempio n. 2
0
 public void AddNumberOfClustersValue(int PropertyNumber, int NumberOfClusters)
 {
     if (QueuesInfo[PropertyNumber] == null)
     {
         QueuesInfo[PropertyNumber] = new QueueInfo();
     }
     QueuesInfo[PropertyNumber].NumberOfClusters = NumberOfClusters;
     if (!StatfulProperties.Contains(PropertyNumber))
     {
         statfulProperties.Add(PropertyNumber);
     }
 }
Esempio n. 3
0
 public void AddThresholdValue(int PropertyNumber, double ThresholdValue)
 {
     if (QueuesInfo[PropertyNumber] == null)
     {
         QueuesInfo[PropertyNumber] = new QueueInfo();
     }
     QueuesInfo[PropertyNumber].ProbabilityThreshold = ThresholdValue;
     if (!StatfulProperties.Contains(PropertyNumber))
     {
         statfulProperties.Add(PropertyNumber);
     }
 }