lib/Validation.js
/**
 * Validation function used to assert structure and value of Machine's properties
 * @param name the name of the validation
 * @param implementation the implementation (must be a function)
 * @constructor
 */
Validation function used to assert structure and value of Machine's properties
@param name the name of the validation
@param implementation the implementation (must be a function)
@constructor
Validation function used to assert structure and value of Machine ' s properties @param name the name of the validation @param implementation the implementation ( must be a function ) @constructor
function Validation(name, implementation) {
    if (!name) throw new Error("ERROR: Name must be provided when constructing a Validation");
    if (!implementation || !(typeof implementation === "function")) throw new Error("ERROR: Value must be provided when constructing a Validation, and it must be a function");
    this._name = name;
    this._implementation = implementation;
}
function Validation ( name , implementation ) { if ( ! name ) throw new Error ( "ERROR: Name must be provided when constructing a Validation" ) ; if ( ! implementation || ! ( typeof implementation === "function" ) ) throw new Error ( "ERROR: Value must be provided when constructing a Validation, and it must be a function" ) ; this . _name = name ; this . _implementation = implementation ; }
Validation function used to assert structure and value of Machine's properties
 @param name the name of the validation
 @param implementation the implementation (must be a function)
 @constructor
Validation function used to assert structure and value of Machine ' s properties @param name the name of the validation @param implementation the implementation ( must be a function ) @constructor