can define multiple properties. can see detailed view of chosen property.

This commit is contained in:
Joeri Exelmans 2025-11-06 16:25:48 +01:00
parent 1660b06064
commit c7e661eb61
31 changed files with 502 additions and 307 deletions

View file

@ -1,17 +1,18 @@
import { Plant } from "../Plant";
import { TimedReactive } from "@/statecharts/timed_reactive";
export const dummyExecution: TimedReactive<null> = {
initial: () => [[], null],
export const dummyExecution: TimedReactive<{}> = {
initial: () => [[], {}],
timeAdvance: () => Infinity,
intTransition: () => { throw new Error("dummy never makes intTransition"); },
extTransition: () => [[], null],
extTransition: () => [[], {}],
};
export const dummyPlant: Plant<null> = {
export const dummyPlant: Plant<{}, {}> = {
uiEvents: [],
inputEvents: [],
outputEvents: [],
execution: dummyExecution,
render: (props) => <></>,
}
cleanupState: ({}) => ({}),
render: ({}) => <></>,
};