|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.tss.um.learning.StatisticsBuffer
public class StatisticsBuffer
This class holds information about number of events in which particular user
(or all users) performed particular UserBehaviour
object (or
all possible UserBehaviour
objects) objected against
particular concept (or all possible concepts).
This class must be initialized:
updateStatistics(List)
to load
statistics about given events into the buffer.
The aim and the way this class has been implemented results from requirement for short-time access to statistics during learning process. Therefore, most of necessary statistics are stored locally.
Constructor Summary | |
---|---|
StatisticsBuffer(OntModel mStatisticsDB)
Constructs StatisticsBuffer with the given model of statistics underlying. |
Method Summary | |
---|---|
Integer |
getStatistic(Integer userID,
UserBehaviour ub,
String conceptURI)
Returns the number of events matching the given key values. |
void |
updateStatistics(List<ExtendedEvent> events)
Updates statistics in this buffer and underlying database model by processing the given events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatisticsBuffer(OntModel mStatisticsDB)
StatisticsBuffer
with the given model of statistics underlying.
mStatisticsDB
- model with statisticsMethod Detail |
---|
public void updateStatistics(List<ExtendedEvent> events)
events
- events from which statistics will be calculated.public Integer getStatistic(Integer userID, UserBehaviour ub, String conceptURI)
userID
- is id of a user acting in an event; if null
value then number of events for all users will be returned.userBehaviour
- is user behaviour performed in an event; if null
then number of events for all possible user behaviours will be
returned.conceptURI
- is URI reference of concept objected by an event; if
null
then number of events for all possible
concepts will be returned.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |