C# Class MpcLib.DistributedSystem.Party

Represents an abstract network party.
Mostra file Open project: mahdiz/mpclib Class Usage Examples

Protected Properties

Property Type Description
ChildProtocolCompletedMsg Dictionary>
ChildProtocolOutstandingCount int>.Dictionary
ChildProtocolSubmissionOrder List>.Dictionary
ParentProtocols ulong>.Dictionary
RegisteredProtocols Protocol>.Dictionary

Public Methods

Method 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

Method Description
CheckCompleted ( Protocol protocol ) : void

Method Details

Broadcast() public method

public Broadcast ( Protocol protocol, Msg msg, int delay ) : void
protocol Protocol
msg Msg
delay int
return void

ExecuteSubProtocol() public method

public ExecuteSubProtocol ( Protocol current, Protocol child ) : void
current Protocol
child Protocol
return void

ExecuteSubProtocols() public method

public ExecuteSubProtocols ( Protocol current, IEnumerable subProtocols ) : void
current Protocol
subProtocols IEnumerable
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

Multicast() public method

public Multicast ( Protocol protocol, Msg msg, IEnumerable toIds, int delay ) : void
protocol Protocol
msg Msg
toIds IEnumerable
delay int
return void

Party() public method

public Party ( ) : System
return System

Receive() public method

public Receive ( int fromId, ulong protocolId, Msg msg ) : void
fromId int
protocolId ulong
msg Msg
return void

RegisterProtocol() public method

public RegisterProtocol ( Protocol parent, Protocol child ) : void
parent Protocol
child Protocol
return void

Reset() public static method

public static Reset ( ) : void
return void

Send() public method

public Send ( Protocol protocol, ICollection msgs, ICollection recipients, int delay ) : void
protocol Protocol
msgs ICollection
recipients ICollection
delay int
return void

Send() public method

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
return void

Send() public method

public Send ( Protocol protocol, int toId, Msg msg, int delay ) : void
protocol Protocol
toId int
msg Msg
delay int
return void

Start() public abstract method

Initiates the party protocol.
public abstract Start ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

ChildProtocolCompletedMsg protected_oe property

protected Dictionary> ChildProtocolCompletedMsg
return Dictionary>

ChildProtocolOutstandingCount protected_oe property

protected Dictionary ChildProtocolOutstandingCount
return int>.Dictionary

ChildProtocolSubmissionOrder protected_oe property

protected Dictionary> ChildProtocolSubmissionOrder
return List>.Dictionary

ParentProtocols protected_oe property

protected Dictionary ParentProtocols
return ulong>.Dictionary

RegisteredProtocols protected_oe property

protected Dictionary RegisteredProtocols
return Protocol>.Dictionary