public class DependencyIndex extends Object
| Constructor and Description |
|---|
DependencyIndex(KnowledgeBase kb)
Default constructor
|
DependencyIndex(KnowledgeBase kb,
DependencyIndex oldIndex)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBranchAddDependency(Branch branch)
Add a new branch dependency
|
void |
addCloseBranchDependency(Branch branch,
DependencySet ds)
Add a new branch ds removal dependency
|
void |
addEdgeDependency(Edge edge,
DependencySet ds)
Add a new edge dependency
|
void |
addMergeDependency(aterm.ATermAppl ind,
aterm.ATermAppl mergedTo,
DependencySet ds)
Add a new merge dependency
|
void |
addTypeDependency(aterm.ATermAppl ind,
aterm.ATermAppl type,
DependencySet ds)
Add a new type dependency
|
protected Map<aterm.ATermAppl,DependencyEntry> |
getDependencies() |
DependencyEntry |
getDependencies(aterm.ATermAppl assertion) |
void |
removeBranchDependencies(Branch b)
Remove branch dependencies - this is needed due to backjumping!
|
void |
removeDependencies(aterm.ATermAppl assertion)
Remove the dependencies for a given assertion
|
void |
setClashDependencies(Clash clash)
Set clash dependencies
|
public static final Logger log
public DependencyIndex(KnowledgeBase kb)
public DependencyIndex(KnowledgeBase kb, DependencyIndex oldIndex)
public DependencyEntry getDependencies(aterm.ATermAppl assertion)
assertion - protected Map<aterm.ATermAppl,DependencyEntry> getDependencies()
public void addTypeDependency(aterm.ATermAppl ind,
aterm.ATermAppl type,
DependencySet ds)
ind - type - ds - public void addMergeDependency(aterm.ATermAppl ind,
aterm.ATermAppl mergedTo,
DependencySet ds)
ind - type - ds - public void addEdgeDependency(Edge edge, DependencySet ds)
edge - ds - public void addBranchAddDependency(Branch branch)
ind - type - ds - public void addCloseBranchDependency(Branch branch, DependencySet ds)
ind - type - ds - public void removeDependencies(aterm.ATermAppl assertion)
assertion - public void removeBranchDependencies(Branch b)
b - public void setClashDependencies(Clash clash)
Copyright © 2019. All rights reserved.