Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
b4ef317ae5c36cd6e65f7ae61be7126db6d19a2b
[simgrid.git] / src / bindings / java / org / simgrid / surf / Surf.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.11
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8
9 package org.simgrid.surf;
10
11 public class Surf {
12   public static Object getAction(long jarg1) {
13     return SurfJNI.getAction(jarg1);
14   }
15
16   public static Object getCpuModelDirector(long jarg1) {
17     return SurfJNI.getCpuModelDirector(jarg1);
18   }
19
20   public static Object getCpuDirector(long jarg1) {
21     return SurfJNI.getCpuDirector(jarg1);
22   }
23
24   public static Object getCpuActionDirector(long jarg1) {
25     return SurfJNI.getCpuActionDirector(jarg1);
26   }
27
28   
29   /**
30     * @return The current simulated time
31     */
32   public static double getClock() {
33     return SurfJNI.getClock();
34   }
35
36   public static void clean() {
37     SurfJNI.clean();
38   }
39
40   public static CpuModel getCpuModel() {
41   long cPtr = SurfJNI.getCpuModel();
42   return (CpuModel)Surf.getCpuModelDirector(cPtr);
43 }
44
45   public static void setCpuModel(CpuModel cpuModel) {
46     SurfJNI.setCpuModel(CpuModel.getCPtr(cpuModel), cpuModel);
47   }
48
49   public static void setCpu(String name, Cpu cpu) {
50     SurfJNI.setCpu(name, Cpu.getCPtr(cpu), cpu);
51   }
52
53   public static NetworkLink[] getRoute(String srcName, String dstName) {
54      return NetworkLink.cArrayWrap(SurfJNI.getRoute(srcName, dstName), false);
55 }
56
57 }