Class CounterfactualStatement
java.lang.Object
org.tweetyproject.causal.semantics.CausalStatement
org.tweetyproject.causal.semantics.InterventionalStatement
org.tweetyproject.causal.semantics.CounterfactualStatement
This class describes a counterfactual causal statement wrt. some
"Given phi, if 'v' had been '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' had been '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 counterfactual causal statementCounterfactualStatement(Collection<PlFormula> observations, Map<Proposition, Boolean> interventions, PlFormula conclusion) Initializes a new counterfactual causal statementCounterfactualStatement(Collection<PlFormula> observations, PlFormula conclusion) Initializes a new counterfactual causal statement without interventions -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddCounterfactualIntervention(Proposition atom, boolean value) Add a new intervention which sets the counterfactual copy of the given atom to the given truth valueMethods inherited from class org.tweetyproject.causal.semantics.InterventionalStatement
addIntervention, getInterventionsMethods inherited from class org.tweetyproject.causal.semantics.CausalStatement
addObservation, getConclusion, getObservations, setConclusion
-
Constructor Details
-
CounterfactualStatement
public CounterfactualStatement(Collection<PlFormula> observations, Map<Proposition, Boolean> interventions, PlFormula conclusion) Initializes a new counterfactual causal statement- Parameters:
observations- Observations of causal atomsinterventions- A set of interventions on causal atomsconclusion- Conclusion of the causal statement
-
CounterfactualStatement
Initializes a new counterfactual causal statement without interventions- Parameters:
observations- Observations of causal atomsconclusion- Conclusion of the causal statement
-
CounterfactualStatement
public CounterfactualStatement()Initializes a new empty counterfactual causal statement
-
-
Method Details
-
addCounterfactualIntervention
Add a new intervention which sets the counterfactual copy of the given atom to the given truth value- Parameters:
atom- some causal atomvalue- some truth value- Returns:
- TRUE iff the intervention is added successfully
-