e_s4u_activity_state_t getState() {return state_;}
/** Get the remaining amount of work that this Activity entails. When it's 0, it's done. */
- double getRemains();
+ size_t getRemains();
/** Set the [remaining] amount of work that this Activity will entail
*
* It is forbidden to change the amount of work once the Activity is started */
- void setRemains(double remains);
+ void setRemains(size_t remains);
/** Put some user data onto the Activity */
void setUserData(void *data) {userData_=data;}
private:
simgrid::kernel::activity::ActivityImplPtr pimpl_ = nullptr;
e_s4u_activity_state_t state_ = inited;
- double remains_ = 0;
+ size_t remains_ = 0;
void *userData_ = nullptr;
}; // class