Package openllet.core.tracker
Interface IncrementalChangeTracker
-
- All Known Implementing Classes:
SimpleIncrementalChangeTracker
public interface IncrementalChangeTrackerTitle: Incremental change tracker
Description: Tracks the changes for incremental ABox reasoning services
Copyright: Copyright (c) 2008
Company: Clark & Parsia, LLC.
- Author:
- Mike Smith
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddDeletedEdge(Edge e)Record that a new edge has been deleted from the ABoxbooleanaddDeletedType(Node n, openllet.aterm.ATermAppl type)Record that a type was deleted from an _individualbooleanaddNewEdge(Edge e)Record that a new edge has been added to the ABoxbooleanaddNewIndividual(Individual i)Record that a new _individual has been added to the ABoxbooleanaddUnprunedNode(Node n)Record that a _node has been "unpruned" because a merge was reverted during restorebooleanaddUpdatedIndividual(Individual i)Record that an _individual has been updatedvoidclear()Clear all recorded changesIncrementalChangeTrackercopy(ABoxImpl target)Copy change tracker for use with a new ABox (presumably as part ofABox.copy())java.util.Iterator<Edge>deletedEdges()Iterate over all edges deleted (seeaddDeletedEdge(Edge)) since the previousclear()java.util.Iterator<java.util.Map.Entry<Node,java.util.Set<openllet.aterm.ATermAppl>>>deletedTypes()Iterate over all _nodes with deleted types (and those types) (seeaddDeletedType(Node, ATermAppl)) since the previousclear()java.util.Iterator<Edge>newEdges()Iterate over all edges added (seeaddNewEdge(Edge)) since the previousclear()java.util.Iterator<Individual>newIndividuals()Iterate over all individuals added (seeaddNewIndividual(Individual)) since the previousclear()java.util.Iterator<Node>unprunedNodes()Iterate over all _nodes unpruned (see addUnprunedIndividual) since the previousclear()java.util.Iterator<Individual>updatedIndividuals()Iterate over all individuals updated (seeaddUpdatedIndividual(Individual)) since the previousclear()
-
-
-
Method Detail
-
addDeletedEdge
boolean addDeletedEdge(Edge e)
Record that a new edge has been deleted from the ABox- Parameters:
e- the Edge- Returns:
- boolean
trueif delete is not already noted for edge,falseelse
-
addDeletedType
boolean addDeletedType(Node n, openllet.aterm.ATermAppl type)
Record that a type was deleted from an _individual- Parameters:
n- the Nodetype- the type- Returns:
- boolean
trueif delete is not already noted for _node, type pairfalseelse
-
addNewEdge
boolean addNewEdge(Edge e)
Record that a new edge has been added to the ABox- Parameters:
e- the Edge- Returns:
- boolean
trueif addition is not already noted for edge,falseelse
-
addNewIndividual
boolean addNewIndividual(Individual i)
Record that a new _individual has been added to the ABox- Parameters:
i- the Individual- Returns:
- boolean
trueif addition is not already noted for _individual,falseelse
-
addUnprunedNode
boolean addUnprunedNode(Node n)
Record that a _node has been "unpruned" because a merge was reverted during restore- Parameters:
n- the Node- Returns:
- boolean
trueif unpruning is not already noted for _node,falseelse
-
addUpdatedIndividual
boolean addUpdatedIndividual(Individual i)
Record that an _individual has been updated- Parameters:
i- the Individual- Returns:
- boolean
trueif addition is not already noted for _individual,falseelse
-
clear
void clear()
Clear all recorded changes
-
copy
IncrementalChangeTracker copy(ABoxImpl target)
Copy change tracker for use with a new ABox (presumably as part ofABox.copy())- Parameters:
target- The ABox for the copy- Returns:
- a copy, with individuals in the target ABox
-
deletedEdges
java.util.Iterator<Edge> deletedEdges()
Iterate over all edges deleted (seeaddDeletedEdge(Edge)) since the previousclear()- Returns:
- Iterator
-
deletedTypes
java.util.Iterator<java.util.Map.Entry<Node,java.util.Set<openllet.aterm.ATermAppl>>> deletedTypes()
Iterate over all _nodes with deleted types (and those types) (seeaddDeletedType(Node, ATermAppl)) since the previousclear()- Returns:
- Iterator
-
newEdges
java.util.Iterator<Edge> newEdges()
Iterate over all edges added (seeaddNewEdge(Edge)) since the previousclear()- Returns:
- Iterator
-
newIndividuals
java.util.Iterator<Individual> newIndividuals()
Iterate over all individuals added (seeaddNewIndividual(Individual)) since the previousclear()- Returns:
- Iterator
-
unprunedNodes
java.util.Iterator<Node> unprunedNodes()
Iterate over all _nodes unpruned (see addUnprunedIndividual) since the previousclear()- Returns:
- Iterator
-
updatedIndividuals
java.util.Iterator<Individual> updatedIndividuals()
Iterate over all individuals updated (seeaddUpdatedIndividual(Individual)) since the previousclear()- Returns:
- Iterator
-
-