Class RenameNodes

java.lang.Object
ca.uqac.lif.cep.functions.Function
ca.uqac.lif.cep.functions.UnaryFunction<Graph,Graph>
ca.uqac.lif.cep.graphviz.RenameNodes
All Implemented Interfaces:
ca.uqac.lif.cep.Duplicable, ca.uqac.lif.cep.functions.DuplicableFunction
Direct Known Subclasses:
RenameNodes.DeleteLabels

public abstract class RenameNodes extends ca.uqac.lif.cep.functions.UnaryFunction<Graph,Graph>
Abstract function that replaces node labels by others.
Author:
Sylvain Hallé
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Function that deletes the labels of all nodes (i.e. replaces them with the empty string.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Function that deletes the labels of all nodes.

    Fields inherited from class ca.uqac.lif.cep.functions.Function

    s_maxInputArity
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected abstract String
    rename(String name)
    Transforms a node label.

    Methods inherited from class ca.uqac.lif.cep.functions.UnaryFunction

    duplicate, evaluate, getInputArity, getInputTypesFor, getOutputArity, getOutputTypeFor, reset

    Methods inherited from class ca.uqac.lif.cep.functions.Function

    duplicate, evaluate, evaluate, evaluateLazy, evaluatePartial, printState, readState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • deleteLabels

      public static final RenameNodes.DeleteLabels deleteLabels
      Function that deletes the labels of all nodes.
  • Constructor Details

    • RenameNodes

      protected RenameNodes()
  • Method Details

    • getValue

      public Graph getValue(Graph g)
      Specified by:
      getValue in class ca.uqac.lif.cep.functions.UnaryFunction<Graph,Graph>
    • rename

      protected abstract String rename(String name)
      Transforms a node label.
      Parameters:
      name - The original node label
      Returns:
      The new node label