Comments/Documentation
This commit is contained in:
parent
72a76e098b
commit
ac2b9d1d33
@ -4,7 +4,7 @@ import Recipe from "../Recipe.mjs";
|
|||||||
import Dish from "../Dish.mjs";
|
import Dish from "../Dish.mjs";
|
||||||
import {detectFileType} from "./FileType.mjs";
|
import {detectFileType} from "./FileType.mjs";
|
||||||
import chiSquared from "chi-squared";
|
import chiSquared from "chi-squared";
|
||||||
import potentialOps from "./Test.mjs";
|
import potentialOps from "./MagicObject.mjs";
|
||||||
import { isType } from "./FileType.mjs";
|
import { isType } from "./FileType.mjs";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
import OperationConfig from "../config/OperationConfig.json";
|
import OperationConfig from "../config/OperationConfig.json";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* An object used by magic to store the input/output criteria for valid operation results.
|
||||||
*/
|
*/
|
||||||
class potentialOps {
|
class potentialOps {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* PotentialOps constructor.
|
||||||
*
|
*
|
||||||
* @param prevOp
|
* @param prevOp
|
||||||
*/
|
*/
|
||||||
@ -24,6 +25,7 @@ class potentialOps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Sets the output regexes for the operation.
|
||||||
*
|
*
|
||||||
* @param outputRegexes
|
* @param outputRegexes
|
||||||
*/
|
*/
|
||||||
@ -33,6 +35,7 @@ class potentialOps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Sets the input regexes for the operation.
|
||||||
*
|
*
|
||||||
* @param inputRegexes
|
* @param inputRegexes
|
||||||
*/
|
*/
|
||||||
@ -42,14 +45,19 @@ class potentialOps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Returns the operations input regexes.
|
||||||
*
|
*
|
||||||
|
* @returns {Object[]}
|
||||||
*/
|
*/
|
||||||
getInputRegexes () {
|
getInputRegexes () {
|
||||||
|
console.log(typeof this.inputRegexes);
|
||||||
return this.inputRegexes;
|
return this.inputRegexes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Returns the operations output regexes.
|
||||||
*
|
*
|
||||||
|
* @returns {Object[]}
|
||||||
*/
|
*/
|
||||||
getOutputRegexes () {
|
getOutputRegexes () {
|
||||||
return this.outputRegexes;
|
return this.outputRegexes;
|
||||||
Loading…
x
Reference in New Issue
Block a user