Package org.apache.unomi.api.segments
Class ScoringElement
java.lang.Object
org.apache.unomi.api.segments.ScoringElement
- All Implemented Interfaces:
Serializable
A scoring dimension along profiles can be evaluated and associated value to be assigned.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the condition.int
getValue()
Retrieves the value.void
setCondition
(Condition condition) Sets the condition.void
setValue
(int value) Sets the value.
-
Constructor Details
-
ScoringElement
public ScoringElement()Instantiates a new Scoring element.
-
-
Method Details
-
getCondition
Retrieves the condition.- Returns:
- the condition
-
setCondition
Sets the condition.- Parameters:
condition
- the condition
-
getValue
public int getValue()Retrieves the value.- Returns:
- the value
-
setValue
public void setValue(int value) Sets the value.- Parameters:
value
- the value
-