add_transition
Add a timed or immediate transition to a Petri net model, with configurable distribution, delay, priority, and probability for conflict resolution.
Instructions
Add a single transition (event) to the Petri net.
LOW-LEVEL TOOL — use only when no existing pattern covers the required topology. For standard constructs, prefer high-level pattern tools.
Layout: ALWAYS call find_free_position(near_element_id, direction) first to get collision-free coordinates, then pass the returned x and y here.
Args: name: Human-readable transition name distribution: Time distribution ("exp", "norm", "unif", "det"), omit for immediate mean_delay: Mean delay time in time_unit standard_deviation: For norm/unif distributions (in time_unit) priority: Firing priority (higher = fires first in conflict) probability: Firing probability for stochastic conflict resolution (0.0-1.0) time_unit: Unit for time values — "s", "min", "h" x: Canvas X coordinate (see list_elements for existing coords) y: Canvas Y coordinate
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| distribution | No | ||
| mean_delay | No | ||
| standard_deviation | No | ||
| priority | No | ||
| probability | No | ||
| time_unit | No | s | |
| x | No | ||
| y | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |