C# Class Brunet.Simulator.Transport.SimulationEdgeListener

Inheritance: Brunet.Transport.EdgeListener, IEdgeSendHandler
Mostra file Open project: pstjuste/brunet Class Usage Examples

Public Properties

Property Type Description
LatencyMap List>
LocalID int
Nat INat

Protected Properties

Property Type Description
_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

Public Methods

Method Description
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

Protected Methods

Method Description
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.

Private Methods

Method Description
CreateRemoteEdge ( SimulationEdge se_l ) : void
SimulationEdgeListener ( ) : System

Method Details

AddEdge() protected method

protected AddEdge ( Edge edge ) : void
edge Edge
return void

Clear() static public method

static public Clear ( ) : void
return void

Clear() static public method

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

CloseHandler() protected method

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

CreateEdgeTo() public method

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

GetEdgeListenerList() static protected method

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
return SimulationEdgeListener>.Dictionary

HandleEdgeSend() public method

public HandleEdgeSend ( Edge from, ICopyable p ) : void
from Edge
p ICopyable
return void

SimulationEdgeListener() public method

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
return System

SimulationEdgeListener() public method

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
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

TotalDataTransferred() static public method

static public TotalDataTransferred ( ) : long
return long

UpdateLocalTAs() public method

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

Property Details

LatencyMap public_oe static_oe property

public static List> LatencyMap
return List>

LocalID public_oe property

ID of this EL.
public int LocalID
return int

Nat public_oe property

public INat Nat
return INat

_ba static_oe protected_oe property

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

_bytes protected_oe property

protected long _bytes
return long

_edges protected_oe property

protected Dictionary _edges
return Edge>.Dictionary

_el_map static_oe protected_oe property

Map EL id to EL.
static protected Dictionary> _el_map
return Dictionary>

_is_started protected_oe property

protected bool _is_started
return bool

_ploss_prob protected_oe property

protected double _ploss_prob
return double

_rand static_oe protected_oe property

static protected Random,System _rand
return System.Random

_ta_type protected_oe property

protected TransportAddress.TAType _ta_type
return TransportAddress.TAType

_use_delay protected_oe property

protected bool _use_delay
return bool