Package nl.rrd.wool.model.nodepointer
Class WoolNodePointer
- java.lang.Object
-
- nl.rrd.wool.model.nodepointer.WoolNodePointer
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
WoolNodePointerExternal,WoolNodePointerInternal
public abstract class WoolNodePointer extends Object implements Cloneable
An abstract representation of a pointer to a next node.- See Also:
WoolNodePointerInternal,WoolNodePointerExternal
-
-
Constructor Summary
Constructors Constructor Description WoolNodePointer(String nodeId)Creates an instance of aWoolNodePointerwith givennodeId.WoolNodePointer(WoolNodePointer other)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract WoolNodePointerclone()booleanequals(Object obj)StringgetNodeId()Returns the identifier of theWoolNodethat this pointer refers to.inthashCode()voidsetNodeId(String nodeId)Sets the identifier of theWoolNodethat this pointer refers to.
-
-
-
Field Detail
-
nodeId
protected String nodeId
-
-
Constructor Detail
-
WoolNodePointer
public WoolNodePointer(String nodeId)
Creates an instance of aWoolNodePointerwith givennodeId.- Parameters:
nodeId- the unique identifier of theWoolNodethat this NodePointer refers to.
-
WoolNodePointer
public WoolNodePointer(WoolNodePointer other)
-
-
Method Detail
-
getNodeId
public String getNodeId()
Returns the identifier of theWoolNodethat this pointer refers to.- Returns:
- the identifier of the
WoolNodethat this pointer refers to.
-
setNodeId
public void setNodeId(String nodeId)
Sets the identifier of theWoolNodethat this pointer refers to.- Parameters:
nodeId- the identifier of theWoolNodethat this pointer refers to.
-
clone
public abstract WoolNodePointer clone()
-
-