Class LabeledNodeSupplier
java.lang.Object
it.univr.di.cstnu.graph.LabeledNodeSupplier
- All Implemented Interfaces:
Supplier<LabeledNode>
LabeledIntEdgePluggable supplier.
- Version:
- $Rev: 1153 $
- Author:
- posenato
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal LabeledNodeget()static LabeledNodeget(LabeledNode node) static LabeledNodeget(LabeledNode node, ALabelAlphabet targetAlphabet) Clonesnode, recreating its A-Label content (seeLabeledNode(LabeledNode, ALabelAlphabet)) bound totargetAlphabetinstead ofnode's own alphabet.static LabeledNodestatic LabeledNode
-
Constructor Details
-
LabeledNodeSupplier
public LabeledNodeSupplier()
-
-
Method Details
-
get
- Parameters:
node- the edge to clone.- Returns:
- a new edge
-
get
Clonesnode, recreating its A-Label content (seeLabeledNode(LabeledNode, ALabelAlphabet)) bound totargetAlphabetinstead ofnode's own alphabet.- Parameters:
node- the node to clonetargetAlphabet- the alphabet the recreated A-Labels are bound to; may benullonly ifnodehas no non-empty A-Label content to recreate- Returns:
- a new node, independent of
nodeand ofnode's alphabet
-
get
- Parameters:
n- aStringobject.proposition- a char.- Returns:
- a new edge
-
get
- Parameters:
name- aStringobject.- Returns:
- a new LabeledIntMap concrete object.
-
get
- Specified by:
getin interfaceSupplier<LabeledNode>
-