Package jline.api.sn
Class SnNonmarkovToPh
java.lang.Object
jline.api.sn.SnNonmarkovToPh
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidrefuseUnconverted(NetworkStruct sn, String caller) Refuse a law thatconfig.nonmkv = "none"left without a phase-type representation.static NetworkStructsnNonmarkovToPh(NetworkStruct snInput, SolverOptions options) static NetworkStructsnNonmarkovToPh(NetworkStruct snInput, SolverOptions options, boolean keepDetTag) static NetworkStructsnNonmarkovToPh(NetworkStruct snInput, SolverOptions options, boolean keepDetTag, Boolean preserveDetOverride)
-
Method Details
-
snNonmarkovToPh
-
snNonmarkovToPh
public static NetworkStruct snNonmarkovToPh(NetworkStruct snInput, SolverOptions options, boolean keepDetTag) - Parameters:
keepDetTag- when true (MAM only), a converted DET keeps procid=DET (MAM needs this for exact deterministic dispatch) and other surrogates are tagged MAP with a phase-tracking local variable; when false (the default, matching MATLAB), the converted process is tagged PH like every other converted distribution, so the state-space generator treats its renewal-PH representation as a proper multi-phase process.
-
snNonmarkovToPh
public static NetworkStruct snNonmarkovToPh(NetworkStruct snInput, SolverOptions options, boolean keepDetTag, Boolean preserveDetOverride) - Parameters:
preserveDetOverride- the resolved value ofoptions.config.preserveDet, or null to read the option itself (treating an unset option as false, which is what every caller but the MAM steady-state analyzer wants). The MAM analyzer passes the value explicitly rather than assigning it intooptions.configbecauseoptionsis a shared reference here where MATLAB's struct is a value, so a mutation would leak into later solves on the same solver.
-
refuseUnconverted
Refuse a law thatconfig.nonmkv = "none"left without a phase-type representation. The conversion returns early under "none", so a Gamma, Weibull, Det, ... keeps its raw parameters, and a CTMC has no phases to enumerate for it. The refusal names the law by its FeatureSet name (LINE:unsupported:Gamma, ...), as MATLAB, python and C++ do.- Parameters:
sn- the struct the CTMC is about to solvecaller- the refusing solver, for the error message
-