Package jline.solvers.fluid.petri
Class PetriImmediate
java.lang.Object
jline.solvers.fluid.petri.PetriImmediate
The active set of the IMMEDIATE transitions, and the equations that pin their flows.
An immediate transition has no rate: its fluid limit is a FLOW, an algebraic unknown pinned by the constraint that its binding input place holds no mass,
phi_j >= 0, x_b = 0 for the coordinate b that binds mode jwith the GSPN conflict rule supplying the extra equation when two modes drain one place:
phi_j*weight_l = phi_l*weight_j among the enabled modes of highest firing priority, and
phi = 0 below it.
THE COUNT IS SQUARE BY CONSTRUCTION: V pins plus (F-V) ratio rows is F equations for F flows.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionboolean[]Which of them are currently firing.int[]The input coordinate each active mode is bound by; -1 when inactive.intNumber of immediate modes.static final intKinds of pinning equation.int[]The distinct bound coordinates, ascending.static final intThe equations.static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PetriImmediateimmediate(PetriTerms t, double[] x, PetriImmediate imm) Assign bindings and build the pinning equations at the markingx.
-
Field Details
-
PIN
public static final int PINKinds of pinning equation.- See Also:
-
RATIO
public static final int RATIO- See Also:
-
ZERO
public static final int ZERO- See Also:
-
n
public int nNumber of immediate modes. -
active
public boolean[] activeWhich of them are currently firing. -
bind
public int[] bindThe input coordinate each active mode is bound by; -1 when inactive. -
pins
public int[] pinsThe distinct bound coordinates, ascending. -
rows
The equations.
-
-
Constructor Details
-
PetriImmediate
public PetriImmediate()
-
-
Method Details
-
immediate
Assign bindings and build the pinning equations at the markingx.- Parameters:
t- the assembled termsx- the current stateimm- the previous immediate state, or null to start one- Returns:
- the immediate state, mutated in place when one was given
-