Class IndexedParent

java.lang.Object
edu.cmu.tetrad.study.gene.tetrad.gene.history.IndexedParent
All Implemented Interfaces:
TetradSerializable, Serializable

public final class IndexedParent extends Object implements TetradSerializable
Holds an ordered pair (index, lag) to represent a causal parent of a factor, where the factor at the given index is independently known.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

    • IndexedParent

      public IndexedParent(int index, int lag)
      Constructs a new index parent.
      Parameters:
      index - a int
      lag - a int
  • Method Details

    • serializableInstance

      public static IndexedParent serializableInstance()
      Generates a simple exemplar of this class to test serialization.
      Returns:
      a IndexedParent object
    • getIndex

      public int getIndex()
      Returns the index of the parent.
      Returns:
      a int
    • getLag

      public int getLag()
      Returns the lag of the parent.
      Returns:
      a int
    • equals

      public boolean equals(Object o)

      Returns true iff the lags and indices are equal.

      Overrides:
      equals in class Object
    • toString

      public String toString()
      Prints out the factor index and lag.
      Overrides:
      toString in class Object
      Returns:
      a String object