Class VariableStore

java.lang.Object
org.openbase.jul.processing.VariableStore
All Implemented Interfaces:
VariableProvider

public class VariableStore extends Object implements VariableProvider
  • Constructor Details

    • VariableStore

      public VariableStore(String name)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: VariableProvider
      Method return the name of this provider. The name should inform about the origin.
      Specified by:
      getName in interface VariableProvider
      Returns:
      the name as string.
    • getValue

      public String getValue(String key) throws org.openbase.jul.exception.NotAvailableException
      Resolves the value for the given key.
      Specified by:
      getValue in interface VariableProvider
      Parameters:
      key -
      Returns:
      Throws:
      org.openbase.jul.exception.NotAvailableException
    • getValues

      public Map<String,String> getValues(String variableContains)
      Method resolves all variables whose name contains the given identifier.
      Specified by:
      getValues in interface VariableProvider
      Parameters:
      variableContains - the identifier to select the variables.
      Returns:
      a map of the variable name and its current value.
    • store

      public void store(String key, String value)
      Stores the key value pair into the variable Store.
      Parameters:
      key -
      value -