Package it.univr.di.cstnu.graph
Class AbstractNode
java.lang.Object
it.univr.di.cstnu.graph.AbstractComponent
it.univr.di.cstnu.graph.AbstractNode
- All Implemented Interfaces:
Component,Node,Serializable,Comparable<Component>
- Direct Known Subclasses:
LabeledNode
Base class for implementing Node.
- Version:
- $Rev: 993 $
- Author:
- posenato
- See Also:
-
Field Summary
Fields inherited from class it.univr.di.cstnu.graph.AbstractComponent
name, pcs -
Constructor Summary
ConstructorsConstructorDescriptionMinimal constructor.AbstractNode(Node node) Constructor to clone the component.Simplified constructor -
Method Summary
Methods inherited from class it.univr.di.cstnu.graph.AbstractComponent
addObserver, clear, compareTo, equals, equalsByName, getName, hashCode, inNegativeCycle, removeObserver, setInNegativeCycle, takeIn, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface it.univr.di.cstnu.graph.Component
clear, equals, equalsByName, getName, hashCode, inNegativeCycle, setInNegativeCycle, toStringMethods inherited from interface it.univr.di.cstnu.graph.Node
isContingent, isParameter, newInstance, newInstance, newInstance
-
Constructor Details
-
Method Details
-
setName
Sets the name of the node.- Specified by:
setNamein interfaceComponent- Specified by:
setNamein classAbstractComponent- Parameters:
newName- cannot empty. If empty, it does nothing.- Returns:
- the old name.
-
takeIn
Description copied from interface:NodeA copy by reference of node 'e' internal structure.
-