Package jline.unified

Object ModelRegistry

  • All Implemented Interfaces:

    
    public class ModelRegistry
    
                        

    Registry 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")
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static ModelRegistry getInstance() Get the singleton instance (for Java interop)
      final static Network getModel(String name) Get a model by name.
      final static List<String> getAvailableModels() Get list of all registered model names
      final static Boolean hasModel(String name) Check if a model is registered
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait