C# 클래스 Brunet.Simulator.Simulator

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

공개 프로퍼티들

프로퍼티 타입 설명
BrunetNamespace string
CurrentNetworkSize int
NCEnable bool
Nodes NodeMapping>.SortedList
SimBroadcastHandler Brunet.Messaging.SimpleFilter
SimBroadcastPType Brunet.Util.PType
StartingNetworkSize int
TakenIDs NodeMapping>.SortedList

보호된 프로퍼티들

프로퍼티 타입 설명
_broken double
_ca_cert Brunet.Security.Certificate
_dtls bool
_parameters Parameters
_pathing bool
_rand System.Random
_se_key System.Security.Cryptography.RSACryptoServiceProvider
_secure_edges bool
_secure_senders bool
_start bool

공개 메소드들

메소드 설명
AddNode ( ) : Node

Add a new (random) node to the simulation.

AddNode ( int id, AHAddress address ) : Node

Add a new specific node to the simulation.

AreConnected ( Node node0, Node node1 ) : bool
CheckRing ( bool log ) : bool

Performs a crawl of the network using the ConnectionTable of each node.

Complete ( bool quiet ) : bool
Disconnect ( ) : void

Disconnects all the nodes in the simulator.

FindMissing ( bool log ) : List

Returns a list of missing nodes, while crawling the simulation. This is an example of a PassiveTask.

PrintConnectionState ( ) : void
PrintConnections ( ) : void

Prints all the connections for the nodes in the simulator.

PrintConnections ( Node node ) : void
RandomNode ( ) : NodeMapping
RemoveNode ( Node node, bool cleanly, bool output ) : void
RemoveNode ( bool cleanly, bool output ) : void
Revoke ( bool log ) : NodeMapping

Revoke a random node from a random node.

Simulator ( Parameters parameters ) : System

보호된 메소드들

메소드 설명
CreateEdgeListener ( int id ) : EdgeListener

Return the SimulationEdgeListener.

GenerateAddress ( ) : AHAddress

Generate a new unique address, there is potential for collissions when we make the address space small.

GetRemoteTAs ( ) : List

Return a small list of random TAs.

PrepareNode ( int id, AHAddress address ) : StructuredNode
Simulator ( Parameters parameters, bool start ) : System
Start ( ) : void
TakeID ( ) : int

Remove and return the next ID from availability.

메소드 상세

AddNode() 공개 메소드

Add a new (random) node to the simulation.
public AddNode ( ) : Node
리턴 Node

AddNode() 공개 메소드

Add a new specific node to the simulation.
public AddNode ( int id, AHAddress address ) : Node
id int
address Brunet.Symphony.AHAddress
리턴 Node

AreConnected() 정적인 공개 메소드

static public AreConnected ( Node node0, Node node1 ) : bool
node0 Node
node1 Node
리턴 bool

CheckRing() 공개 메소드

Performs a crawl of the network using the ConnectionTable of each node.
public CheckRing ( bool log ) : bool
log bool
리턴 bool

Complete() 공개 메소드

public Complete ( bool quiet ) : bool
quiet bool
리턴 bool

CreateEdgeListener() 보호된 메소드

Return the SimulationEdgeListener.
protected CreateEdgeListener ( int id ) : EdgeListener
id int
리턴 Brunet.Transport.EdgeListener

Disconnect() 공개 메소드

Disconnects all the nodes in the simulator.
public Disconnect ( ) : void
리턴 void

FindMissing() 공개 메소드

Returns a list of missing nodes, while crawling the simulation. This is an example of a PassiveTask.
public FindMissing ( bool log ) : List
log bool
리턴 List

GenerateAddress() 보호된 메소드

Generate a new unique address, there is potential for collissions when we make the address space small.
protected GenerateAddress ( ) : AHAddress
리턴 Brunet.Symphony.AHAddress

GetRemoteTAs() 보호된 메소드

Return a small list of random TAs.
protected GetRemoteTAs ( ) : List
리턴 List

PrepareNode() 보호된 메소드

protected PrepareNode ( int id, AHAddress address ) : StructuredNode
id int
address Brunet.Symphony.AHAddress
리턴 Brunet.Symphony.StructuredNode

PrintConnectionState() 공개 메소드

public PrintConnectionState ( ) : void
리턴 void

PrintConnections() 공개 메소드

Prints all the connections for the nodes in the simulator.
public PrintConnections ( ) : void
리턴 void

PrintConnections() 공개 메소드

public PrintConnections ( Node node ) : void
node Node
리턴 void

RandomNode() 공개 메소드

public RandomNode ( ) : NodeMapping
리턴 NodeMapping

RemoveNode() 공개 메소드

public RemoveNode ( Node node, bool cleanly, bool output ) : void
node Node
cleanly bool
output bool
리턴 void

RemoveNode() 공개 메소드

public RemoveNode ( bool cleanly, bool output ) : void
cleanly bool
output bool
리턴 void

Revoke() 공개 메소드

Revoke a random node from a random node.
public Revoke ( bool log ) : NodeMapping
log bool
리턴 NodeMapping

Simulator() 공개 메소드

public Simulator ( Parameters parameters ) : System
parameters Parameters
리턴 System

Simulator() 보호된 메소드

protected Simulator ( Parameters parameters, bool start ) : System
parameters Parameters
start bool
리턴 System

Start() 보호된 메소드

protected Start ( ) : void
리턴 void

TakeID() 보호된 메소드

Remove and return the next ID from availability.
protected TakeID ( ) : int
리턴 int

프로퍼티 상세

BrunetNamespace 공개적으로 프로퍼티

public string BrunetNamespace
리턴 string

CurrentNetworkSize 공개적으로 프로퍼티

public int CurrentNetworkSize
리턴 int

NCEnable 공개적으로 프로퍼티

public bool NCEnable
리턴 bool

Nodes 공개적으로 프로퍼티

public SortedList Nodes
리턴 NodeMapping>.SortedList

SimBroadcastHandler 공개적으로 프로퍼티

public SimpleFilter,Brunet.Messaging SimBroadcastHandler
리턴 Brunet.Messaging.SimpleFilter

SimBroadcastPType 공개적으로 정적으로 프로퍼티

public static PType,Brunet.Util SimBroadcastPType
리턴 Brunet.Util.PType

StartingNetworkSize 공개적으로 프로퍼티

public int StartingNetworkSize
리턴 int

TakenIDs 공개적으로 프로퍼티

public SortedList TakenIDs
리턴 NodeMapping>.SortedList

_broken 보호되어 있는 프로퍼티

protected double _broken
리턴 double

_ca_cert 보호되어 있는 프로퍼티

protected Certificate,Brunet.Security _ca_cert
리턴 Brunet.Security.Certificate

_dtls 보호되어 있는 프로퍼티

protected bool _dtls
리턴 bool

_parameters 보호되어 있는 프로퍼티

protected Parameters,Brunet.Simulator _parameters
리턴 Parameters

_pathing 보호되어 있는 프로퍼티

protected bool _pathing
리턴 bool

_rand 보호되어 있는 프로퍼티

protected Random,System _rand
리턴 System.Random

_se_key 보호되어 있는 프로퍼티

protected RSACryptoServiceProvider,System.Security.Cryptography _se_key
리턴 System.Security.Cryptography.RSACryptoServiceProvider

_secure_edges 보호되어 있는 프로퍼티

protected bool _secure_edges
리턴 bool

_secure_senders 보호되어 있는 프로퍼티

protected bool _secure_senders
리턴 bool

_start 보호되어 있는 프로퍼티

protected bool _start
리턴 bool