Exemplo n.º 1
0
        // TODO: Check when the replica reads from a file and these tuples are new!!!
        public override bool Equals(Object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            TupleWrapper t = (TupleWrapper)obj;

            return(id.Equals(t.ID));
        }
Exemplo n.º 2
0
 ///<resume>when is atributed to the replica itself</resume>
 public DTOtupleState(TupleWrapper tupleWraper, string owner)
 {
     stage            = ATRIBUTED;
     this.tupleWraper = tupleWraper;
 }
Exemplo n.º 3
0
 ///<resume>stat when have no owner</resume>
 public DTOtupleState(TupleWrapper tupleWraper)
 {
     stage            = RECEIVED;
     this.tupleWraper = tupleWraper;
 }
Exemplo n.º 4
0
 public OtherReplicaTuple(TupleWrapper t)
 {
     tuple = t;
 }