1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
9 package org.simgrid.surf;
12 public static Object getAction(long jarg1) {
13 return SurfJNI.getAction(jarg1);
16 public static Object getCpuModelDirector(long jarg1) {
17 return SurfJNI.getCpuModelDirector(jarg1);
20 public static Object getCpuDirector(long jarg1) {
21 return SurfJNI.getCpuDirector(jarg1);
24 public static Object getCpuActionDirector(long jarg1) {
25 return SurfJNI.getCpuActionDirector(jarg1);
30 * @return The current simulated time
32 public static double getClock() {
33 return SurfJNI.getClock();
36 public static void clean() {
40 public static CpuModel getCpuModel() {
41 long cPtr = SurfJNI.getCpuModel();
42 return (CpuModel)Surf.getCpuModelDirector(cPtr);
45 public static void setCpuModel(CpuModel cpuModel) {
46 SurfJNI.setCpuModel(CpuModel.getCPtr(cpuModel), cpuModel);
49 public static void setCpu(String name, Cpu cpu) {
50 SurfJNI.setCpu(name, Cpu.getCPtr(cpu), cpu);
53 public static NetworkLink[] getRoute(String srcName, String dstName) {
54 return NetworkLink.cArrayWrap(SurfJNI.getRoute(srcName, dstName), false);