/** @brief Simulation Agent */
XBT_PUBLIC_CLASS Actor : public simgrid::xbt::Extendable<Actor>
{
+ friend Exec;
friend Mailbox;
friend simgrid::simix::ActorImpl;
friend simgrid::kernel::activity::MailboxImpl;
const char* getProperty(const char* key);
void setProperty(const char* key, const char* value);
Actor* restart();
+
+ ExecPtr exec_init(double flops_amounts);
+ ExecPtr exec_async(double flops_amounts);
};
/** @ingroup s4u_api
/** Block the actor, computing the given amount of flops */
XBT_PUBLIC(void) execute(double flop);
+
/** Block the actor, computing the given amount of flops at the given priority.
* An execution of priority 2 computes twice as fast as an execution at priority 1. */
XBT_PUBLIC(void) execute(double flop, double priority);