public interface Taggable
| Modifier and Type | Method and Description |
|---|---|
void |
addTag(Tag tag,
float support)
Adds a tag to this area.
|
Tag |
getMostSupportedTag()
Obtains the tag with the greatest support that is assigned to this area.
|
Set<Tag> |
getSupportedTags(float minSupport)
Obtains all the tags with the support greater or equal to the specified value.
|
Map<Tag,Float> |
getTags()
Obtains the list of tags assigned to this area and their support.
|
float |
getTagSupport(Tag tag)
Obtains the support of the given tag assignment
|
boolean |
hasTag(Tag tag)
Tests whether the area has this tag.
|
boolean |
hasTag(Tag tag,
float minSupport)
Tests whether the area has this tag with a support greater or equal to the specified value.
|
void |
removeTag(Tag tag)
Removes the given tag from the area.
|
Map<Tag,Float> getTags()
void addTag(Tag tag, float support)
tag - The tag to be added.support - The assigned tag support from 0.0 to 1.0void removeTag(Tag tag)
tag - the tag to be removedboolean hasTag(Tag tag)
tag - the tag to be tested.true if the area has this tagboolean hasTag(Tag tag, float minSupport)
tag - the tag to be testedminSupport - minimal required supporttrue if the area has this tagSet<Tag> getSupportedTags(float minSupport)
minSupport - minimal required supportfloat getTagSupport(Tag tag)
tag - The tag to be testedTag getMostSupportedTag()
null if there are no tags assigned to this areaCopyright © 2018. All rights reserved.