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