Class WoolVariableStore


  • public class WoolVariableStore
    extends Observable
    Interface class for WoolVariableStore's. A WoolVariableStore implementation acts as an interface between Wool scripts (and the variables used in e.g. "if" and "set" statements therein) and the dialogue execution engine.
    • Constructor Detail

      • WoolVariableStore

        public WoolVariableStore()
    • Method Detail

      • setValue

        public void setValue​(String name,
                             Object value,
                             WoolVariableStore.VariableSource source)
        Stores the given value under the given name in this WoolVariableStore.
        Parameters:
        name - the name of the variable to store.
        value - the value of the variable to store.
        source - the source (core or external)
      • getValue

        public Object getValue​(String name)
        Retrieves the variable identified by the given name, or returns null if no such variable is known.
        Parameters:
        name - the name of the variable to retrieve.
        Returns:
        the associated value of the variable (String, Number, Boolean, null)