Package org.apache.unomi.api.segments
Class Scoring
- java.lang.Object
-
- org.apache.unomi.api.Item
-
- org.apache.unomi.api.MetadataItem
-
- org.apache.unomi.api.segments.Scoring
-
- All Implemented Interfaces:
Serializable
public class Scoring extends MetadataItem
A set of conditions associated with a value to assign toProfile
s when matching so that the associated users can be scored along that dimension. EachScoringElement
is evaluated and matching profiles' scores are incremented with the associated value.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ITEM_TYPE
The Scoring ITEM_TYPE.-
Fields inherited from class org.apache.unomi.api.MetadataItem
metadata
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ScoringElement>
getElements()
Retrieves the details of this Scoring.void
setElements(List<ScoringElement> elements)
Sets the elements.-
Methods inherited from class org.apache.unomi.api.MetadataItem
getMetadata, getScope, setMetadata
-
Methods inherited from class org.apache.unomi.api.Item
equals, getItemId, getItemType, getItemType, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
-
-
-
-
Field Detail
-
ITEM_TYPE
public static final String ITEM_TYPE
The Scoring ITEM_TYPE.
-
-
Constructor Detail
-
Scoring
public Scoring()
Instantiates a new Scoring.
-
Scoring
public Scoring(Metadata metadata)
Instantiates a new Scoring with the specified metadata.- Parameters:
metadata
- the metadata
-
-
Method Detail
-
getElements
public List<ScoringElement> getElements()
Retrieves the details of this Scoring.- Returns:
- the elements
-
setElements
public void setElements(List<ScoringElement> elements)
Sets the elements.- Parameters:
elements
- the elements
-
-