public class DataTracker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ca.uqac.lif.petitpoucet.OwnershipManager |
m_lab
The lab
|
protected static int |
s_maxDepth
The maximum depth of a provenance tree
|
| Constructor and Description |
|---|
DataTracker(ca.uqac.lif.petitpoucet.OwnershipManager lab)
Creates a new data tracker
|
| Modifier and Type | Method and Description |
|---|---|
ca.uqac.lif.petitpoucet.ProvenanceNode |
explain(ca.uqac.lif.petitpoucet.NodeFunction nf)
Builds a provenance tree for a given data point
|
protected ca.uqac.lif.petitpoucet.ProvenanceNode |
explain(ca.uqac.lif.petitpoucet.NodeFunction nf,
java.util.Set<ca.uqac.lif.petitpoucet.NodeFunction> seen_functions,
int depth)
Builds a provenance tree for a given data point
|
ca.uqac.lif.petitpoucet.ProvenanceNode |
explain(java.lang.String datapoint_id)
Produces a provenance tree for a given LDI
|
ca.uqac.lif.petitpoucet.NodeFunction |
getNodeFunction(java.lang.String datapoint_id) |
java.lang.Object |
getOwner(java.lang.String id)
Gets the owner of a data point
|
protected ca.uqac.lif.petitpoucet.OwnershipManager m_lab
protected static final transient int s_maxDepth
public DataTracker(ca.uqac.lif.petitpoucet.OwnershipManager lab)
lab - The lab this tracker is associated withpublic java.lang.Object getOwner(java.lang.String id)
id - The data point IDpublic ca.uqac.lif.petitpoucet.NodeFunction getNodeFunction(java.lang.String datapoint_id)
public ca.uqac.lif.petitpoucet.ProvenanceNode explain(java.lang.String datapoint_id)
datapoint_id - The LDIpublic ca.uqac.lif.petitpoucet.ProvenanceNode explain(ca.uqac.lif.petitpoucet.NodeFunction nf)
nf - A node functionprotected ca.uqac.lif.petitpoucet.ProvenanceNode explain(ca.uqac.lif.petitpoucet.NodeFunction nf,
java.util.Set<ca.uqac.lif.petitpoucet.NodeFunction> seen_functions,
int depth)
nf - The ID of the current nodeseen_functions - A set of nodes functions already included in the
tree. This is to avoid infinite looping due to possible circular
dependencies.depth - A counter that is being decreased every time the method is
called recursively. This can be used to specify the maximum depth of
the provenance tree.Copyright © Sylvain HallĂ©. All Rights Reserved.