This source file includes following definitions.
- init
- getCount
- getCount
- isCancelled
- isCancelled
- getElements
- getElements
- getElementsX
- getElementsX
- setElements
- setElements
- setElementsX
- setElementsX
- setCancelled
- setCancelled
- getSource
- getTag
- getError
- getIndex
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 package mpi;
49
50
51
52
53 public final class Status
54 {
55 protected final long[] data;
56
57 static
58 {
59 init();
60 }
61
62 private static native void init();
63
64
65
66
67 protected Status()
68 {
69 data = new long[6];
70 }
71
72
73
74
75
76
77
78
79 public int getCount(Datatype datatype) throws MPIException
80 {
81 MPI.check();
82 int i = 0;
83 int source = (int)data[i++];
84 int tag = (int)data[i++];
85 int error = (int)data[i++];
86 int cancelled = (int)data[i++];
87 long ucount = data[i++];
88 return getCount(source, tag, error, cancelled, ucount, datatype.handle);
89 }
90
91 private native int getCount(
92 int source, int tag, int error,
93 int cancelled, long ucount, long datatype) throws MPIException;
94
95
96
97
98
99
100
101 public boolean isCancelled() throws MPIException
102 {
103 MPI.check();
104 int i = 0;
105 int source = (int)data[i++];
106 int tag = (int)data[i++];
107 int error = (int)data[i++];
108 int cancelled = (int)data[i++];
109 long ucount = data[i++];
110 return isCancelled(source, tag, error, cancelled, ucount);
111 }
112
113 private native boolean isCancelled(
114 int source, int tag, int error, int cancelled, long ucount)
115 throws MPIException;
116
117
118
119
120
121
122
123
124 public int getElements(Datatype datatype) throws MPIException
125 {
126 MPI.check();
127 int i = 0;
128 int source = (int)data[i++];
129 int tag = (int)data[i++];
130 int error = (int)data[i++];
131 int cancelled = (int)data[i++];
132 long ucount = data[i++];
133 return getElements(source, tag, error, cancelled, ucount, datatype.handle);
134 }
135
136 private native int getElements(
137 int source, int tag, int error,
138 int cancelled, long ucount, long datatype) throws MPIException;
139
140
141
142
143
144
145
146
147 public Count getElementsX(Datatype datatype) throws MPIException
148 {
149 MPI.check();
150 int i = 0;
151 int source = (int)data[i++];
152 int tag = (int)data[i++];
153 int error = (int)data[i++];
154 int cancelled = (int)data[i++];
155 long ucount = data[i++];
156 return getElementsX(source, tag, error, cancelled, ucount, datatype.handle);
157 }
158
159 private native Count getElementsX(
160 int source, int tag, int error,
161 int cancelled, long ucount, long datatype) throws MPIException;
162
163
164
165
166
167
168
169
170 public void setElements(Datatype datatype, int count) throws MPIException
171 {
172 MPI.check();
173 int i = 0;
174 int source = (int)data[i++];
175 int tag = (int)data[i++];
176 int error = (int)data[i++];
177 int cancelled = (int)data[i++];
178 long ucount = data[i++];
179 data[4] = setElements(source, tag, error, cancelled, ucount, datatype.handle, count);
180 }
181
182 private native int setElements(
183 int source, int tag, int error,
184 int cancelled, long ucount, long datatype, int count) throws MPIException;
185
186
187
188
189
190
191
192
193 public void setElementsX(Datatype datatype, Count count) throws MPIException
194 {
195 MPI.check();
196 int i = 0;
197 int source = (int)data[i++];
198 int tag = (int)data[i++];
199 int error = (int)data[i++];
200 int cancelled = (int)data[i++];
201 long ucount = data[i++];
202 data[4] = setElementsX(source, tag, error, cancelled, ucount, datatype.handle, count.getCount());
203 }
204
205 private native long setElementsX(
206 int source, int tag, int error,
207 int cancelled, long ucount, long datatype, long count) throws MPIException;
208
209
210
211
212
213
214
215 public void setCancelled(boolean flag) throws MPIException
216 {
217 MPI.check();
218 int i = 0;
219 int source = (int)data[i++];
220 int tag = (int)data[i++];
221 int error = (int)data[i++];
222 int cancelled = (int)data[i++];
223 long ucount = data[i++];
224
225 if(flag) {
226 setCancelled(source, tag, error, cancelled, ucount, 1);
227 data[3] = 1;
228 } else {
229 setCancelled(source, tag, error, cancelled, ucount, 0);
230 data[3] = 0;
231 }
232
233 }
234
235 private native void setCancelled(
236 int source, int tag, int error,
237 int cancelled, long ucount, int flag) throws MPIException;
238
239
240
241
242
243
244 public int getSource()
245 {
246 return (int)data[0];
247 }
248
249
250
251
252
253
254 public int getTag()
255 {
256 return (int)data[1];
257 }
258
259
260
261
262
263 public int getError()
264 {
265 return (int)data[2];
266 }
267
268
269
270
271
272 public int getIndex()
273 {
274 return (int)data[5];
275 }
276
277 }