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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface it.univr.di.cstnu.graph.Component
clear, equals, equalsByName, getName, hashCode, inNegativeCycle, setInNegativeCycle, toString
Methods 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:
setName
in interfaceComponent
- Specified by:
setName
in classAbstractComponent
- Parameters:
newName
- cannot empty. If empty, it does nothing.- Returns:
- the old name.
-
takeIn
Description copied from interface:Node
A copy by reference of node 'e' internal structure.
-