C# Class Brunet.Transport.SimulationEdgeListener

Inheritance: EdgeListener, IEdgeSendHandler
Mostra file Open project: johnynek/brunet Class Usage Examples

Public Properties

Property Type Description
LatencyMap List>

Protected Properties

Property Type Description
_ba BufferAllocator
_edges System.Collections.Hashtable
_is_started int
_listener_id int
_listener_map System.Collections.Hashtable
_ploss_prob double
_rand System.Random
_sync object
_tas System.Collections.ArrayList
_use_delay bool

Public Methods

Method Description
CreateEdgeTo ( TransportAddress ta, EdgeCreationCallback ecb ) : void
HandleEdgeSend ( Edge from, ICopyable p ) : void
SimulationEdgeListener ( int id ) : System
SimulationEdgeListener ( int id, double loss_prob, TAAuthorizer ta_auth ) : System
SimulationEdgeListener ( int id, double loss_prob, TAAuthorizer ta_auth, bool use_delay ) : System
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
AddEdge ( Edge edge ) : void
CloseHandler ( object edge, EventArgs ea ) : void

Method Details

AddEdge() protected method

protected AddEdge ( Edge edge ) : void
edge Edge
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 TransportAddress
ecb EdgeCreationCallback
return void

HandleEdgeSend() public method

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

SimulationEdgeListener() public method

public SimulationEdgeListener ( int id ) : System
id int
return System

SimulationEdgeListener() public method

public SimulationEdgeListener ( int id, double loss_prob, TAAuthorizer ta_auth ) : System
id int
loss_prob double
ta_auth TAAuthorizer
return System

SimulationEdgeListener() public method

public SimulationEdgeListener ( int id, double loss_prob, TAAuthorizer ta_auth, bool use_delay ) : System
id int
loss_prob double
ta_auth TAAuthorizer
use_delay bool
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Property Details

LatencyMap public_oe static_oe property

public static List> LatencyMap
return List>

_ba protected_oe property

protected BufferAllocator _ba
return BufferAllocator

_edges protected_oe property

protected Hashtable,System.Collections _edges
return System.Collections.Hashtable

_is_started protected_oe property

protected int _is_started
return int

_listener_id protected_oe property

protected int _listener_id
return int

_listener_map static_oe protected_oe property

static protected Hashtable,System.Collections _listener_map
return System.Collections.Hashtable

_ploss_prob protected_oe property

protected double _ploss_prob
return double

_rand protected_oe property

protected Random,System _rand
return System.Random

_sync protected_oe property

protected object _sync
return object

_tas protected_oe property

protected ArrayList,System.Collections _tas
return System.Collections.ArrayList

_use_delay protected_oe property

protected bool _use_delay
return bool