C# Class Brunet.Transport.SimulationEdgeListener

Inheritance: EdgeListener, IEdgeSendHandler
Show 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 static property

public static List> LatencyMap
return List>

_ba protected property

protected BufferAllocator _ba
return BufferAllocator

_edges protected property

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

_is_started protected property

protected int _is_started
return int

_listener_id protected property

protected int _listener_id
return int

_listener_map static protected property

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

_ploss_prob protected property

protected double _ploss_prob
return double

_rand protected property

protected Random,System _rand
return System.Random

_sync protected property

protected object _sync
return object

_tas protected property

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

_use_delay protected property

protected bool _use_delay
return bool