C# 클래스 MpcLib.DistributedSystem.Protocol

파일 보기 프로젝트 열기: mahdiz/mpclib 1 사용 예제들

공개 프로퍼티들

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