@PortedFrom(file="taxVertex.h", name="TaxonomyVertex") public class TaxonomyVertex extends Object implements Serializable
| Constructor and Description |
|---|
TaxonomyVertex()
Default constructor.
|
TaxonomyVertex(ClassifiableEntry p)
init c'tor; use it only for Top/Bot initialisations
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(boolean direction,
TaxonomyVertex t) |
void |
addNeighbour(boolean upDirection,
TaxonomyVertex p)
add link in given direction to vertex
|
void |
addSynonym(ClassifiableEntry p)
add P as a synonym to curent vertex
|
void |
clear()
clears the vertex
|
void |
clearCommon()
zero common
|
void |
clearLinks(boolean upDirection)
clear all links in a given direction
|
boolean |
correctCommon(int n)
keep COMMON flag iff both flags are set;
|
ClassifiableEntry |
getPrimer() |
TaxonomyVertex |
getSynonymNode() |
boolean |
getValue() |
void |
incorporate(JFactReasonerConfiguration c) |
boolean |
isChecked(long checkLab) |
boolean |
isCommon() |
boolean |
isInUse() |
boolean |
isValued(long valueLab) |
void |
mergeIndepNode(TaxonomyVertex node,
Set<TaxonomyVertex> excludes,
ClassifiableEntry curEntry)
merge NODE which is independent to THIS
|
java.util.stream.Stream<TaxonomyVertex> |
neigh(boolean upDirection) |
boolean |
noNeighbours(boolean upDirection) |
String |
printSynonyms() |
void |
remove()
remove given node from a graph
|
boolean |
removeLink(boolean upDirection,
TaxonomyVertex p) |
void |
removeLinks(boolean upDirection)
remove one half of a given node from a graph
|
void |
setChecked(long checkLab) |
void |
setCommon()
increment common
|
void |
setInUse(boolean value)
set the inUse value of the node
|
void |
setSample(ClassifiableEntry entry,
boolean linkBack)
set sample to ENTRY
|
boolean |
setValued(boolean val,
long valueLab) |
void |
setVertexAsHost(ClassifiableEntry entry)
mark vertex as the one corresponding to a given ENTRY
|
java.util.stream.Stream<ClassifiableEntry> |
synonyms() |
String |
toString() |
public TaxonomyVertex()
public TaxonomyVertex(ClassifiableEntry p)
p - p@PortedFrom(file="taxVertex.h", name="setVertexAsHost") public void setVertexAsHost(ClassifiableEntry entry)
entry - entry@PortedFrom(file="taxVertex.h", name="setSample") public void setSample(ClassifiableEntry entry, boolean linkBack)
entry - entrylinkBack - linkBack@PortedFrom(file="taxVertex.h", name="neigh") public java.util.stream.Stream<TaxonomyVertex> neigh(boolean upDirection)
upDirection - upDirection@PortedFrom(file="taxVertex.h", name="isChecked") public boolean isChecked(long checkLab)
checkLab - checkLab@PortedFrom(file="taxVertex.h", name="setChecked") public void setChecked(long checkLab)
checkLab - checkLab@PortedFrom(file="taxVertex.h", name="isValued") public boolean isValued(long valueLab)
valueLab - valueLab@PortedFrom(file="taxVertex.h", name="getValue") public boolean getValue()
@PortedFrom(file="taxVertex.h", name="setValued") public boolean setValued(boolean val, long valueLab)
val - valvalueLab - valueLab@PortedFrom(file="taxVertex.h", name="isCommon") public boolean isCommon()
@PortedFrom(file="taxVertex.h", name="setCommon") public void setCommon()
@PortedFrom(file="taxVertex.h", name="clearCommon") public void clearCommon()
@PortedFrom(file="taxVertex.h", name="correctCommon") public boolean correctCommon(int n)
n - n@PortedFrom(file="taxVertex.h", name="begin_syn") public java.util.stream.Stream<ClassifiableEntry> synonyms()
@PortedFrom(file="taxVertex.h", name="addSynonym") public void addSynonym(ClassifiableEntry p)
p - p@PortedFrom(file="taxVertex.h", name="clear") public void clear()
@PortedFrom(file="taxVertex.h", name="getPrimer") public ClassifiableEntry getPrimer()
@PortedFrom(file="taxVertex.h", name="addNeighbour") public void addNeighbour(boolean upDirection, TaxonomyVertex p)
upDirection - upDirectionp - ppublic void add(boolean direction,
TaxonomyVertex t)
direction - parent or child directiont - vertex to add@PortedFrom(file="taxVertex.h", name="noNeighbours") public boolean noNeighbours(boolean upDirection)
upDirection - upDirection@Nullable @PortedFrom(file="taxVertex.h", name="getSynonymNode") public TaxonomyVertex getSynonymNode()
@PortedFrom(file="taxVertex.h", name="clearLinks") public void clearLinks(boolean upDirection)
upDirection - upDirection@PortedFrom(file="taxVertex.h", name="removeLink") public boolean removeLink(boolean upDirection, TaxonomyVertex p)
upDirection - upDirectionp - p@PortedFrom(file="taxVertex.h", name="incorporate") public void incorporate(JFactReasonerConfiguration c)
c - c@PortedFrom(file="taxVertex.h", name="removeLinks") public void removeLinks(boolean upDirection)
upDirection - upDirection@PortedFrom(file="taxVertex.h", name="remove") public void remove()
@PortedFrom(file="taxVertex.h", name="isInUse") public boolean isInUse()
@PortedFrom(file="taxVertex.h", name="setInUse") public void setInUse(boolean value)
value - value@PortedFrom(file="taxVertex.h", name="mergeIndepNode") public void mergeIndepNode(TaxonomyVertex node, Set<TaxonomyVertex> excludes, ClassifiableEntry curEntry)
node - nodeexcludes - excludescurEntry - curEntry@PortedFrom(file="taxVertex.h", name="printSynonyms") public String printSynonyms()
Copyright © 2016 The University of Manchester. All rights reserved.