Class BooleanResult<TModel, TMetadata>
- Namespace
- Motiv.HigherOrderProposition
- Assembly
- Motiv.dll
Represents a boolean result with an associated model and metadata.
public sealed class BooleanResult<TModel, TMetadata> : BooleanResultBase<TMetadata>, IEquatable<BooleanResultBase>, IEquatable<bool>
Type Parameters
TModelThe type of the associated model.
TMetadataThe type of the metadata.
- Inheritance
-
BooleanResultBase<TMetadata>BooleanResult<TModel, TMetadata>
- Implements
- Inherited Members
- Extension Methods
Properties
Causes
Gets the causes of the result. These are the underlying results that determined the final result.
public override IEnumerable<BooleanResultBase> Causes { get; }
Property Value
CausesWithValues
Gets the causes of the result, with metadata. These are the underlying results that determined the final result.
public override IEnumerable<BooleanResultBase<TMetadata>> CausesWithValues { get; }
Property Value
- IEnumerable<BooleanResultBase<TMetadata>>
Description
Gets the description of the result.
public override ResultDescriptionBase Description { get; }
Property Value
Explanation
Gets the explanation for the result, including any underlying explanations that led to this result.
public override Explanation Explanation { get; }
Property Value
MetadataTier
Gets the metadata as a hierarchy of metadata nodes, with the root node representing the metadata yielded by this result's proposition.
public override MetadataNode<TMetadata> MetadataTier { get; }
Property Value
- MetadataNode<TMetadata>
Model
Gets the model that this result evaluated.
public TModel Model { get; }
Property Value
- TModel
Satisfied
Gets a value indicating whether the result is satisfied.
public override bool Satisfied { get; }
Property Value
Underlying
Gets the underlying boolean result that this result encapsulates.
public override IEnumerable<BooleanResultBase> Underlying { get; }
Property Value
UnderlyingWithValues
Gets the underlying boolean result that led to this result, that also shares the same metadata type.
public override IEnumerable<BooleanResultBase<TMetadata>> UnderlyingWithValues { get; }
Property Value
- IEnumerable<BooleanResultBase<TMetadata>>