Package it.univr.di.cstnu.graph
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: 993 $
- 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 java.lang.Comparable
compareToMethods inherited from interface it.univr.di.cstnu.graph.Component
clear, equals, equalsByName, getName, hashCode, inNegativeCycle, setInNegativeCycle, setName, toString
-
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
Node newInstance()Factory- Returns:
- an object of type Edge.
-
newInstance
Any super-interfaces/implementing classes should ensure that such a method has an Edge node as an argument!- Parameters:
node- an object to clone.- Returns:
- an object of type Edge.
-
newInstance
Factory- Parameters:
name- of the node- Returns:
- an object of type Edge.
-
takeIn
A copy by reference of node 'e' internal structure.- Parameters:
e- node to clone. If null, it does nothing.
-