restore method

void restore(
  1. ReplacementPolicyModelImage image
)

Restores an image from the same algorithm and geometry.

Implementation

void restore(ReplacementPolicyModelImage image) {
  if (image._kind != kind || image._entryCount != entryCount) {
    throw ArgumentError.value(image, 'image', 'Invalid replacement state.');
  }
  _setState(image._state);
  _refresh();
}