jInfer

cz.cuni.mff.ksi.jinfer.functionalDependencies
Class NodeAttribute

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.functionalDependencies.NodeAttribute

public class NodeAttribute
extends Object

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

NodeAttribute

public NodeAttribute(boolean reliability)
Constructor setting reliability of the node.

Parameters:
reliability - Reliability to be set.

NodeAttribute

public NodeAttribute()
Default constructor.

Method Detail

getTuples

public Set<Tuple> getTuples()
Get set of tuples the node belongs to.

Returns:
Set of tuples.

isReliable

public boolean isReliable()
Get reliability of the node.

Returns:
true if node is reliable, otherwise return false.

isInTuple

public boolean isInTuple(Tuple tuple)
Check if node is part of the provided tuple.

Parameters:
tuple - Tuple to be checked that the node is part of.
Returns:
true if node is part of tuple, otherwise return false.

removeFromTuple

public boolean removeFromTuple(Tuple tuple)
Remove this node from provided tuple.

Parameters:
tuple - Tuple to be node removed from.
Returns:
true if the node was part fo the provided tuple.

addToTuple

public void addToTuple(Tuple tuple)
Add this node to the provided tuple

Parameters:
tuple - Tuple to be node added to.

setWeight

public void setWeight(double weight)
Set the weight of the node.

Parameters:
weight - Weight to be set to the node.

getWeight

public double getWeight()
Get weight of the node.

Returns:
weight of the node.

setReliability

public void setReliability(boolean reliability)
Set the reliability of the node.

Parameters:
reliability - Reliability to be set to node.

removeFromAllTuples

public void removeFromAllTuples()
Remove node from all tuples it belongs to.


jInfer

Generated on Fri Dec 9 00:01:25 CET 2011