consys-solver
Version:
consys-solver is a tool to find feasible model assignments for consys constraint systems.
28 lines (27 loc) • 686 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const Domain_1 = __importDefault(require("./Domain"));
/**
* Represents a domain with a constant value that cannot be changed.
*/
class Constant extends Domain_1.default {
/**
* Creates a new constant value.
*
* @param value value
*/
constructor(value) {
super();
this.value = value;
}
/**
* Returns the constant value.
*/
getValues() {
return [this.value];
}
}
exports.default = Constant;