Esempio n. 1
0
        public PNCPayload(string uid, int numReplicas, int replicaid)
        {
            this.uid       = uid;
            this.PVector   = new List <int>(numReplicas);
            this.NVector   = new List <int>(numReplicas);
            this.replicaid = replicaid;

            for (int i = 0; i < numReplicas; i++)
            {
                PVector.Insert(i, 0);
                NVector.Insert(i, 0);
            }
        }