Class TagFilter<T>
java.lang.Object
jadex.providedservice.impl.search.TagFilter<T>
- All Implemented Interfaces:
jadex.model.IAsyncFilter<T>
Tag filter class. Allows for filtering according to a collection of tags.
Includes only services that contain all the tags.
Replaces variables to dynamic values and uses TagProperty.createRuntimeTags() for that.
-
Nested Class Summary
Nested classes/interfaces inherited from interface jadex.model.IAsyncFilter
jadex.model.IAsyncFilter.AlwaysFilter<E>, jadex.model.IAsyncFilter.NeverFilter<E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The argument constant.protected jadex.core.IComponent
The component.static final String
static final String
The name of the property.static final String
static final String
The key used to store the tags in the service property map.protected Collection
<String> The search tags.Fields inherited from interface jadex.model.IAsyncFilter
ALWAYS, NEVER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Collection
<String> Convert user defined tag(s) to collection.static Collection
<String> createRuntimeTags
(Object vals) Create a collection of tags and replace the variable values.jadex.future.IFuture
<Boolean> Filter if a service contains all the tags.getTags()
void
setTags
(Collection<String> tags) Sets the tags.
-
Field Details
-
NAME
The name of the property.- See Also:
-
ARGUMENT
The argument constant.- See Also:
-
SERVICE_PROPERTY_NAME
The key used to store the tags in the service property map.- See Also:
-
PLATFORM_NAME
- See Also:
-
JADEX_VERSION
- See Also:
-
component
protected jadex.core.IComponent componentThe component. -
tags
The search tags.
-
-
Constructor Details
-
TagFilter
public TagFilter() -
TagFilter
Create a new tag filter. -
TagFilter
Create a new tag filter.
-
-
Method Details
-
filter
Filter if a service contains all the tags.- Specified by:
filter
in interfacejadex.model.IAsyncFilter<T>
-
getTags
- Returns:
- the tags
-
setTags
Sets the tags.- Parameters:
tags
- The tags to set
-
createRuntimeTags
Create a collection of tags and replace the variable values. -
convertToCollection
Convert user defined tag(s) to collection.
-