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 TypeMethodDescriptionboolean
Compares the current instance with the specified object for equality.getNode
(int nodeIndex) getNode.int
getNodeIndex
(String nodeName) getNodeIndex.int
hashCode()
hashCode.boolean
isManipulated
(int nodeIndex) isManipulated.static SemManipulation
Generates a simple exemplar of this class to test serialization.void
setManipulated
(int nodeIndex, boolean manipulated) Setter for the fieldmanipulated
.toString()
toString.
-
Constructor Details
-
SemManipulation
-
SemManipulation
Constructor for SemManipulation.
- Parameters:
manipulation
- aSemManipulation
object
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization.- Returns:
- a
SemManipulation
object
-
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:
equals
in 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
-