C# Class MpcLib.DistributedSystem.Party

Represents an abstract network party.
Afficher le fichier Open project: mahdiz/mpclib Class Usage Examples

Protected Properties

Свойство Type Description
ChildProtocolCompletedMsg Dictionary>
ChildProtocolOutstandingCount int>.Dictionary
ChildProtocolSubmissionOrder List>.Dictionary
ParentProtocols ulong>.Dictionary
RegisteredProtocols Protocol>.Dictionary

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
CheckCompleted ( Protocol protocol ) : void

Method Details

Broadcast() public méthode

public Broadcast ( Protocol protocol, Msg msg, int delay ) : void
protocol Protocol
msg Msg
delay int
Résultat void

ExecuteSubProtocol() public méthode

public ExecuteSubProtocol ( Protocol current, Protocol child ) : void
current Protocol
child Protocol
Résultat void

ExecuteSubProtocols() public méthode

public ExecuteSubProtocols ( Protocol current, IEnumerable subProtocols ) : void
current Protocol
subProtocols IEnumerable
Résultat void

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Multicast() public méthode

public Multicast ( Protocol protocol, Msg msg, IEnumerable toIds, int delay ) : void
protocol Protocol
msg Msg
toIds IEnumerable
delay int
Résultat void

Party() public méthode

public Party ( ) : System
Résultat System

Receive() public méthode

public Receive ( int fromId, ulong protocolId, Msg msg ) : void
fromId int
protocolId ulong
msg Msg
Résultat void

RegisterProtocol() public méthode

public RegisterProtocol ( Protocol parent, Protocol child ) : void
parent Protocol
child Protocol
Résultat void

Reset() public static méthode

public static Reset ( ) : void
Résultat void

Send() public méthode

public Send ( Protocol protocol, ICollection msgs, ICollection recipients, int delay ) : void
protocol Protocol
msgs ICollection
recipients ICollection
delay int
Résultat void

Send() public méthode

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
Résultat void

Send() public méthode

public Send ( Protocol protocol, int toId, Msg msg, int delay ) : void
protocol Protocol
toId int
msg Msg
delay int
Résultat void

Start() public abstract méthode

Initiates the party protocol.
public abstract Start ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

ChildProtocolCompletedMsg protected_oe property

protected Dictionary> ChildProtocolCompletedMsg
Résultat Dictionary>

ChildProtocolOutstandingCount protected_oe property

protected Dictionary ChildProtocolOutstandingCount
Résultat int>.Dictionary

ChildProtocolSubmissionOrder protected_oe property

protected Dictionary> ChildProtocolSubmissionOrder
Résultat List>.Dictionary

ParentProtocols protected_oe property

protected Dictionary ParentProtocols
Résultat ulong>.Dictionary

RegisteredProtocols protected_oe property

protected Dictionary RegisteredProtocols
Résultat Protocol>.Dictionary