]> AND Public Git Repository - simgrid.git/blobdiff - src/bindings/java/surf_swig.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Lots of bugfixes for the fat trees, it should at least not crash when using it
[simgrid.git] / src / bindings / java / surf_swig.hpp
index 2fad2c3e20c76bd31ca991c53d7200e7af2c14ba..4211ce152b35f76f6cca1f065f3c434edaebf60c 100644 (file)
@@ -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 <cstdio>
 #include <iostream>
 #include "src/surf/cpu_interface.hpp"
 #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) {}
 };
-
-