"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SetOrientationStep = void 0;
const MablStepV2_1 = require("../../MablStepV2");
const STEP_NAME = 'SetOrientation';
class SetOrientationStep extends MablStepV2_1.MablStepV2 {
    static stepName = STEP_NAME;
    static yamlMablScriptNames = [SetOrientationStep.stepName];
    static stepVersion = 2;
    constructor(descriptor) {
        super(SetOrientationStep.stepName, descriptor, 'set_orientation');
    }
    stepDescription() {
        return `Set orientation of device to ${this.descriptor.orientation.toLowerCase()}`;
    }
    static fromYaml(_stepName, stepDescriptor) {
        return new SetOrientationStep(stepDescriptor);
    }
    static create(descriptor) {
        descriptor.id = descriptor.id ?? MablStepV2_1.MablStepV2.generateStepId();
        return new SetOrientationStep(descriptor);
    }
}
exports.SetOrientationStep = SetOrientationStep;
