public class BasicDataSample extends Object implements DataSample
Constructor and Description |
---|
BasicDataSample()
Construct a new
BasicDataSample . |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all values from the data sample.
|
Object |
getValue(String var)
Get the value associated with the specified variable.
|
void |
putValue(String var,
double value)
Store a double value in the data sample.
|
void |
putValue(String var,
int value)
Store an integer value in the data sample.
|
void |
removeValue(String var)
Remove a value from the data sample.
|
public BasicDataSample()
BasicDataSample
.public Object getValue(String var)
DataSample
getValue
in interface DataSample
var
- The variable name.null
if the variable
was not found or has no value.public void putValue(String var, int value)
var
- The variable name.value
- The variable value.public void putValue(String var, double value)
var
- The variable name.value
- The variable value.public void removeValue(String var)
var
- The variable name.public void clear()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses