Class Type2

java.lang.Object
edu.cmu.tetrad.session.Type2
All Implemented Interfaces:
SessionModel, TetradSerializable, TetradSerializableExcluded, Serializable

public class Type2 extends Object implements SessionModel, TetradSerializableExcluded
A sample class to be wrapped in a SessionNode as a model.
See Also:
  • Constructor Details

    • Type2

      public Type2(Parameters parameters)
      A sample constructor that takes Model 2 and Type3 as parent. The session node wrapping this should allow parent session nodes to be added that wrap either Type2 or Type3 and when parents of both types are added it should allow a model of type Type1 to be created. SessionNodes wrapping models of other types should not be addable as parents.
  • Method Details

    • serializableInstance

      public static Type2 serializableInstance()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getName

      public String getName()
      Specified by:
      getName in interface SessionModel
      Returns:
      the name of the session model.
    • setName

      public void setName(String name)
      Sets the name of the session model.
      Specified by:
      setName in interface SessionModel