#include <network_constant.hpp>
|
| | NetworkConstantModel () |
| |
| | ~NetworkConstantModel () |
| |
| Action * | communicate (NetCard *src, NetCard *dst, double size, double rate) override |
| | 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 () override |
| | Returns whether this model have an idempotent shareResource() More...
|
| |
| void | updateActionsState (double now, double delta) override |
| | Update action to the current time. More...
|
| |
| Link * | createLink (const char *name, double bw, double lat, e_surf_link_sharing_policy_t policy, xbt_dict_t properties) override |
| | Create a Link. 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::NetworkConstantModel::NetworkConstantModel |
( |
| ) |
|
|
inline |
| simgrid::surf::NetworkConstantModel::~NetworkConstantModel |
( |
| ) |
|
|
inline |
| Action * simgrid::surf::NetworkConstantModel::communicate |
( |
NetCard * |
src, |
|
|
NetCard * |
dst, |
|
|
double |
size, |
|
|
double |
rate |
|
) |
| |
|
overridevirtual |
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::NetworkConstantModel::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::NetworkConstantModel::next_occuring_event_isIdempotent |
( |
| ) |
|
|
inlineoverridevirtual |
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::NetworkConstantModel::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.
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.
The documentation for this class was generated from the following files: