C# Класс MpcLib.DistributedSystem.Protocol

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
NumParties int

Открытые методы

Метод Описание
Broadcast ( Msg msg, int delay ) : void
ExecuteSubProtocol ( Protocol subProtocol ) : void
ExecuteSubProtocols ( IEnumerable subProtocols ) : void
HandleMessage ( int fromId, Msg msg ) : void
Multicast ( Msg msg, IEnumerable toIds, int delay ) : void
Protocol ( Party me, SortedSet partyIds, ulong protocolId ) : System
Send ( ICollection msgs, ICollection recipients, int delay ) : void
Send ( Protocol protocol, ICollection msgs, int delay ) : void

Sends the i-th message to the i-th party.

Send ( int toId, Msg msg, int delay ) : void
Start ( ) : void
Teardown ( ) : void

Описание методов

Broadcast() публичный Метод

public Broadcast ( Msg msg, int delay ) : void
msg Msg
delay int
Результат void

ExecuteSubProtocol() публичный Метод

public ExecuteSubProtocol ( Protocol subProtocol ) : void
subProtocol Protocol
Результат void

ExecuteSubProtocols() публичный Метод

public ExecuteSubProtocols ( IEnumerable subProtocols ) : void
subProtocols IEnumerable
Результат void

HandleMessage() публичный абстрактный Метод

public abstract HandleMessage ( int fromId, Msg msg ) : void
fromId int
msg Msg
Результат void

Multicast() публичный Метод

public Multicast ( Msg msg, IEnumerable toIds, int delay ) : void
msg Msg
toIds IEnumerable
delay int
Результат void

Protocol() публичный Метод

public Protocol ( Party me, SortedSet partyIds, ulong protocolId ) : System
me Party
partyIds SortedSet
protocolId ulong
Результат System

Send() публичный Метод

public Send ( ICollection msgs, ICollection recipients, int delay ) : void
msgs ICollection
recipients ICollection
delay int
Результат void

Send() публичный Метод

Sends the i-th message to the i-th party.
public Send ( Protocol protocol, ICollection msgs, int delay ) : void
protocol Protocol
msgs ICollection
delay int
Результат void

Send() публичный Метод

public Send ( int toId, Msg msg, int delay ) : void
toId int
msg Msg
delay int
Результат void

Start() публичный абстрактный Метод

public abstract Start ( ) : void
Результат void

Teardown() публичный Метод

public Teardown ( ) : void
Результат void

Описание свойств

NumParties публичное свойство

public int NumParties
Результат int