public class RnaManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
RnaManager() |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull RnaEngine |
getDefault() |
static int |
getEngineCount()
Get the count of the registered engine
|
static <T> T |
getFunction(String name)
Get a function by its name.
|
static int |
getFunctionCount()
Get the count of the registered function
|
static @NotNull RnaEngine |
newEngine(String type)
Create a new engine of type.
|
static void |
putFunction(Map<String,Object> ctx)
Put functions to the context
|
static void |
register(NameEval fun)
Register a function with its name
|
static void |
register(RnaEngine engine)
Register an engine with its type
|
static void |
register(String name,
Function<?,?> fun)
Register a function with its name
|
static void |
register(String name,
JavaEval fun)
Register a function with its name
|
static void |
register(String name,
Supplier<?> fun)
Register a function with its name
|
static void |
setDefault(@NotNull RnaEngine engine)
Set and register the default engine to handle unknown type
|
@NotNull public static @NotNull RnaEngine newEngine(String type)
public static void register(RnaEngine engine)
public static <T> T getFunction(String name)
public static void register(String name, Supplier<?> fun)
public static void register(String name, Function<?,?> fun)
public static void register(NameEval fun)
public static int getEngineCount()
public static int getFunctionCount()
@NotNull public static @NotNull RnaEngine getDefault()
public static void setDefault(@NotNull
@NotNull RnaEngine engine)
Copyright © 2024. All rights reserved.