Class DeonticLogicSolver
java.lang.Object
org.episteme.social.philosophy.DeonticLogicSolver
Provides logic algorithms for norms, obligations, and permissions (Deontic Logic).
Deontic logic is the field of philosophical logic that is concerned with obligation, permission, and related concepts. This solver supports the analysis of moral codes and normative consistency through the standard Deontic Square.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCategories of normative status. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanVerifies if a set of norms is logically consistent.resolveMode(boolean obligatory, boolean forbidden) Resolves the deontic status of an action based on its requirement and prohibition status.
-
Method Details
-
resolveMode
Resolves the deontic status of an action based on its requirement and prohibition status.- Parameters:
obligatory- true if the action is requiredforbidden- true if the action is prohibited- Returns:
- the resulting DeonticMode
- Throws:
IllegalStateException- if a contradiction (both obligatory and forbidden) is detected
-
isNormativelyConsistent
Verifies if a set of norms is logically consistent. Checks if any action is both obligatory and has an obligatory negation.- Parameters:
norms- Map of action descriptions to their deontic status- Returns:
- true if no internal contradictions are found
-