Skip to content
Snippets Groups Projects
Commit 154e6bc5 authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Fixed wrong oracles and a missing helper function in the periodic-signal code.

parent e3b7a791
No related branches found
No related tags found
No related merge requests found
/* IMPORTANT: Remove this directive when you start working on the code so that
* the linter will warn you about code style issues. */
/* eslint-disable no-unused-vars */
export const UNKNOWN = 'UNKNOWN'; export const UNKNOWN = 'UNKNOWN';
export const INCONSISTENT = 'INCONSISTENT'; export const INCONSISTENT = 'INCONSISTENT';
function join(leftPeriod, rightPeriod) {
if (leftPeriod === UNKNOWN) {
return rightPeriod;
}
if (rightPeriod === UNKNOWN || rightPeriod === leftPeriod) {
return leftPeriod;
}
return INCONSISTENT;
}
class MonoidElement { class MonoidElement {
constructor() { constructor() {
this.period = UNKNOWN; // Implement this constructor per the assignment instructions. this.period = UNKNOWN; // Implement this constructor per the assignment instructions.
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment