4 // Compilation C++ recquise
\r
6 #error Process.hpp requires C++ compilation (use a .cxx suffix)
\r
14 // Default constructor.
\r
18 // Copy constructor.
\r
19 Task(const Task& rTask);
\r
23 throw(NativeException);
\r
25 // Other constructors.
\r
26 Task(const char* name, double computeDuration, double messageSize);
\r
28 Task(const char* name, Host* hosts, double* computeDurations, double* messageSizes);
\r
32 const char* getName(void) const;
\r
35 Process& getSender(void) const;
\r
37 Host& getSource(void) const
\r
38 throw(NativeException);
\r
40 double getComputeDuration(void) const;
\r
42 double getRemainingDuration(void) const;
\r
44 void setPriority(double priority);
\r
46 static Task& get(int channel)
\r
47 throw(NativeException);
\r
49 static Task& get(int channel, const Host& rHost)
\r
50 throw(NativeException);
\r
52 static Task& get(int channel, double timeout, const Host& rHost)
\r
53 throw(NativeException);
\r
55 static bool probe(int channel);
\r
57 static int probe(int channel, const Host& rHost);
\r
60 throw(NativeException);
\r
63 throw(NativeException);
\r
67 throw(NativeException);
\r
71 m_task_t nativeTask;
\r
78 #endif // §MSG_TASK_HPP