rula
Version:
rulaは人間工学評価ツール「RULA」を行えるアプリケーションです。<br>作業者の姿勢を入力することで、作業の負担を評価できます。
21 lines (16 loc) • 429 B
JavaScript
import { QuestionController } from "./question_controller.js";
export class AssessmentPart {
#score;
#partName;
#answers;
constructor(partName) {
this.#partName = partName;
}
get score() {
this.#score = this.#answers.reduce((sum, answer) => sum + answer.score, 0);
return this.#score;
}
question = async () => {
this.#answers = await QuestionController.promptQuestions(this.#partName);
};
}