Package jline.unified
Object ModelRegistry
-
- All Implemented Interfaces:
public class ModelRegistryRegistry that maps model names to builder functions for unified cross-language testing.
This singleton class provides a registry that maps model names (as used in the unified JSON test definitions) to Java/Kotlin functions that create the corresponding Network objects. It delegates to the existing model implementations in jline.examples.java.basic.* and jline.examples.java.advanced.* packages.
Usage:
val registry = ModelRegistry.getInstance() val model = registry.getModel("oqn_basic")
-
-
Field Summary
Fields Modifier and Type Field Description public final static ModelRegistryINSTANCE
-
Method Summary
Modifier and Type Method Description final static ModelRegistrygetInstance()Get the singleton instance (for Java interop) final static NetworkgetModel(String name)Get a model by name. final static List<String>getAvailableModels()Get list of all registered model names final static BooleanhasModel(String name)Check if a model is registered -
-
Method Detail
-
getInstance
final static ModelRegistry getInstance()
Get the singleton instance (for Java interop)
-
getModel
final static Network getModel(String name)
Get a model by name.
- Parameters:
name- Model name as string (e.g.- Returns:
Network object configured for the model
-
getAvailableModels
final static List<String> getAvailableModels()
Get list of all registered model names
-
-
-
-