X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/85e1d2c205ca99512b48bceca0f16677a401e233..6157f90cc9d3cce63b341338c15e91af8ccd6347:/src/surf/StorageImpl.cpp diff --git a/src/surf/StorageImpl.cpp b/src/surf/StorageImpl.cpp index 4d4d01afe9..999ec2a7a0 100644 --- a/src/surf/StorageImpl.cpp +++ b/src/surf/StorageImpl.cpp @@ -30,7 +30,7 @@ simgrid::xbt::signalconstraint_new(this, bread); constraintWrite_ = maxminSystem->constraint_new(this, bwrite); @@ -76,17 +76,17 @@ void StorageImpl::apply_event(tmgr_trace_event_t /*event*/, double /*value*/) THROW_UNIMPLEMENTED; } -void StorageImpl::turnOn() +void StorageImpl::turn_on() { - if (isOff()) { - Resource::turnOn(); + if (is_off()) { + Resource::turn_on(); storageStateChangedCallbacks(this, 0, 1); } } -void StorageImpl::turnOff() +void StorageImpl::turn_off() { - if (isOn()) { - Resource::turnOff(); + if (is_on()) { + Resource::turn_off(); storageStateChangedCallbacks(this, 1, 0); } }