Interface MisplacedVMsEstimator

All Known Subinterfaces:
AliasedCumulatives, ChocoConstraint, ChocoView, CObjective, Cumulatives
All Known Implementing Classes:
AbstractCumulatives, CAmong, CBan, CDeadline, CFence, CGather, CKilled, CLonely, CMaxOnline, CMinMigrations, CMinMTTR, CMinMTTRMig, CNetwork, CNoDelay, COffline, COnline, COverbook, CPowerView, CPrecedence, CPreserve, CQuarantine, CReady, CResourceCapacity, CRoot, CRunning, CRunningCapacity, CSchedule, CSequentialVMTransitions, CSerialize, CShareableResource, CSleeping, CSplit, CSplitAmong, CSpread, CSync, DefaultAliasedCumulatives, DefaultCumulatives, Packing, VectorPacking
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface MisplacedVMsEstimator
An interface to specify an object that can estimated a supposed set of misplaced VMs in a model.

This information will be used by the ChocoScheduler to restrict the amount of VMs to consider in the scheduler to a minimum.

The set of mis-placed VMs is not necessarily optimal but it must be good enough to be able to compute a solution by only managing these VMs.

Author:
Fabien Hermenier
  • Method Summary

    Modifier and Type Method Description
    Set<VM> getMisPlacedVMs​(Instance i)
    Get the VMs that are supposed to be mis-placed.
  • Method Details

    • getMisPlacedVMs

      Set<VM> getMisPlacedVMs​(Instance i)
      Get the VMs that are supposed to be mis-placed.
      Parameters:
      i - the instance to inspect
      Returns:
      a set of VMs identifier that may be empty (when no VMs are misplaced)