Package jadex.javaparser
Class SimpleValueFetcher
java.lang.Object
jadex.javaparser.SimpleValueFetcher
- All Implemented Interfaces:
jadex.common.IValueFetcher
Simple default implementation of a value fetcher useful for
basic usage scenarios or as a base for extending.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new fetcher.SimpleValueFetcher
(jadex.common.IValueFetcher parent) Create a new fetcher. -
Method Summary
-
Field Details
-
values
The values. -
parent
protected jadex.common.IValueFetcher parentThe parent fetcher if any.
-
-
Constructor Details
-
SimpleValueFetcher
public SimpleValueFetcher()Create a new fetcher. -
SimpleValueFetcher
public SimpleValueFetcher(jadex.common.IValueFetcher parent) Create a new fetcher.
-
-
Method Details
-
fetchValue
Fetch a value via its name.- Specified by:
fetchValue
in interfacejadex.common.IValueFetcher
- Parameters:
name
- The name.- Returns:
- The value.
-
setValue
Set a value.- Parameters:
key
- The key.value
- The value.
-
setValues
Set values.- Parameters:
values
- The values map.
-