Represents an abstract network party.
Beispiel #1
0
 public Protocol(Party me, SortedSet<int> partyIds, ulong protocolId)
 {
     Me = me;
     PartyIds = partyIds;
     NumParties = PartyIds.Count;
     IsCompleted = false;
     ProtocolId = protocolId;
 }
 public SynchronizationProtocol(Party me, SortedSet<int> partyIds, IEnumerable<Protocol> protocols, ulong protocolId)
     : base(me, partyIds, protocolId)
 {
     Protocols = protocols;
 }
Beispiel #3
0
 public LoopbackProtocol(Party me, object result, ulong protocolId)
     : base(me, new SortedSet<int>(), protocolId)
 {
     IsCompleted = true;
     RawResult = result;
 }
Beispiel #4
0
 public NopProtocol(Party me, ulong protocolId, int nopCount)
     : base(me, new SortedSet<int>(), protocolId)
 {
     NopCount = nopCount;
 }
Beispiel #5
0
 public static void RegisterParty(Party p)
 {
     parties[p.Id] = p;
 }