コード例 #1
0
        public Stamp Fork()
        {
            var newStamp = new Stamp {
                Event = Event.Clone()
            };

            Id[] newIds = Id.Split();
            Id          = newIds[0];
            newStamp.Id = newIds[1];

            return(newStamp);
        }
コード例 #2
0
 public bool Leq(Stamp anotherStamp)
 {
     return(Event.Leq(anotherStamp.Event));
 }
コード例 #3
0
 public void Join(Stamp anotherStamp)
 {
     // joins two stamps becoming itself the result stamp
     Id.Sum(Id, anotherStamp.Id);
     Event.Join(Event, anotherStamp.Event);
 }