Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

[TASK]: Stub model stratification API endpoint #12

Description

@bencodrington

Description
Create an endpoint to solidify the proposed API for stratifying two models in Petri Net form.
Should not rely on any integration with Catlab or TA2 performers.

The input payload should include:

  • modelA: a JSON-serialized petri net
  • modelB: a JSON-serialized petri net
  • typing information
  • potentially other inputs

This proposed list of inputs will become more fleshed out as we make progress on #6.

Behaviour and return value
Unlike the equivalent ticket for composition, stratification is non-trivial to implement, so the stub will be more barebones.

For now, simply return a hardcoded JSON-serialized petri net, created by stratifying two simple models (like SIR and Q-NotQ) by hand.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions