Class CounterfactualSimulator
java.lang.Object
org.episteme.social.history.CounterfactualSimulator
Simulates counterfactual historical scenarios ("What if?").
Analyzes historical contingency and potential alternative timelines based on causal chains.
Modernized to use Real for internal weights and divergence factors.
- Since:
- 1.0
- Version:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordInternal representation of a historical event with its causal dependencies.static final recordDefines a specific counterfactual scenario starting from a divergence point.static final recordThe analytical results of a counterfactual simulation. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRegisters a contingency event in the simulation database.static RealcalculateContingency(String eventId) Calculates the historical contingency score of a specific event.static voidPopulates the database with sample historical dataset for simulation testing.Simulates the cascade effects of a counterfactual scenario.suggestCounterfactuals(String eventId) Suggests plausible counterfactual outcomes.
-
Method Details
-
addEvent
Registers a contingency event in the simulation database. -
simulate
public static CounterfactualSimulator.SimulationResult simulate(CounterfactualSimulator.CounterfactualScenario scenario) Simulates the cascade effects of a counterfactual scenario. -
calculateContingency
-
suggestCounterfactuals
-
loadSampleData
public static void loadSampleData()Populates the database with sample historical dataset for simulation testing.
-