Interface Node
- All Superinterfaces:
Comparable<Component>, Component, Serializable
- All Known Implementing Classes:
AbstractNode, LabeledNode
Root class for representing nodes in it.univr.di.cstnu package.
- Version:
- $Rev: 1130 $
- Author:
- posenato
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleanFactorynewInstance(Node node) Any super-interfaces/implementing classes should ensure that such a method has an Edge node as an argument!newInstance(String name) FactoryvoidA copy by reference of node 'e' internal structure.Methods inherited from interface Comparable
compareToMethods inherited from interface Component
clear, equals, equalsByName, getName, hashCode, inNegativeCycle, setInNegativeCycle, setName, toStringModifier and TypeMethodDescriptionvoidclear()Clear all components but the name.booleanDeprecated.booleanA component is assumed to be equal to another if it has the same name.getName()inthashCode()booleanvoidsetInNegativeCycle(boolean inNegativeCycle) Sets true if the edge is in a negative cycleSet the name of the component.toString()Return a string representation of labeled values.
-
Method Details
-
isContingent
default boolean isContingent()- Returns:
- true if the node is contingent.
-
isParameter
default boolean isParameter()- Returns:
- true if the node is a parameter one.
-
newInstance
-
newInstance
-
newInstance
-
takeIn
A copy by reference of node 'e' internal structure.- Parameters:
e- node to clone. If null, it does nothing.
-