|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.context.che.database.impl.SesameBackend
org.universAAL.context.che.database.impl.SesameBackendWithConfidence
public class SesameBackendWithConfidence
Extension of SesameBackend
that interprets the confidence value of received events before storing them.
If the confidence is greater than the threshold passed to this class in the
constructor or setThreshold
, the event will be stored unchanged
as in SesameBackend
.
Otherwise, only statements having the event as subject will be stored, but
not reified statements about its subject nor object.
Field Summary |
---|
Fields inherited from class org.universAAL.context.che.database.impl.SesameBackend |
---|
uAALParser |
Constructor Summary | |
---|---|
SesameBackendWithConfidence()
Main constructor. |
|
SesameBackendWithConfidence(int confidence)
Constructor with initial confidence. |
Method Summary | |
---|---|
int |
getThreshold()
Get the threshold for confidence. |
void |
setThreshold(int threshold)
Set the threshold for confidence. |
void |
storeEvent(ContextEvent e)
Stores a ContextEvent in the
underlying store. |
Methods inherited from class org.universAAL.context.che.database.impl.SesameBackend |
---|
close, connect, populate, queryBySPARQL, removeOldEvents, retrieveEvent, retrieveEventsBetweenTstmp, retrieveEventsBySPARQL, retrieveEventsFromTstmp, retrieveEventsToTstmp, setuAALParser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SesameBackendWithConfidence()
public SesameBackendWithConfidence(int confidence)
confidence
- Threshold for confidenceMethod Detail |
---|
public void storeEvent(ContextEvent e)
Backend
ContextEvent
in the
underlying store.
storeEvent
in interface Backend
storeEvent
in class SesameBackend
e
- The context event to be stored.public int getThreshold()
public final void setThreshold(int threshold)
threshold
- for confidence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |