3 #include "simdag/simdag.h"
5 int main(int argc, char **argv) {
9 printf ("Usage: %s platform_file deployment_file\n", argv[0]);
10 printf ("example: %s msg_platform.xml msg_deployment.xml\n", argv[0]);
16 printf ("Usage: %s platform_file\n", argv[0]);
17 printf ("example: %s msg_platform.xml\n", argv[0]);
21 /* initialisation of SD */
24 /* creation of the environment */
25 char * platform_file = argv[1];
26 SD_create_environment(platform_file);
28 /* creation of the tasks and their dependencies */
29 SD_task_t task1 = SD_task_create("Task 1", NULL, 10.0);
32 SD_task_watch(task1, SD_SCHEDULED);
33 SD_task_watch(task1, SD_DONE);
34 SD_task_unwatch(task1, SD_SCHEDULED);
35 SD_task_watch(task1, SD_DONE);
36 SD_task_watch(task1, SD_SCHEDULED);
38 /* let's launch the simulation! */
41 SD_task_destroy(task1);