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 * An network action created by network model
15 public class NetworkAction extends Action {
16 private long swigCPtr;
18 protected NetworkAction(long cPtr, boolean cMemoryOwn) {
19 super(SurfJNI.NetworkAction_SWIGUpcast(cPtr), cMemoryOwn);
23 protected static long getCPtr(NetworkAction obj) {
24 return (obj == null) ? 0 : obj.swigCPtr;
27 protected void finalize() {
31 public synchronized void delete() {
35 SurfJNI.delete_NetworkAction(swigCPtr);
44 * @return The latency of the action
46 public double getLatency() {
47 return SurfJNI.NetworkAction_getLatency(swigCPtr, this);