mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-12 03:13:24 +01:00
20 lines
No EOL
342 B
JavaScript
20 lines
No EOL
342 B
JavaScript
import {Generator} from "../id-generator";
|
|
import {Param as SolverParam} from '../constr/solver';
|
|
|
|
export class Param {
|
|
|
|
constructor(value) {
|
|
this.id = Generator.genID();
|
|
this.value = value;
|
|
this.solverParam = new SolverParam(value, this);
|
|
}
|
|
|
|
set(value) {
|
|
this.value = value;
|
|
}
|
|
|
|
get() {
|
|
return this.value;
|
|
}
|
|
|
|
} |