Class CausalStatement
java.lang.Object
org.tweetyproject.causal.semantics.CausalStatement
- Direct Known Subclasses:
InterventionalStatement
This class describes a basic causal statement wrt. some
"Given phi, it follows that psi holds"
CausalKnowledgeBase of the form:"Given phi, it follows that psi holds"
- Author:
- Julian Sander, Lars Bengel
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new empty causal statementCausalStatement(Collection<PlFormula> observations, PlFormula conclusion) Initializes a new causal statement -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddObservation(PlFormula observation) Add a new observation to the causal statementRetrieves the conclusion of this causal statementRetrieves the observations of this causal statementvoidsetConclusion(PlFormula conclusion) Set a new conclusion of the causal statement
-
Constructor Details
-
CausalStatement
public CausalStatement()Initializes a new empty causal statement -
CausalStatement
Initializes a new causal statement- Parameters:
observations- observations of the causal atomsconclusion- the conclusion of the causal statement
-
-
Method Details
-
addObservation
Add a new observation to the causal statement- Parameters:
observation- some observation of a causal atom- Returns:
- TRUE iff observation is added successfully
-
setConclusion
Set a new conclusion of the causal statement- Parameters:
conclusion- the new conclusion
-
getConclusion
Retrieves the conclusion of this causal statement- Returns:
- The conclusion of this causal statement.
-
getObservations
Retrieves the observations of this causal statement- Returns:
- A copy of the observations of this causal statement
-