Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / src / bindings / java / surfJAVA_wrap.h
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.11
4  *
5  * This file is not intended to be easily readable and contains a number of
6  * coding conventions designed to improve portability and efficiency. Do not make
7  * changes to this file unless you know what you are doing--modify the SWIG
8  * interface file instead.
9  * ----------------------------------------------------------------------------- */
10
11 #ifndef SWIG_Surf_WRAP_H_
12 #define SWIG_Surf_WRAP_H_
13
14 class SwigDirector_Plugin : public Plugin, public Swig::Director {
15
16 public:
17     void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
18     SwigDirector_Plugin(JNIEnv *jenv);
19     virtual ~SwigDirector_Plugin();
20     virtual void cpuCreatedCallback(Cpu *cpu);
21     virtual void cpuDestructedCallback(Cpu *cpu);
22     virtual void cpuStateChangedCallback(Cpu *cpu, e_surf_resource_state_t arg1, e_surf_resource_state_t arg2);
23     virtual void cpuActionStateChangedCallback(CpuAction *action, e_surf_action_state_t arg1, e_surf_action_state_t arg2);
24     virtual void networkLinkCreatedCallback(NetworkLink *link);
25     virtual void networkLinkDestructedCallback(NetworkLink *link);
26     virtual void networkLinkStateChangedCallback(NetworkLink *link, e_surf_resource_state_t arg1, e_surf_resource_state_t arg2);
27     virtual void networkActionStateChangedCallback(NetworkAction *action, e_surf_action_state_t old, e_surf_action_state_t cur);
28     virtual void networkCommunicateCallback(NetworkAction *action, RoutingEdge *src, RoutingEdge *dst, double size, double rate);
29 public:
30     bool swig_overrides(int n) {
31       return (n < 9 ? swig_override[n] : false);
32     }
33 protected:
34     bool swig_override[9];
35 };
36
37 class SwigDirector_CpuModel : public CpuModel, public Swig::Director {
38
39 public:
40     void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
41     SwigDirector_CpuModel(JNIEnv *jenv, char const *name);
42     virtual double shareResources(double now);
43     virtual double shareResourcesLazy(double now);
44     virtual double shareResourcesFull(double now);
45     virtual void updateActionsState(double now, double delta);
46     virtual void updateActionsStateLazy(double now, double delta);
47     virtual void updateActionsStateFull(double now, double delta);
48     virtual ActionList *getRunningActionSet();
49     virtual ~SwigDirector_CpuModel();
50     virtual Cpu *createResource(char const *name, DoubleDynar power_peak, int pstate, double power_scale, tmgr_trace *power_trace, int core, e_surf_resource_state_t state_initial, tmgr_trace *state_trace, s_xbt_dict *cpu_properties);
51     virtual void addTraces();
52 public:
53     bool swig_overrides(int n) {
54       return (n < 9 ? swig_override[n] : false);
55     }
56 protected:
57     bool swig_override[9];
58 };
59
60 class SwigDirector_Cpu : public Cpu, public Swig::Director {
61
62 public:
63     void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
64     SwigDirector_Cpu(JNIEnv *jenv, Model *model, char const *name, s_xbt_dict *props, lmm_constraint *constraint, int core, double powerPeak, double powerScale);
65     SwigDirector_Cpu(JNIEnv *jenv, Model *model, char const *name, s_xbt_dict *props, int core, double powerPeak, double powerScale);
66     virtual bool isUsed();
67     virtual e_surf_resource_state_t getState();
68     virtual void updateState(tmgr_trace_event *event_type, double value, double date);
69     virtual ~SwigDirector_Cpu();
70     virtual double getCurrentPowerPeak();
71     virtual CpuAction *execute(double size);
72     virtual CpuAction *sleep(double duration);
73     virtual int getCore();
74     virtual double getSpeed(double load);
75     virtual double getAvailableSpeed();
76     virtual double getPowerPeakAt(int pstate_index);
77     virtual int getNbPstates();
78     virtual void setPowerPeakAt(int pstate_index);
79 public:
80     bool swig_overrides(int n) {
81       return (n < 12 ? swig_override[n] : false);
82     }
83 protected:
84     bool swig_override[12];
85 };
86
87 class SwigDirector_CpuAction : public CpuAction, public Swig::Director {
88
89 public:
90     void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
91     SwigDirector_CpuAction(JNIEnv *jenv, Model *model, double cost, bool failed);
92     virtual ~SwigDirector_CpuAction();
93     virtual double getRemains();
94     virtual void setPriority(double priority);
95     virtual void setState(e_surf_action_state_t state);
96 public:
97     bool swig_overrides(int n) {
98       return (n < 3 ? swig_override[n] : false);
99     }
100 protected:
101     bool swig_override[3];
102 };
103
104
105 #endif