* Model *
*********/
-StorageModel::StorageModel() : Model()
+StorageModel::StorageModel() : Model(Model::UpdateAlgo::Full)
{
- maxminSystem_ = new simgrid::kernel::lmm::System(true /* lazy update */);
+ set_maxmin_system(new simgrid::kernel::lmm::System(true /* selective update */));
}
StorageModel::~StorageModel()
* Resource *
************/
-StorageImpl::StorageImpl(kernel::resource::Model* model, std::string name, lmm_system_t maxminSystem, double bread,
- double bwrite, std::string type_id, std::string content_name, sg_size_t size,
+StorageImpl::StorageImpl(kernel::resource::Model* model, std::string name, kernel::lmm::System* maxminSystem,
+ double bread, double bwrite, std::string type_id, std::string content_name, sg_size_t size,
std::string attach)
: Resource(model, name.c_str(), maxminSystem->constraint_new(this, std::max(bread, bwrite)))
, piface_(name, this)
storageDestructedCallbacks(this);
}
-bool StorageImpl::isUsed()
+bool StorageImpl::is_used()
{
THROW_UNIMPLEMENTED;
return false;
/**********
* Action *
**********/
-void StorageAction::setState(Action::State state)
+void StorageAction::set_state(Action::State state)
{
- Action::State old = getState();
- Action::setState(state);
+ Action::State old = get_state();
+ Action::set_state(state);
storageActionStateChangedCallbacks(this, old, state);
}
}