本文整理汇总了C#中InputValue.CheckInRange方法的典型用法代码示例。如果您正苦于以下问题:C# InputValue.CheckInRange方法的具体用法?C# InputValue.CheckInRange怎么用?C# InputValue.CheckInRange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InputValue
的用法示例。
在下文中一共展示了InputValue.CheckInRange方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetWoodyDecayRate
//---------------------------------------------------------------------
public void SetWoodyDecayRate(ISpecies species,
InputValue<double> newValue)
{
Debug.Assert(species != null);
woodyDecayRate[species] = newValue.CheckInRange(0.0, 1.0, "woodyDecayRate");
}
示例2: SetLeafLongevity
//---------------------------------------------------------------------
public void SetLeafLongevity(ISpecies species,
InputValue<double> newValue)
{
Debug.Assert(species != null);
leafLongevity[species] = newValue.CheckInRange(1.0, 10.0, "leafLongevity");
}
示例3: SetMortCurveShapeParm
//---------------------------------------------------------------------
public void SetMortCurveShapeParm(ISpecies species,
InputValue<double> newValue)
{
Debug.Assert(species != null);
mortCurveShapeParm[species] = newValue.CheckInRange(5.0, 25.0, "mortCurveShapeParm");
}
示例4: SetLeafLignin
//---------------------------------------------------------------------
public void SetLeafLignin(ISpecies species,
InputValue<double> newValue)
{
Debug.Assert(species != null);
leafLignin[species] = newValue.CheckInRange(0, 0.4, "leafLignin");
}
示例5: SetGrowthCurveShapeParm
//---------------------------------------------------------------------
public void SetGrowthCurveShapeParm(ISpecies species,
InputValue<double> newValue)
{
Debug.Assert(species != null);
growthCurveShapeParm[species] = newValue.CheckInRange(0, 1.0, "growthCurveShapeParm");
}
示例6: SetAET
//---------------------------------------------------------------------
public void SetAET(IEcoregion ecoregion,
InputValue<int> newValue)
{
Debug.Assert(ecoregion != null);
aet[ecoregion] = newValue.CheckInRange(0, 10000, "aet"); //FIXME: FIND GOOD MAXIMUM
}
示例7: SetDrought_Sens
//---------------------------------------------------------------------
public void SetDrought_Sens(ISpecies species,
InputValue<double> newValue)
{
Debug.Assert(species != null);
drought_Sens[species] = (int)newValue.CheckInRange(1, 3);
}
示例8: SetDrought_BSE
//---------------------------------------------------------------------
public void SetDrought_BSE(ISpecies species,
InputValue<double> newValue)
{
Debug.Assert(species != null);
drought_BSE[species] = newValue.CheckInRange(-100.0, 100.0);
}