Record Class RecursiveBlocking.BlockingResult
java.lang.Object
java.lang.Record
edu.cmu.tetrad.search.RecursiveBlocking.BlockingResult
- Record Components:
blockingSet- the blocking set found, ornullon failureindeterminate- true iff the null result was due to a search limit rather than a proven impossibility
- Enclosing class:
RecursiveBlocking
public static record RecursiveBlocking.BlockingResult(Set<Node> blockingSet, boolean indeterminate)
extends Record
The result of a blocking-set search.
Three outcomes are possible:
- Success:
blockingSetis non-null. A candidate separating set was found and should be tested for independence. - Unblockable:
blockingSetis null andindeterminateis false. A path exists that cannot be blocked regardless of Z — no separator exists within the graph structure. - Indeterminate:
blockingSetis null andindeterminateis true. The search hit a recursion depth or depth limit before it could confirm or rule out a separator. A legal-PAG verdict of INCONCLUSIVE should be reported upstream rather than ILLEGAL.
-
Constructor Summary
ConstructorsConstructorDescriptionBlockingResult(Set<Node> blockingSet, boolean indeterminate) Creates an instance of aBlockingResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockingSetrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfound()True iff a blocking set was found.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theindeterminaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockingResult
Creates an instance of aBlockingResultrecord class.- Parameters:
blockingSet- the value for theblockingSetrecord componentindeterminate- the value for theindeterminaterecord component
-
-
Method Details
-
found
public boolean found()True iff a blocking set was found.- Returns:
- true iff
blockingSetis non-null
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
blockingSet
Returns the value of theblockingSetrecord component.- Returns:
- the value of the
blockingSetrecord component
-
indeterminate
public boolean indeterminate()Returns the value of theindeterminaterecord component.- Returns:
- the value of the
indeterminaterecord component
-