Package jline.examples.java.advanced.lal
Class AgSolverComparison
java.lang.Object
jline.examples.java.advanced.lal.AgSolverComparison
Compare LAL AG methods with the exact finite CTMC (twin of
python/examples/advanced/lal/ag_solver_comparison.py) and with
seeded serial and NRM simulation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classState and action tables ofcompare(Composition, String, int, int). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Compositionblocking()Producer/server handshake where both sides block.static CompositionActive/passive pair with an exact rational RCAT certificate.compare(Composition model, String method) compare(Composition, String, int, int)with 30000 events and seed 42.compare(Composition model, String method, int events, int seed) Solvemodelwith the exact CTMC, SolverAG(method) and seeded serial and NRM simulation, and align their results by (Agent, State) and by Action.static voidstatic Compositionminimum()Two MMAP agents whose marks fire together at the minimum rate.static AgentTwo-phase MMAP agent:_phasefor the off-diagonal of D0, one marked action.
-
Field Details
-
COLUMNS
Column labels of the comparison tables, in the order of the Python twin.
-
-
Constructor Details
-
AgSolverComparison
public AgSolverComparison()
-
-
Method Details
-
certified
Active/passive pair with an exact rational RCAT certificate. -
blocking
Producer/server handshake where both sides block. -
mmapAgent
Two-phase MMAP agent:_phasefor the off-diagonal of D0, one marked action. -
minimum
Two MMAP agents whose marks fire together at the minimum rate. -
compare
public static AgSolverComparison.Comparison compare(Composition model, String method, int events, int seed) Solvemodelwith the exact CTMC, SolverAG(method) and seeded serial and NRM simulation, and align their results by (Agent, State) and by Action. Rows follow the CTMC order, then any row only another solver reports; a row a solver does not report is NaN. -
compare
compare(Composition, String, int, int)with 30000 events and seed 42. -
main
-