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.
|
java.util.Map<Tag,java.lang.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.
|
java.util.Map<Tag,java.lang.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 tagfloat getTagSupport(Tag tag)
tag
- The tag to be testedTag getMostSupportedTag()
null
if there are no tags assigned to this area