C# 클래스 Brunet.Simulator.Transport.SimulationEdgeListener

상속: Brunet.Transport.EdgeListener, IEdgeSendHandler
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
LatencyMap List>
LocalID int
Nat INat

보호된 프로퍼티들

프로퍼티 타입 설명
_ba BufferAllocator
_bytes long
_edges Edge>.Dictionary
_el_map Dictionary>
_is_started bool
_ploss_prob double
_rand System.Random
_ta_type TransportAddress.TAType
_use_delay bool

공개 메소드들

메소드 설명
Clear ( ) : void
Clear ( TransportAddress type ) : void
CreateEdgeTo ( TransportAddress ta, EdgeCreationCallback ecb ) : void
HandleEdgeSend ( Edge from, ICopyable p ) : void
SimulationEdgeListener ( int id, double loss_prob, TAAuthorizer ta_auth, bool use_delay ) : System
SimulationEdgeListener ( int id, double loss_prob, TAAuthorizer ta_auth, bool use_delay, TransportAddress type, INat nat ) : System
Start ( ) : void
Stop ( ) : void
TotalDataTransferred ( ) : long
UpdateLocalTAs ( Edge e, TransportAddress ta ) : void

보호된 메소드들

메소드 설명
AddEdge ( Edge edge ) : void
CloseHandler ( object edge, EventArgs ea ) : void
GetEdgeListenerList ( TransportAddress type ) : SimulationEdgeListener>.Dictionary

Retrieve a given EL Dictionary for the TA Type. This could leak, though that would take the creation of many different EL types and in normal usage there will only be 1 or 2 types.

비공개 메소드들

메소드 설명
CreateRemoteEdge ( SimulationEdge se_l ) : void
SimulationEdgeListener ( ) : System

메소드 상세

AddEdge() 보호된 메소드

protected AddEdge ( Edge edge ) : void
edge Edge
리턴 void

Clear() 정적인 공개 메소드

static public Clear ( ) : void
리턴 void

Clear() 정적인 공개 메소드

static public Clear ( TransportAddress type ) : void
type Brunet.Transport.TransportAddress
리턴 void

CloseHandler() 보호된 메소드

protected CloseHandler ( object edge, EventArgs ea ) : void
edge object
ea System.EventArgs
리턴 void

CreateEdgeTo() 공개 메소드

public CreateEdgeTo ( TransportAddress ta, EdgeCreationCallback ecb ) : void
ta Brunet.Transport.TransportAddress
ecb EdgeCreationCallback
리턴 void

GetEdgeListenerList() 정적인 보호된 메소드

Retrieve a given EL Dictionary for the TA Type. This could leak, though that would take the creation of many different EL types and in normal usage there will only be 1 or 2 types.
static protected GetEdgeListenerList ( TransportAddress type ) : SimulationEdgeListener>.Dictionary
type Brunet.Transport.TransportAddress
리턴 SimulationEdgeListener>.Dictionary

HandleEdgeSend() 공개 메소드

public HandleEdgeSend ( Edge from, ICopyable p ) : void
from Edge
p ICopyable
리턴 void

SimulationEdgeListener() 공개 메소드

public SimulationEdgeListener ( int id, double loss_prob, TAAuthorizer ta_auth, bool use_delay ) : System
id int
loss_prob double
ta_auth Brunet.Transport.TAAuthorizer
use_delay bool
리턴 System

SimulationEdgeListener() 공개 메소드

public SimulationEdgeListener ( int id, double loss_prob, TAAuthorizer ta_auth, bool use_delay, TransportAddress type, INat nat ) : System
id int
loss_prob double
ta_auth Brunet.Transport.TAAuthorizer
use_delay bool
type Brunet.Transport.TransportAddress
nat INat
리턴 System

Start() 공개 메소드

public Start ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

TotalDataTransferred() 정적인 공개 메소드

static public TotalDataTransferred ( ) : long
리턴 long

UpdateLocalTAs() 공개 메소드

public UpdateLocalTAs ( Edge e, TransportAddress ta ) : void
e Edge
ta Brunet.Transport.TransportAddress
리턴 void

프로퍼티 상세

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

public static List> LatencyMap
리턴 List>

LocalID 공개적으로 프로퍼티

ID of this EL.
public int LocalID
리턴 int

Nat 공개적으로 프로퍼티

public INat Nat
리턴 INat

_ba 정적으로 보호되어 있는 프로퍼티

Performance enhancement to reduce pressure on GC.
static protected BufferAllocator _ba
리턴 BufferAllocator

_bytes 보호되어 있는 프로퍼티

protected long _bytes
리턴 long

_edges 보호되어 있는 프로퍼티

protected Dictionary _edges
리턴 Edge>.Dictionary

_el_map 정적으로 보호되어 있는 프로퍼티

Map EL id to EL.
static protected Dictionary> _el_map
리턴 Dictionary>

_is_started 보호되어 있는 프로퍼티

protected bool _is_started
리턴 bool

_ploss_prob 보호되어 있는 프로퍼티

protected double _ploss_prob
리턴 double

_rand 정적으로 보호되어 있는 프로퍼티

static protected Random,System _rand
리턴 System.Random

_ta_type 보호되어 있는 프로퍼티

protected TransportAddress.TAType _ta_type
리턴 TransportAddress.TAType

_use_delay 보호되어 있는 프로퍼티

protected bool _use_delay
리턴 bool