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 SummaryConstructorsConstructorDescriptionSemManipulation(SemIm semIm) Constructs a container for evidence for the given Bayes IM.SemManipulation(SemManipulation manipulation) Constructor for SemManipulation.
- 
Method SummaryModifier 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- 
SemManipulationConstructs a container for evidence for the given Bayes IM.- Parameters:
- semIm- a- SemImobject
 
- 
SemManipulationConstructor for SemManipulation. - Parameters:
- manipulation- a- SemManipulationobject
 
 
- 
- 
Method Details- 
serializableInstanceGenerates a simple exemplar of this class to test serialization.- Returns:
- a SemManipulationobject
 
- 
getNodeIndexgetNodeIndex. - Parameters:
- nodeName- a- Stringobject
- Returns:
- a int
 
- 
getNodegetNode. - Parameters:
- nodeIndex- a int
- Returns:
- a Nodeobject
 
- 
isManipulatedpublic boolean isManipulated(int nodeIndex) isManipulated. - Parameters:
- nodeIndex- a int
- Returns:
- a boolean
 
- 
setManipulatedpublic void setManipulated(int nodeIndex, boolean manipulated) Setter for the field manipulated.- Parameters:
- nodeIndex- a int
- manipulated- a boolean
 
- 
toStringtoString. 
- 
equalsCompares the current instance with the specified object for equality.- Overrides:
- equalsin class- Object
- 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.
 
- 
hashCodepublic int hashCode()hashCode. 
 
-