Class ShutdownVM

java.lang.Object
org.btrplace.scheduler.choco.transition.ShutdownVM
All Implemented Interfaces:
Transition<VMState>, VMTransition

public class ShutdownVM
extends Object
implements VMTransition
Model an action that stop a running VM. An estimation of the action duration must be provided through a ActionDurationEvaluator accessible from ReconfigurationProblem.getDurationEvaluators() with the key ShutdownVM.class

If the reconfiguration problem has a solution, a ShutdownVM action is inserted into the resulting reconfiguration plan.

Author:
Fabien Hermenier
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  ShutdownVM.Builder
    The builder devoted to a running -> ready transition.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static String VAR_PREFIX
    The prefix to use for the variables
  • Constructor Summary

    Constructors 
    Constructor Description
    ShutdownVM​(ReconfigurationProblem p, VM e)
    Make a new model.
  • Method Summary

    Modifier and Type Method Description
    Slice getCSlice()
    Get the slice denoting the possible current placement of the subject on a node.
    Slice getDSlice()
    Get the slice denoting the possible future placement off the subject
    org.chocosolver.solver.variables.IntVar getDuration()
    Get the action duration.
    org.chocosolver.solver.variables.IntVar getEnd()
    Get the moment the action ends.
    VMState getFutureState()
    Get the future VM state.
    VMState getSourceState()
    Get the VM initial state.
    org.chocosolver.solver.variables.IntVar getStart()
    Get the moment the action starts.
    org.chocosolver.solver.variables.BoolVar getState()
    Get the next state of the subject manipulated by the action.
    VM getVM()
    Get the VM manipulated by the action.
    boolean insertActions​(org.chocosolver.solver.Solution s, ReconfigurationPlan plan)
    Insert into a plan the actions resulting from the model.
    boolean isManaged()
    Tell if this actions allow the management of the VM.
    String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait