Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add "attach" attribute to storage tag in platform description
[simgrid.git] / src / surf / gtnets / gtnets_interface.h
1 /* Copyright (c) 2007-2010, 2013-2014. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 // Interface for GTNetS.
8 #ifndef _GTNETS_INTERFACE_H
9 #define _GTNETS_INTERFACE_H
10
11 #include "xbt/misc.h"           /* SG_{BEGIN,END}_DECL() */
12
13 SG_BEGIN_DECL()
14
15 int gtnets_initialize(int wsize);
16 int gtnets_add_link(int id, double bandwidth, double latency);
17 int gtnets_add_route(int src, int dst, int *links, int nlink);
18 int gtnets_add_router(int id);
19 int gtnets_add_onehop_route(int src, int dst, int link);
20 int gtnets_create_flow(int src, int dst, long datasize, void *metadata);
21 double gtnets_get_time_to_next_flow_completion();
22 double gtnets_run_until_next_flow_completion(void ***metadata,
23                                              int *number_of_flows);
24 double gtnets_get_flow_rx(void *metadata);
25
26 void gtnets_print_topology(void);
27
28 int gtnets_run(double delta);
29 int gtnets_finalize();
30 void gtnets_set_jitter(double);
31 void gtnets_set_jitter_seed(int);
32
33 SG_END_DECL()
34
35 #endif