Class SessionAdapter

java.lang.Object
edu.cmu.tetrad.session.SessionAdapter
All Implemented Interfaces:
SessionListener, EventListener

public class SessionAdapter extends Object implements SessionListener
Basic implementation of SessionListener with empty methods.
Author:
josephramsey
  • Constructor Details

    • SessionAdapter

      public SessionAdapter()
  • Method Details

    • nodeAdded

      public void nodeAdded(SessionEvent event)
      Indicates that a node has been added.
      Specified by:
      nodeAdded in interface SessionListener
    • nodeRemoved

      public void nodeRemoved(SessionEvent event)
      Indicates that a node has been removed.
      Specified by:
      nodeRemoved in interface SessionListener
    • parentAdded

      public void parentAdded(SessionEvent event)
      Indicates that a parent has been added to a node. Note that this implies a child is added to the parent.
      Specified by:
      parentAdded in interface SessionListener
    • parentRemoved

      public void parentRemoved(SessionEvent event)
      Indicates that a parent has been removed from a node. Note that this implies a child is removed from the parent.
      Specified by:
      parentRemoved in interface SessionListener
    • modelCreated

      public void modelCreated(SessionEvent event)
      Indicates that a model has been created for a node.
      Specified by:
      modelCreated in interface SessionListener
    • modelDestroyed

      public void modelDestroyed(SessionEvent event)
      Indicates that a model has been destroyed for a node.
      Specified by:
      modelDestroyed in interface SessionListener
    • modelUnclear

      public void modelUnclear(SessionEvent event)
      Indicates that the createModel method has been called but there is more than one model consistent with the parents, so a choice has to be made.
      Specified by:
      modelUnclear in interface SessionListener
    • executionStarted

      public void executionStarted(SessionEvent event)
      Indicates that a new execution of a simulation edu.cmu.tetrad.study has begun. (Some parameter objects need to be reset for every execution.
      Specified by:
      executionStarted in interface SessionListener
    • repetitionChanged

      public void repetitionChanged(SessionEvent event)
      Indicates that the repetition of some node has changed.
      Specified by:
      repetitionChanged in interface SessionListener
    • addingEdge

      public void addingEdge(SessionEvent event)
      Indicates that the model is contemplating adding an edge (but hasn't yet).
      Specified by:
      addingEdge in interface SessionListener