STAdditionalOutputAddToQuantitiesConditional Method |
Add a set of quantities for one or more components
To get bed load quantites for all non cohesive components that has bed load enabled:
AddToQuantitiesConditional(quantities, stData, st => STComponentQuantities.BedLoad(st), st => st.HasBedLoad);
Namespace:
DHI.Mike1D.STDataAccess
Assembly:
DHI.Mike1D.HDParameterDataAccess (in DHI.Mike1D.HDParameterDataAccess.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public static void AddToQuantitiesConditional(
List<IQuantity> quantities,
STData stData,
Func<STBaseComponent, IQuantity> quantityCreator,
Func<STBaseComponent, bool> condition
)
Public Shared Sub AddToQuantitiesConditional (
quantities As List(Of IQuantity),
stData As STData,
quantityCreator As Func(Of STBaseComponent, IQuantity),
condition As Func(Of STBaseComponent, Boolean)
)
public:
static void AddToQuantitiesConditional(
List<IQuantity^>^ quantities,
STData^ stData,
Func<STBaseComponent^, IQuantity^>^ quantityCreator,
Func<STBaseComponent^, bool>^ condition
)
Parameters
- quantities
- Type: System.Collections.GenericListIQuantity
List of quantities to add to - stData
- Type: DHI.Mike1D.STDataAccessSTData
STData object - quantityCreator
- Type: SystemFuncSTBaseComponent, IQuantity
Quantity creator - condition
- Type: SystemFuncSTBaseComponent, Boolean
Condition on which components to consider
See Also