Package nl.rrd.wool.execution
Class WoolVariableStore
- java.lang.Object
-
- java.util.Observable
-
- nl.rrd.wool.execution.WoolVariableStore
-
public class WoolVariableStore extends Observable
Interface class forWoolVariableStore's. AWoolVariableStoreimplementation acts as an interface between Wool scripts (and the variables used in e.g. "if" and "set" statements therein) and the dialogue execution engine.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classWoolVariableStore.Variablestatic classWoolVariableStore.VariableSource
-
Constructor Summary
Constructors Constructor Description WoolVariableStore()
-
Method Summary
Modifier and Type Method Description Map<String,Object>getModifiableMap(WoolVariableStore.VariableSource source)ObjectgetValue(String name)Retrieves the variable identified by the givenname, or returns null if no such variable is known.voidsetValue(String name, Object value, WoolVariableStore.VariableSource source)-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
Method Detail
-
setValue
public void setValue(String name, Object value, WoolVariableStore.VariableSource source)
- 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 givenname, or returns null if no such variable is known.
-
getModifiableMap
public Map<String,Object> getModifiableMap(WoolVariableStore.VariableSource source)
-
-