BH.oM.Verification.Conditions.ICondition¶
Top level interface for conditions: lightweight objects describing a yes/no question to be asked against another object.
Interface structure¶
Implemented interfaces and base types¶
The ICondition is inheriting from the following base type(s) and implements the following interfaces:
- BH.oM.Base.IObject
Interfaces implementing this interface¶
The following interfaces are implementing this interface:
- BH.oM.Verification.Conditions.ILogicalCollectionCondition
- BH.oM.Verification.Conditions.ILogicalCondition
- BH.oM.Verification.Conditions.ISingleLogicalCondition
- BH.oM.Verification.Conditions.IValueCondition
Classes implementing this interface¶
The following classes are implementing this interface:
- BH.oM.Verification.Conditions.FormulaCondition
- BH.oM.Verification.Conditions.HasId
- BH.oM.Verification.Conditions.HasValue
- BH.oM.Verification.Conditions.IsInDomain
- BH.oM.Verification.Conditions.IsInSet
- BH.oM.Verification.Conditions.IsNotNull
- BH.oM.Verification.Conditions.IsOfType
- BH.oM.Verification.Conditions.LogicalAndCondition
- BH.oM.Verification.Conditions.LogicalNotCondition
- BH.oM.Verification.Conditions.LogicalOrCondition
- BH.oM.Verification.Conditions.ValueCondition
Properties¶
Derived properties¶
The following properties are defined as extension methods in one of the BHoM_Engines
Name | Type | Description | Quantity | Engine |
---|---|---|---|---|
INestedConditions | IEnumerable<ICondition> | Extracts the conditions nested inside a given condition, e.g. conditions nested inside logical conditions. | - | Verification_Engine |
Code and Schema¶
C# implementation¶
Assembly: Verification_oM.dll
The C# interface definition is available on github:
All history and changes of the class can be found by inspection the history.
JSON Schema implementation¶
The object is defined as a JSON schema. You can validate a JSON instance against this schema by reference. To do this, use the schema reference below in a validator like this one.
JSON Schema
{
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/Verification_oM/Conditions/ICondition.json"
}
The JSON Schema is available on github here: