libpetri 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/debug/index.d.ts +179 -14
- package/dist/debug/index.js +186 -40
- package/dist/debug/index.js.map +1 -1
- package/dist/doclet/index.d.ts +1 -1
- package/dist/{event-store-Y8q_wapJ.d.ts → event-store-DePCZb33.d.ts} +1 -1
- package/dist/export/index.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +28 -6
- package/dist/index.js.map +1 -1
- package/dist/{petri-net-C3Jy5HCt.d.ts → petri-net-DrTpTRNy.d.ts} +22 -4
- package/dist/verification/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -364,10 +364,28 @@ declare class TransitionContext {
|
|
|
364
364
|
/** Returns declared read places (context, not consumed). */
|
|
365
365
|
readPlaces(): ReadonlySet<Place<any>>;
|
|
366
366
|
private requireRead;
|
|
367
|
-
/**
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
367
|
+
/**
|
|
368
|
+
* Add one or more output values to the same place in a single call.
|
|
369
|
+
*
|
|
370
|
+
* Validates the place once, then appends each value to the output
|
|
371
|
+
* collector. Calling with zero values is a no-op.
|
|
372
|
+
*
|
|
373
|
+
* @example
|
|
374
|
+
* ctx.output(outPlace, 'a', 'b', 'c');
|
|
375
|
+
* ctx.output(outPlace, ...someArray);
|
|
376
|
+
*
|
|
377
|
+
* @throws if place not declared as output.
|
|
378
|
+
*/
|
|
379
|
+
output<T>(place: Place<T>, ...values: T[]): this;
|
|
380
|
+
/**
|
|
381
|
+
* Add one or more pre-built output tokens to the same place in a single call.
|
|
382
|
+
*
|
|
383
|
+
* Validates the place once, then appends each token. Calling with zero
|
|
384
|
+
* tokens is a no-op.
|
|
385
|
+
*
|
|
386
|
+
* @throws if place not declared as output.
|
|
387
|
+
*/
|
|
388
|
+
outputToken<T>(place: Place<T>, ...tokens: Token<T>[]): this;
|
|
371
389
|
/** Returns declared output places. */
|
|
372
390
|
outputPlaces(): ReadonlySet<Place<any>>;
|
|
373
391
|
private requireOutput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Place, b as Transition, a as PetriNet, E as EnvironmentPlace } from '../petri-net-
|
|
1
|
+
import { P as Place, b as Transition, a as PetriNet, E as EnvironmentPlace } from '../petri-net-DrTpTRNy.js';
|
|
2
2
|
import { Expr, init, Bool, FuncDecl } from 'z3-solver';
|
|
3
3
|
|
|
4
4
|
/**
|