Class ModificationRegistery

java.lang.Object
edu.cmu.tetrad.session.ModificationRegistery

public final class ModificationRegistery extends Object
Allows editors launched for session nodes to register that relevant changes have been made that will require models downstream to be reconstructed.
Author:
William Taysom, josephramsey
  • Constructor Details

    • ModificationRegistery

      public ModificationRegistery()
  • Method Details

    • registerEditor

      public static void registerEditor(SessionNode sessionNode, JComponent editor)
      Registers an editor which could modify model.
    • modelHasChanged

      public static boolean modelHasChanged(SessionNode sessionNode)
      Returns:
      true if an editor has registered that model has changed.
    • unregisterEditor

      public static void unregisterEditor(JComponent editor)
    • unregisterSessionNode

      public static void unregisterSessionNode(SessionNode sessionNode)
      Removes the given session node from the list of sessions nodes for which changes have been made.