#include <network_ns3.hpp>
|
| NetworkNS3Model () |
|
| ~NetworkNS3Model () |
|
Link * | createLink (const char *name, double bandwidth, double latency, e_surf_link_sharing_policy_t policy, xbt_dict_t properties) override |
| Create a Link. More...
|
|
Action * | communicate (NetCard *src, NetCard *dst, double size, double rate) |
| Create a communication between two hosts. More...
|
|
double | next_occuring_event (double now) override |
| Share the resources between the actions. More...
|
|
bool | next_occuring_event_isIdempotent () |
| Returns whether this model have an idempotent shareResource() More...
|
|
void | updateActionsState (double now, double delta) override |
| Update action to the current time. More...
|
|
| NetworkModel () |
| Constructor. More...
|
|
| ~NetworkModel () |
| Destructor. More...
|
|
virtual double | latencyFactor (double size) |
| Get the right multiplicative factor for the latency. More...
|
|
virtual double | bandwidthFactor (double size) |
| Get the right multiplicative factor for the bandwidth. More...
|
|
virtual double | bandwidthConstraint (double rate, double bound, double size) |
| Get definitive bandwidth. More...
|
|
double | next_occuring_event_full (double now) override |
|
| Model () |
|
virtual | ~Model () |
|
virtual ActionList * | getReadyActionSet () |
| Get the set of actions in ready state. More...
|
|
virtual ActionList * | getRunningActionSet () |
| Get the set of actions in running state. More...
|
|
virtual ActionList * | getFailedActionSet () |
| Get the set of actions in failed state. More...
|
|
virtual ActionList * | getDoneActionSet () |
| Get the set of actions in done state. More...
|
|
virtual ActionLmmListPtr | getModifiedSet () |
| Get the set of modified actions. More...
|
|
lmm_system_t | getMaxminSystem () |
| Get the maxmin system of the current Model. More...
|
|
e_UM_t | getUpdateMechanism () |
| Get the update mechanism of the current Model. More...
|
|
xbt_heap_t | getActionHeap () |
| Get Action heap. More...
|
|
virtual double | next_occuring_event_lazy (double now) |
|
double | shareResourcesMaxMin (ActionList *running_actions, lmm_system_t sys, void(*solve)(lmm_system_t)) |
|
virtual void | updateActionsStateLazy (double now, double delta) |
|
virtual void | updateActionsStateFull (double now, double delta) |
|
simgrid::surf::NetworkNS3Model::NetworkNS3Model |
( |
| ) |
|
simgrid::surf::NetworkNS3Model::~NetworkNS3Model |
( |
| ) |
|
Create a Link.
- Parameters
-
name | The name of the Link |
bandwidth | The initial bandwidth of the Link in bytes per second |
latency | The initial latency of the Link in seconds |
policy | The sharing policy of the Link |
Implements simgrid::surf::NetworkModel.
Action * simgrid::surf::NetworkNS3Model::communicate |
( |
NetCard * |
src, |
|
|
NetCard * |
dst, |
|
|
double |
size, |
|
|
double |
rate |
|
) |
| |
|
virtual |
Create a communication between two hosts.
It makes calls to the routing part, and execute the communication between the two end points.
- Parameters
-
src | The source of the communication |
dst | The destination of the communication |
size | The size of the communication in bytes |
rate | Allows to limit the transfer rate. Negative value means unlimited. |
- Returns
- The action representing the communication
Implements simgrid::surf::NetworkModel.
double simgrid::surf::NetworkNS3Model::next_occuring_event |
( |
double |
now | ) |
|
|
overridevirtual |
Share the resources between the actions.
- Parameters
-
now | The current time of the simulation |
- Returns
- The delta of time till the next action will finish
Reimplemented from simgrid::surf::Model.
bool simgrid::surf::NetworkNS3Model::next_occuring_event_isIdempotent |
( |
| ) |
|
|
inlinevirtual |
Returns whether this model have an idempotent shareResource()
The only model that is not is NS3: computing the next timestamp moves the model up to that point, so we need to call it only when the next timestamp of other sources is computed.
Implements simgrid::surf::Model.
void simgrid::surf::NetworkNS3Model::updateActionsState |
( |
double |
now, |
|
|
double |
delta |
|
) |
| |
|
overridevirtual |
Update action to the current time.
- Parameters
-
now | The current time of the simulation |
delta | The delta of time since the last update |
Reimplemented from simgrid::surf::Model.
The documentation for this class was generated from the following files: