X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8b170c65c7f1daa87221caaffee907b6cf73b01d..7dbf5c66d75338dce60fd2242be656eaa7e4d2da:/src/bindings/java/surf_swig.hpp diff --git a/src/bindings/java/surf_swig.hpp b/src/bindings/java/surf_swig.hpp index 2fad2c3e20..4211ce152b 100644 --- a/src/bindings/java/surf_swig.hpp +++ b/src/bindings/java/surf_swig.hpp @@ -1,3 +1,9 @@ +/* Copyright (c) 2014. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #include #include #include "src/surf/cpu_interface.hpp" @@ -5,11 +11,17 @@ #include "src/surf/maxmin_private.hpp" typedef xbt_dynar_t NetworkLinkDynar; +typedef ActionList *ActionArrayPtr; double getClock(); void clean(); +CpuModel *getCpuModel(); +void setCpuModel(CpuModel *cpuModel); + +void setCpu(char *name, Cpu *cpu); + NetworkLinkDynar getRoute(char *srcName, char *dstName); class Plugin { @@ -43,6 +55,6 @@ public: void activateNetworkActionStateChangedCallback(); virtual void networkActionStateChangedCallback(NetworkAction *action, e_surf_action_state_t old, e_surf_action_state_t cur) {} + void activateNetworkCommunicateCallback(); + virtual void networkCommunicateCallback(NetworkAction *action, RoutingEdge *src, RoutingEdge *dst, double size, double rate) {} }; - -