Uses of Class
jline.lang.lal.Composition
Packages that use Composition
Package
Description
LINE Agent Language (LAL) examples: finite agents composed by synchronized
actions (
Composition), solved by SolverAG, SolverCTMC,
SolverSSA and SolverMAM.LINE Agent Language (LAL): Markovian agents composed through atomic
multi-party synchronizations.
This package provides an implementation of SolverCTMC.
This package provides an implementation of SolverMAM.
This package provides an implementation of SolverSSA.
-
Uses of Composition in jline.examples.java.advanced.lal
Methods in jline.examples.java.advanced.lal that return CompositionModifier and TypeMethodDescriptionstatic CompositionAtomicTransfer.atomicTransfer()static CompositionAtomicTransfer.atomicTransfer(double rate) static CompositionAgSolverComparison.blocking()Producer/server handshake where both sides block.static CompositionAgSolverComparison.certified()Active/passive pair with an exact rational RCAT certificate.static CompositionForkJoin.forkJoin()The fork/join composition with delay rate 1 and branch rates 2 and 3.static CompositionForkJoin.forkJoin(double delayRate, double branch1Rate, double branch2Rate) static CompositionMixedComposition.gatedClosedNetwork()A closed think-and-serve network whose server departures pass a hand gate.static CompositionMixedComposition.immediateBranch()A worker that, after each job, chooses its next mode in zero time (weights 1:3).static CompositionMixedComposition.injectedMapSource()An open M/M/1 whose arrivals come from a two-phase hand MAP source.static CompositionAgSolverComparison.minimum()Two MMAP agents whose marks fire together at the minimum rate.Methods in jline.examples.java.advanced.lal with parameters of type CompositionModifier and TypeMethodDescriptionAgSolverComparison.compare(Composition model, String method) AgSolverComparison.compare(Composition, String, int, int)with 30000 events and seed 42.AgSolverComparison.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. -
Uses of Composition in jline.lang.lal
Methods in jline.lang.lal that return CompositionModifier and TypeMethodDescriptionadd(Object, String, Integer)with no prefix and no cutoff.Embed a LINE model; each of its nodes becomes an agent of the composition.static CompositionLoad a LAL declaration from a UTF-8 text file.static CompositionComposition.fromString(String source) Parse a LAL declaration into a programmatic composition.Composition.getLoweredSource()The composition this one was lowered from, ornull.Make actions internal: they still occur, but leave the action tables.static CompositionLalMamLowering.lower(Composition composition) Return a composition of plain agents equivalent tocomposition, orcompositionitself when it embeds nothing.Composition.refresh()Re-read every embedded LINE model after it was changed.Composition.setReward(String name, ToDoubleFunction<StateView> fn) Declare a state rewardfn(view), read back with the solvers'getAvgReward().Composition.synchronize(Object active, Object... passives) Synchronize one active action with one or more passive ones:synchronize(agent.action(a), other.action(p), ...): hand agents;synchronize(agent.action(a), comp.action(node, EventType.ARV, cls)): the hand action injects an arrival of an open class at the node;synchronize(comp.action(node, event, cls), agent.action(p), ...): the hand passives join every network event carrying that node key, and block it while they are disabled.Composition.synchronize(ActionRef active, ActionRef... passives) Synchronize one active action with one or more passive actions of hand agents.Composition.synchronizeMin(List<ActionRef> actives, List<ActionRef> passives) Synchronize active actions at the minimum enabled total rate.Composition.synchronizeMin(ActionRef... actives) Minimum synchronization of two or more active actions with no passive partners.Methods in jline.lang.lal with parameters of type CompositionModifier and TypeMethodDescriptionLalMamLowering.actionLabelMap(Composition lowered) agent.action -> node-event labelof a lowered composition (Pythonaction_label_map).static doubleLalTables.actValue(Composition composition, LalTable table, String mode, Object... args) Throughput of one action, or the sum over an open index family (Pythonact_value).LalTables.actValues(Composition composition, LalTable table, List<?> actions) Throughputs of several actions (PythongetActAvg); each element is a single name or anObject[]tuple of the arguments ofgetAvgAct.static CompositionLalMamLowering.lower(Composition composition) Return a composition of plain agents equivalent tocomposition, orcompositionitself when it embeds nothing.static LalTables.ResolvedLalTables.resolveLabels(Composition composition, String mode, Object... args) Resolve an action name (Pythonresolve_labels).static LalSsa.ResultLalSsa.simulate(Composition model, int events, long seed) static LalMdd.ResultLalMdd.solve(Composition model) static LalCtmc.ResultLalCtmc.solveComposition(Composition model) static LalCtmc.ResultLalCtmc.solveComposition(Composition model, Long maxStates) static booleanLalSolverSupport.truncated(Composition model) True when the composition carries a truncated source CTMC. -
Uses of Composition in jline.solvers.ag
Constructors in jline.solvers.ag with parameters of type CompositionModifierConstructorDescriptionSolverAG(Composition model, Object... args) Solve a finite LAL composition. -
Uses of Composition in jline.solvers.ag.lal
Methods in jline.solvers.ag.lal with parameters of type CompositionModifier and TypeMethodDescriptionstatic StringLalRcat.certifyResult(Composition model, LalAGResult result, double tol) Replace an approximate solution with an exactly verified RCAT solution (Pythoncertify_result);nullwhen certified, else the reason.LalRcat.compareWithCtmc(Composition model, LalAGResult result, Integer maxStates) Numerically compare the product of agent marginals with the exact finite CTMC (Pythoncompare_with_ctmc).static LalAGResultLalGrouped.solveComposition(Composition model, Object groups, int maxStates, double tol, int maxIter) Pythonsolve_composition(model, groups, max_states=256, tol=1e-4, max_iter=100, damping=.5).static LalAGResultLalGrouped.solveComposition(Composition model, Object groups, int maxStates, double tol, int maxIter, double damping) static LalAGResultLalMeanField.solveComposition(Composition model, double tol, int maxIter) Pythonsolve_composition(model, tol=, max_iter=, damping=.5).static LalAGResultLalMeanField.solveComposition(Composition model, double tol, int maxIter, double damping) static LalAGResultLalRcat.solveComposition(Composition model, double tol, int maxIter, String method) Finite-agent INAP / INAPRC reversed-rate fixed point (Pythonsolve_composition). -
Uses of Composition in jline.solvers.ctmc
Methods in jline.solvers.ctmc with parameters of type CompositionModifier and TypeMethodDescriptionbooleanSolverCTMC.supports(Composition model) Every finite LAL composition is accepted; method support is checked bySolverCTMC.supportsModelMethod(java.lang.String).Constructors in jline.solvers.ctmc with parameters of type CompositionModifierConstructorDescriptionSolverCTMC(Composition model, Object... args) Solves a LAL composition: exact enumeration of its finite CTMC (methodsdefaultandexact) or MDD aggregation (mdd). -
Uses of Composition in jline.solvers.mam
Constructors in jline.solvers.mam with parameters of type CompositionModifierConstructorDescriptionSolverMAM(Composition model, Object... args) Solves a LAL composition by matrix-analytic lowerings: finite and reachable QBDs, the infinite matrix-geometric QBD of one unbounded queue, and the Jackson, MAP-network (dec.source), parallel-QBD and marked-thinning lowerings of several unbounded queues. -
Uses of Composition in jline.solvers.mam.lal
Methods in jline.solvers.mam.lal with parameters of type CompositionModifier and TypeMethodDescriptionLalMamAnalyzer.capabilities(Composition model, LalMamAnalyzer.Options o, LalMamResult result, boolean resultCurrent) PythongetCompositionCapabilities.LalMamAnalyzer.diagnostics(Composition model, LalMamResult result, boolean compareCtmc, long maxStates) PythongetMAMDiagnostics.static LalTableLalMamAnalyzer.queueTable(Composition model, LalMamResult result) PythongetQueueTable: measures of the structured queue declarations.static LalMamResultLalMamAnalyzer.run(Composition model, LalMamAnalyzer.Options o) PythonSolverMAM.runAnalyzeron a composition.static StringLalMamAnalyzer.signature(Composition model, LalMamAnalyzer.Options options) Snapshot signature used to invalidate a cached result.static LalMamResultLalInfiniteQbd.solveComposition(Composition model, long maxPhases, long maxStates, String levelName, int maxIter, double tol) static LalMamResultLalJackson.solveComposition(Composition model, long maxStates) static LalMamResultLalMapNetwork.solveComposition(Composition model, double tol, int maxIter, boolean verbose, long maxPhases, String trafficMethod, String compressMethod, double fitTime, double fitTolerance) static LalMamResultLalMarkedNetwork.solveComposition(Composition model, double tol, int maxIter, boolean verbose, long maxPhases, String trafficMethod, String compressMethod, double fitTime, double fitTolerance) static LalMamResultLalParallelQbd.solveComposition(Composition model, long maxPhases, long maxStates, int maxIter, double tol) static LalMamResultLalQbd.solveComposition(Composition model, long maxPhases, long maxStates, String levelName) static LalMamResultLalReachableQbd.solveComposition(Composition model, long maxPhases, long maxStates, String levelName) static LalMamResultLalTraffic.solveReduced(Composition model, String levelName, String method, String compressMethod, double fitTime, double fitTolerance, long maxPhases, long maxStates, int maxIter, double tol) Explicitly fit independent offered streams, then solve the reduced QBD.static StringLalMamAnalyzer.supports(Composition model, LalMamAnalyzer.Options o, String method) PythonsupportsModelMethodon a composition:nullwhen the method applies, else the reason it does not. -
Uses of Composition in jline.solvers.ssa
Methods in jline.solvers.ssa with parameters of type CompositionModifier and TypeMethodDescriptionbooleanSolverSSA.supports(Composition model) Every finite LAL composition is accepted; method support is checked bySolverSSA.supportsModelMethod(java.lang.String).Constructors in jline.solvers.ssa with parameters of type CompositionModifierConstructorDescriptionSolverSSA(Composition model, Object... args) Simulates a LAL composition by serial SSA (serial,ssa,default) or the next-reaction method (nrm), with an optionalssa.prefix.