X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a8c316ac06c17368f52aff8c009e63421103cc24..77d095374d3f966ce0f54f3837116c73bc3e52e4:/src/bindings/java/org/simgrid/surf/Resource.java diff --git a/src/bindings/java/org/simgrid/surf/Resource.java b/src/bindings/java/org/simgrid/surf/Resource.java deleted file mode 100644 index dbac94f5b4..0000000000 --- a/src/bindings/java/org/simgrid/surf/Resource.java +++ /dev/null @@ -1,64 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.12 - * - * Do not make changes to this file unless you know what you are doing--modify - * the SWIG interface file instead. - * ----------------------------------------------------------------------------- */ - -package org.simgrid.surf; - -public class Resource { - private long swigCPtr; - protected boolean swigCMemOwn; - - protected Resource(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - protected static long getCPtr(Resource obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - SurfJNI.delete_Resource(swigCPtr); - } - swigCPtr = 0; - } - } - - public String getName() { - return SurfJNI.Resource_getName(swigCPtr, this); - } - - public boolean isUsed() { - return SurfJNI.Resource_isUsed(swigCPtr, this); - } - - public Model getModel() { - long cPtr = SurfJNI.Resource_getModel(swigCPtr, this); - return (cPtr == 0) ? null : new Model(cPtr, false); - } - - public ResourceState getState() { - return ResourceState.swigToEnum(SurfJNI.Resource_getState(swigCPtr, this)); - } - - public LmmConstraint getConstraint() { - long cPtr = SurfJNI.Resource_getConstraint(swigCPtr, this); - return (cPtr == 0) ? null : new LmmConstraint(cPtr, false); - } - - public void updateState(TmgrTraceEvent event_type, double value, double date) { - SurfJNI.Resource_updateState(swigCPtr, this, TmgrTraceEvent.getCPtr(event_type), event_type, value, date); - } - -}