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; }
public LoopbackProtocol(Party me, object result, ulong protocolId) : base(me, new SortedSet<int>(), protocolId) { IsCompleted = true; RawResult = result; }
public NopProtocol(Party me, ulong protocolId, int nopCount) : base(me, new SortedSet<int>(), protocolId) { NopCount = nopCount; }
public static void RegisterParty(Party p) { parties[p.Id] = p; }