Class Type1

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

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

    • Type1

      public Type1(Type2 model1, Type3 model2, 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 Type1 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