/** * Check the compatibility of the action with a source and a destination configuration. The VM * must be initially running and not be a part of the destination configuration * * @param src the source configuration * @param dst the configuration to reach * @return true if the action is compatible with the configurations */ @Override public boolean isCompatibleWith(Configuration src, Configuration dst) { return (!src.isRunning(getVirtualMachine()) || dst.isRunning(getVirtualMachine()) || dst.isWaiting(getVirtualMachine()) || dst.isSleeping(getVirtualMachine())); }