Class DSFunctionRegistry

java.lang.Object
org.yamcs.studio.autocomplete.sim.DSFunctionRegistry

public class DSFunctionRegistry extends Object
The registry to add functions that will be used by the auto-complete.
  • Constructor Details

    • DSFunctionRegistry

      public DSFunctionRegistry()
  • Method Details

    • getDefault

      public static DSFunctionRegistry getDefault()
      Returns the default data source function registry.
      Returns:
      the default registry
    • registerDSFunctionSet

      public void registerDSFunctionSet(DSFunctionSet functionSet)
      Registers a formula set.
      Parameters:
      functionSet - a formula set
    • listFunctionSets

      public Set<String> listFunctionSets()
      Returns the names of all the registered function sets.
      Returns:
      the names of the registered function sets
    • findFunctionSet

      public DSFunctionSet findFunctionSet(String name)
      Returns the registered function set with the given name.
      Parameters:
      name - the function set name
      Returns:
      the set or null