Class InterventionalStatement
java.lang.Object
org.tweetyproject.causal.semantics.CausalStatement
org.tweetyproject.causal.semantics.InterventionalStatement
- Direct Known Subclasses:
CounterfactualStatement
This class describes an interventional causal statement wrt. some
"Given phi, if 'v' would be 'x' then psi would be true"
where 'v' is some atom and 'x' is a truth value
CausalKnowledgeBase of the form:"Given phi, if 'v' would be 'x' then psi would be true"
where 'v' is some atom and 'x' is a truth value
- Author:
- Julian Sander, Lars Bengel
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new empty interventional causal statementInterventionalStatement(Collection<PlFormula> observations, Map<Proposition, Boolean> interventions, PlFormula conclusion) Initializes a new interventional causal statementInterventionalStatement(Collection<PlFormula> observations, PlFormula conclusion) Initializes a new interventional causal statement without interventions -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddIntervention(Proposition atom, boolean value) Add a new intervention which sets the given atom to the given truth value to the causal statementRetrieves the interventions of this causal statement.Methods inherited from class org.tweetyproject.causal.semantics.CausalStatement
addObservation, getConclusion, getObservations, setConclusion
-
Constructor Details
-
InterventionalStatement
public InterventionalStatement(Collection<PlFormula> observations, Map<Proposition, Boolean> interventions, PlFormula conclusion) Initializes a new interventional causal statement- Parameters:
observations- Observations of causal atomsinterventions- A set of interventions on causal atomsconclusion- Conclusion of the causal statement
-
InterventionalStatement
Initializes a new interventional causal statement without interventions- Parameters:
observations- Observations of causal atomsconclusion- Conclusion of the causal statement
-
InterventionalStatement
public InterventionalStatement()Initializes a new empty interventional causal statement
-
-
Method Details
-
addIntervention
Add a new intervention which sets the given atom to the given truth value to the causal statement- Parameters:
atom- some causal atomvalue- some truth value- Returns:
- TRUE iff the intervention is added successfully
-
getInterventions
Retrieves the interventions of this causal statement.- Returns:
- A Msp containing the interventions mapped from explainable atoms to their respective boolean values.
-