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
69 void send(const char* alias)
\r
70 throw(NativeException);
\r
72 void send(double timeout)
\r
73 throw(NativeException);
\r
75 void send(const char* alias, double timeout)
\r
76 throw(NativeException);
\r
78 void sendBounded(double maxRate)
\r
79 throw(NativeException);
\r
81 void sendBounded(const char* alias, double maxRate)
\r
82 throw(NativeException);
\r
84 static Task& receive(void)
\r
85 throw(NativeException);
\r
87 static Task& receive(const char* alias)
\r
88 throw(NativeException);
\r
90 static Task& receive(const char* alias, double timeout)
\r
91 throw(NativeException);
\r
93 static Task& receive(const char* alias, const Host& rHost)
\r
94 throw(NativeException);
\r
96 static Task& receive(const char* alias, double timeout, const Host& rHost)
\r
97 throw(NativeException);
\r
99 static bool listen(void)
\r
100 throw(NativeException);
\r
102 static bool listen(const char* alias)
\r
103 throw(NativeException);
\r
105 static bool listenFrom(void)
\r
106 throw(NativeException);
\r
108 static bool listenFrom(const char* alias)
\r
109 throw(NativeException);
\r
112 static bool listenFromHost(const Host& rHost)
\r
113 throw(NativeException);
\r
115 static bool listenFromHost(const char* alias, const Host& rHost)
\r
116 throw(NativeException);
\r
122 m_task_t nativeTask;
\r
129 #endif // §MSG_TASK_HPP