Skip to content

Commit 9c2dd75

Browse files
committed
WIP: signed =
1 parent c8cc513 commit 9c2dd75

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

packages/frontend/src/stdlib/theories/polynomial-ode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default function createPolynomialODETheory(theoryMeta: TheoryMeta): Theor
3030
name: "Contribution",
3131
description: "Monomial contribution to ODE system",
3232
shortcut: ["C"],
33+
arrowStyle: "plus",
3334
},
3435
],
3536
modelAnalyses: [

packages/frontend/src/stdlib/theories/signed-polynomial-ode.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { ThSignedPolynomialODE } from "catlog-wasm";
22
import { Theory, type TheoryMeta } from "../../theory";
33
import * as analyses from "../analyses";
4+
import ObjectCellEditor from "../../model/object_cell_editor";
5+
import ContributionCellEditor from "../../model/contribution_cell_editor";
46

57
export default function createSignedPolynomialODETheory(theoryMeta: TheoryMeta): Theory {
68
const thSignedPolynomialODE = new ThSignedPolynomialODE();
@@ -13,23 +15,28 @@ export default function createSignedPolynomialODETheory(theoryMeta: TheoryMeta):
1315
{
1416
tag: "ObType",
1517
obType: { tag: "Basic", content: "State" },
18+
editor: ObjectCellEditor,
1619
name: "Variable",
17-
description: "Variable in ring of polynomials",
20+
description: "State variable in ODE system",
1821
shortcut: ["V"],
1922
},
2023
{
2124
tag: "MorType",
2225
morType: { tag: "Basic", content: "Contribution" },
26+
editor: ContributionCellEditor,
2327
name: "Positive contribution",
24-
description: "Additive monomial contribution to the system of ODEs",
25-
shortcut: ["C"],
28+
description: "Positive monomial contribution to ODE system",
29+
shortcut: ["P"],
30+
arrowStyle: "plus",
2631
},
2732
{
2833
tag: "MorType",
2934
morType: { tag: "Basic", content: "NegativeContribution" },
35+
editor: ContributionCellEditor,
3036
name: "Negative contribution",
31-
description: "Subtractive monomial contribution to the system of ODEs",
37+
description: "Negative monomial contribution to ODE system",
3238
shortcut: ["N"],
39+
arrowStyle: "minus",
3340
},
3441
],
3542
modelAnalyses: [

0 commit comments

Comments
 (0)