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

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

Открытые свойства

Свойство Тип Описание
SentByteCount System.Numerics.BigInteger
SentMessageCount System.Numerics.BigInteger
idGen int

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

Метод Описание
Broadcast ( int fromId, ulong protocolId, Msg msg, int delay ) : void
FakeMulticast ( int idCount, int bytes ) : void
FakeSend ( int bytes ) : void
GetParty ( int id ) : Party
Init ( int seed ) : void
Loopback ( int id, ulong protocolId, Msg msg ) : void
Multicast ( int fromId, ulong protocolId, IEnumerable toIds, Msg msg, int delay ) : void
RegisterParty ( Party p ) : void
Reset ( ) : void
Run ( ) : void
Send ( int fromId, int toId, ulong protocolId, Msg msg, int delay ) : void
Send ( int fromId, ulong protocolId, ICollection msgs, ICollection recipients, int delay ) : void
Send ( int fromId, ulong protocolId, ICollection msgs, int delay ) : void

Sends the i-th message to the i-th party.

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

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

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

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

public static FakeMulticast ( int idCount, int bytes ) : void
idCount int
bytes int
Результат void

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

public static FakeSend ( int bytes ) : void
bytes int
Результат void

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

public static GetParty ( int id ) : Party
id int
Результат Party

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

public static Init ( int seed ) : void
seed int
Результат void

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

public static Loopback ( int id, ulong protocolId, Msg msg ) : void
id int
protocolId ulong
msg Msg
Результат void

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

public static Multicast ( int fromId, ulong protocolId, IEnumerable toIds, Msg msg, int delay ) : void
fromId int
protocolId ulong
toIds IEnumerable
msg Msg
delay int
Результат void

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

public static RegisterParty ( Party p ) : void
p Party
Результат void

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

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

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

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

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

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

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

public static Send ( int fromId, ulong protocolId, ICollection msgs, ICollection recipients, int delay ) : void
fromId int
protocolId ulong
msgs ICollection
recipients ICollection
delay int
Результат void

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

Sends the i-th message to the i-th party.
public static Send ( int fromId, ulong protocolId, ICollection msgs, int delay ) : void
fromId int
protocolId ulong
msgs ICollection
delay int
Результат void

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

SentByteCount публичное статическое свойство

Total number of bytes sent by all parties in the network.
public static BigInteger,System.Numerics SentByteCount
Результат System.Numerics.BigInteger

SentMessageCount публичное статическое свойство

Total number of messages sent by all parties in the network.
public static BigInteger,System.Numerics SentMessageCount
Результат System.Numerics.BigInteger

idGen публичное статическое свойство

public static int idGen
Результат int