Class BootVM

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

public class BootVM
extends Object
implements VMTransition
Model a transition that allows a ready VP to be booted on a node. An estimation of the action duration must be provided through a ActionDurationEvaluator accessible from ReconfigurationProblem.getDurationEvaluators() with the key BootVM.class

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

Author:
Fabien Hermenier
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  BootVM.Builder
    The builder devoted to a ready to running 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
    BootVM​(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.

    Methods inherited from class java.lang.Object

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