public abstract class PreRecordedMonitor extends AbstractVariableMonitor
getValueArray(java.lang.String).| Modifier and Type | Field and Description |
|---|---|
private Map<String,Integer> |
index
For each variable the current index in the value array.
|
private Map<String,Object[]> |
values
For each variable name the array of possible values.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PreRecordedMonitor()
Creates the empty index and values maps.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object[] |
getValueArray(String name)
For a named variable, return a sample array of possible values.
|
protected Map<String,Object> |
refreshVariables(Collection<String> vars)
We cycle through the pre-recorded values, restarting atr the beginning if
the end of the sequence has been reached.
|
addCacheChangedListener, addCacheListener, addMonitoring, getMonitored, getVariable, isRunning, removeCacheChangedListener, removeCacheListener, removeMonitoring, setLock, startMonitoring, stopMonitoringprivate final Map<String,Integer> index
protected PreRecordedMonitor()
protected Map<String,Object> refreshVariables(Collection<String> vars)
refreshVariables in class AbstractVariableMonitorvars - Names of all variables that should be refreshedprotected abstract Object[] getValueArray(String name)
name -