Class LabeledNodeSupplier

java.lang.Object
it.univr.di.cstnu.graph.LabeledNodeSupplier
All Implemented Interfaces:
Supplier<LabeledNode>

public class LabeledNodeSupplier extends Object implements Supplier<LabeledNode>
LabeledIntEdgePluggable supplier.
Version:
$Rev: 1153 $
Author:
posenato
  • Constructor Details

    • LabeledNodeSupplier

      public LabeledNodeSupplier()
  • Method Details

    • get

      public static LabeledNode get(LabeledNode node)
      Parameters:
      node - the edge to clone.
      Returns:
      a new edge
    • get

      public static LabeledNode get(LabeledNode node, @Nullable ALabelAlphabet targetAlphabet)
      Clones node, recreating its A-Label content (see LabeledNode(LabeledNode, ALabelAlphabet)) bound to targetAlphabet instead of node's own alphabet.
      Parameters:
      node - the node to clone
      targetAlphabet - the alphabet the recreated A-Labels are bound to; may be null only if node has no non-empty A-Label content to recreate
      Returns:
      a new node, independent of node and of node's alphabet
    • get

      public static LabeledNode get(String n, char proposition)
      Parameters:
      n - a String object.
      proposition - a char.
      Returns:
      a new edge
    • get

      public static LabeledNode get(String name)
      Parameters:
      name - a String object.
      Returns:
      a new LabeledIntMap concrete object.
    • get

      public final LabeledNode get()
      Specified by:
      get in interface Supplier<LabeledNode>