C# 클래스 MpcLib.DistributedSystem.Party

Represents an abstract network party.
파일 보기 프로젝트 열기: mahdiz/mpclib 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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