File: surfJAVA_wrap.h

package info (click to toggle)
simgrid 3.11.1-9
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 35,676 kB
  • ctags: 21,300
  • sloc: ansic: 127,311; xml: 87,221; cpp: 18,215; java: 5,446; perl: 4,294; f90: 4,088; fortran: 3,881; sh: 730; python: 414; makefile: 41; awk: 28; sed: 6
file content (105 lines) | stat: -rw-r--r-- 4,688 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.12
 *
 * This file is not intended to be easily readable and contains a number of
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG
 * interface file instead.
 * ----------------------------------------------------------------------------- */

#ifndef SWIG_Surf_WRAP_H_
#define SWIG_Surf_WRAP_H_

class SwigDirector_Plugin : public Plugin, public Swig::Director {

public:
    void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
    SwigDirector_Plugin(JNIEnv *jenv);
    virtual ~SwigDirector_Plugin();
    virtual void cpuCreatedCallback(Cpu *cpu);
    virtual void cpuDestructedCallback(Cpu *cpu);
    virtual void cpuStateChangedCallback(Cpu *cpu, e_surf_resource_state_t arg1, e_surf_resource_state_t arg2);
    virtual void cpuActionStateChangedCallback(CpuAction *action, e_surf_action_state_t arg1, e_surf_action_state_t arg2);
    virtual void networkLinkCreatedCallback(NetworkLink *link);
    virtual void networkLinkDestructedCallback(NetworkLink *link);
    virtual void networkLinkStateChangedCallback(NetworkLink *link, e_surf_resource_state_t arg1, e_surf_resource_state_t arg2);
    virtual void networkActionStateChangedCallback(NetworkAction *action, e_surf_action_state_t old, e_surf_action_state_t cur);
    virtual void networkCommunicateCallback(NetworkAction *action, RoutingEdge *src, RoutingEdge *dst, double size, double rate);
public:
    bool swig_overrides(int n) {
      return (n < 9 ? swig_override[n] : false);
    }
protected:
    bool swig_override[9];
};

class SwigDirector_CpuModel : public CpuModel, public Swig::Director {

public:
    void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
    SwigDirector_CpuModel(JNIEnv *jenv, char const *name);
    virtual double shareResources(double now);
    virtual double shareResourcesLazy(double now);
    virtual double shareResourcesFull(double now);
    virtual void updateActionsState(double now, double delta);
    virtual void updateActionsStateLazy(double now, double delta);
    virtual void updateActionsStateFull(double now, double delta);
    virtual ActionList *getRunningActionSet();
    virtual void addTraces();
    virtual ~SwigDirector_CpuModel();
    virtual Cpu *createCpu(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);
public:
    bool swig_overrides(int n) {
      return (n < 9 ? swig_override[n] : false);
    }
protected:
    bool swig_override[9];
};

class SwigDirector_Cpu : public Cpu, public Swig::Director {

public:
    void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
    SwigDirector_Cpu(JNIEnv *jenv, Model *model, char const *name, s_xbt_dict *props, lmm_constraint *constraint, int core, double powerPeak, double powerScale);
    SwigDirector_Cpu(JNIEnv *jenv, Model *model, char const *name, s_xbt_dict *props, int core, double powerPeak, double powerScale);
    virtual bool isUsed();
    virtual e_surf_resource_state_t getState();
    virtual void updateState(tmgr_trace_event *event_type, double value, double date);
    virtual ~SwigDirector_Cpu();
    virtual double getCurrentPowerPeak();
    virtual CpuAction *execute(double size);
    virtual CpuAction *sleep(double duration);
    virtual int getCore();
    virtual double getSpeed(double load);
    virtual double getAvailableSpeed();
    virtual double getPowerPeakAt(int pstate_index);
    virtual int getNbPstates();
    virtual void setPowerPeakAt(int pstate_index);
public:
    bool swig_overrides(int n) {
      return (n < 12 ? swig_override[n] : false);
    }
protected:
    bool swig_override[12];
};

class SwigDirector_CpuAction : public CpuAction, public Swig::Director {

public:
    void swig_connect_director(JNIEnv *jenv, jobject jself, jclass jcls, bool swig_mem_own, bool weak_global);
    SwigDirector_CpuAction(JNIEnv *jenv, Model *model, double cost, bool failed);
    virtual ~SwigDirector_CpuAction();
    virtual double getRemains();
    virtual void setPriority(double priority);
    virtual void setState(e_surf_action_state_t state);
public:
    bool swig_overrides(int n) {
      return (n < 3 ? swig_override[n] : false);
    }
protected:
    bool swig_override[3];
};


#endif