|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.functionalDependencies.NodeAttribute
public class NodeAttribute
Class representing attributes of RXMLTree
nodes. This attributes
contains weight of node, reliability and set of tuples
the node
belongs to.
Constructor Summary | |
---|---|
NodeAttribute()
Default constructor. |
|
NodeAttribute(boolean reliability)
Constructor setting reliability of the node. |
Method Summary | |
---|---|
void |
addToTuple(Tuple tuple)
Add this node to the provided tuple |
Set<Tuple> |
getTuples()
Get set of tuples the node belongs to. |
double |
getWeight()
Get weight of the node. |
boolean |
isInTuple(Tuple tuple)
Check if node is part of the provided tuple. |
boolean |
isReliable()
Get reliability of the node. |
void |
removeFromAllTuples()
Remove node from all tuples it belongs to. |
boolean |
removeFromTuple(Tuple tuple)
Remove this node from provided tuple. |
void |
setReliability(boolean reliability)
Set the reliability of the node. |
void |
setWeight(double weight)
Set the weight of the node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeAttribute(boolean reliability)
reliability
- Reliability to be set.public NodeAttribute()
Method Detail |
---|
public Set<Tuple> getTuples()
public boolean isReliable()
public boolean isInTuple(Tuple tuple)
tuple
- Tuple to be checked that the node is part of.
public boolean removeFromTuple(Tuple tuple)
tuple
- Tuple to be node removed from.
public void addToTuple(Tuple tuple)
tuple
- Tuple to be node added to.public void setWeight(double weight)
weight
- Weight to be set to the node.public double getWeight()
public void setReliability(boolean reliability)
reliability
- Reliability to be set to node.public void removeFromAllTuples()
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |