Package edu.cmu.tetrad.sem
Class SemManipulation
java.lang.Object
edu.cmu.tetrad.sem.SemManipulation
- All Implemented Interfaces:
TetradSerializable,Serializable
Stores information for a BayesIm about evidence we have for each variable as well as whether each variable has been
manipulated.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSemManipulation(SemIm semIm) Constructs a container for evidence for the given Bayes IM.SemManipulation(SemManipulation manipulation) Constructor for SemManipulation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the current instance with the specified object for equality.getNode(int nodeIndex) getNode.intgetNodeIndex(String nodeName) getNodeIndex.inthashCode()hashCode.booleanisManipulated(int nodeIndex) isManipulated.static SemManipulationGenerates a simple exemplar of this class to test serialization.voidsetManipulated(int nodeIndex, boolean manipulated) Setter for the fieldmanipulated.toString()toString.
-
Constructor Details
-
SemManipulation
-
SemManipulation
Constructor for SemManipulation.
- Parameters:
manipulation- aSemManipulationobject
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization.- Returns:
- a
SemManipulationobject
-
getNodeIndex
-
getNode
-
isManipulated
public boolean isManipulated(int nodeIndex) isManipulated.
- Parameters:
nodeIndex- a int- Returns:
- a boolean
-
setManipulated
public void setManipulated(int nodeIndex, boolean manipulated) Setter for the field
manipulated.- Parameters:
nodeIndex- a intmanipulated- a boolean
-
toString
-
equals
Compares the current instance with the specified object for equality.- Overrides:
equalsin classObject- Parameters:
o- the object to be compared with the current instance- Returns:
- true if the specified object is equal to the current instance, false otherwise.
- Throws:
IllegalArgumentException- if the specified object is not an instance of SemManipulation.
-
hashCode
-