StateWeightingImpact class

Audit record of how state modified philosophy output.

Annotations
  • @immutable

Constructors

StateWeightingImpact({required StateWeighting appliedWeighting, required Map<String, double> adjustments, required String summary, bool directionPreserved = true, bool prohibitionsPreserved = true, DateTime? appliedAt})
StateWeightingImpact.fromJson(Map<String, dynamic> json)
factory

Properties

adjustments Map<String, double>
Field-to-adjustment-factor mapping.
final
appliedAt DateTime
When the adjustment was applied.
final
appliedWeighting StateWeighting
The state weights that were applied.
final
directionPreserved bool
Confirm philosophy direction was unchanged.
final
hadEffect bool
Whether state had any effect on the output.
no setter
hashCode int
The hash code for this object.
no setterinherited
prohibitionsPreserved bool
Confirm prohibitions were unchanged.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
summary String
Human-readable impact description.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited