#include <network_ns3.hpp>
|
| | NetworkNS3Model () |
| |
| | ~NetworkNS3Model () |
| |
| Link * | createLink (const char *name, double bandwidth, double latency, e_surf_link_sharing_policy_t policy) override |
| | Create a Link. More...
|
| |
| Action * | communicate (s4u::Host *src, s4u::Host *dst, double size, double rate) override |
| | Create a communication between two hosts. More...
|
| |
| double | nextOccuringEvent (double now) override |
| | Share the resources between the actions. More...
|
| |
| bool | nextOccuringEventIsIdempotent () |
| | 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 () override |
| | 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 | nextOccuringEventFull (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 | nextOccuringEventLazy (double now) |
| |
| virtual void | updateActionsStateLazy (double now, double delta) |
| |
| virtual void | updateActionsStateFull (double now, double delta) |
| |
◆ NetworkNS3Model()
| simgrid::surf::NetworkNS3Model::NetworkNS3Model |
( |
| ) |
|
◆ ~NetworkNS3Model()
| simgrid::surf::NetworkNS3Model::~NetworkNS3Model |
( |
| ) |
|
◆ createLink()
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.
◆ communicate()
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.
◆ nextOccuringEvent()
| double simgrid::surf::NetworkNS3Model::nextOccuringEvent |
( |
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.
◆ nextOccuringEventIsIdempotent()
| bool simgrid::surf::NetworkNS3Model::nextOccuringEventIsIdempotent |
( |
| ) |
|
|
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.
Reimplemented from simgrid::surf::Model.
◆ updateActionsState()
| 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: