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

Represents an abstract network party.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
ChildProtocolCompletedMsg Dictionary>
ChildProtocolOutstandingCount int>.Dictionary
ChildProtocolSubmissionOrder List>.Dictionary
ParentProtocols ulong>.Dictionary
RegisteredProtocols Protocol>.Dictionary

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

Метод Описание
Broadcast ( Protocol protocol, Msg msg, int delay ) : void
ExecuteSubProtocol ( Protocol current, Protocol child ) : void
ExecuteSubProtocols ( Protocol current, IEnumerable subProtocols ) : void
GetHashCode ( ) : int
Multicast ( Protocol protocol, Msg msg, IEnumerable toIds, int delay ) : void
Party ( ) : System
Receive ( int fromId, ulong protocolId, Msg msg ) : void
RegisterProtocol ( Protocol parent, Protocol child ) : void
Reset ( ) : void
Send ( Protocol protocol, 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 ( Protocol protocol, int toId, Msg msg, int delay ) : void
Start ( ) : void

Initiates the party protocol.

ToString ( ) : string

Приватные методы

Метод Описание
CheckCompleted ( Protocol protocol ) : void

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

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

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

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

public ExecuteSubProtocol ( Protocol current, Protocol child ) : void
current Protocol
child Protocol
Результат void

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

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

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

public GetHashCode ( ) : int
Результат int

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

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

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

public Party ( ) : System
Результат System

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

public Receive ( int fromId, ulong protocolId, Msg msg ) : void
fromId int
protocolId ulong
msg Msg
Результат void

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

public RegisterProtocol ( Protocol parent, Protocol child ) : void
parent Protocol
child Protocol
Результат void

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

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

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

public Send ( Protocol protocol, ICollection msgs, ICollection recipients, int delay ) : void
protocol Protocol
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 ( Protocol protocol, int toId, Msg msg, int delay ) : void
protocol Protocol
toId int
msg Msg
delay int
Результат void

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

Initiates the party protocol.
public abstract Start ( ) : void
Результат void

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

public ToString ( ) : string
Результат string

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

ChildProtocolCompletedMsg защищенное свойство

protected Dictionary> ChildProtocolCompletedMsg
Результат Dictionary>

ChildProtocolOutstandingCount защищенное свойство

protected Dictionary ChildProtocolOutstandingCount
Результат int>.Dictionary

ChildProtocolSubmissionOrder защищенное свойство

protected Dictionary> ChildProtocolSubmissionOrder
Результат List>.Dictionary

ParentProtocols защищенное свойство

protected Dictionary ParentProtocols
Результат ulong>.Dictionary

RegisteredProtocols защищенное свойство

protected Dictionary RegisteredProtocols
Результат Protocol>.Dictionary