#ifndef STORAGE_INTERFACE_HPP_
#define STORAGE_INTERFACE_HPP_
-extern xbt_dynar_t mount_list;
-
namespace simgrid {
namespace surf {
/** @ingroup SURF_callbacks
* @brief Callbacks handler which emit the callbacks after StorageAction State changed *
- * @details Callback functions have the following signature: `void(StorageAction *action, e_surf_action_state_t old, e_surf_action_state_t current)`
+ * @details Callback functions have the following signature: `void(StorageAction *action, simgrid::surf::Action::State old, simgrid::surf::Action::State current)`
*/
-XBT_PUBLIC_DATA(simgrid::xbt::signal<void(simgrid::surf::StorageAction*, e_surf_action_state_t, e_surf_action_state_t)>) storageActionStateChangedCallbacks;
+XBT_PUBLIC_DATA(simgrid::xbt::signal<void(simgrid::surf::StorageAction*, simgrid::surf::Action::State, simgrid::surf::Action::State)>) storageActionStateChangedCallbacks;
/*********
* Model *
/** @brief Check if the Storage is used (if an action currently uses its resources) */
bool isUsed() override;
- /**
- * @brief Update the state of the current Storage
- *
- * @param event_type [description]
- * @param value [description]
- * @param date [description]
- */
- void apply_event(tmgr_trace_iterator_t event_type, double value) override;
+ void apply_event(tmgr_trace_iterator_t event, double value) override;
void turnOn() override;
void turnOff() override;
StorageAction(Model *model, double cost, bool failed, lmm_variable_t var,
Storage *storage, e_surf_action_storage_type_t type);
- void setState(e_surf_action_state_t state);
+ void setState(simgrid::surf::Action::State state) override;
e_surf_action_storage_type_t m_type;
Storage *p_storage;