namespace Model;
public class Cable_result
{
public bool success { get; set; }
public double time { get; set; }
public int Num { get; set; }
}
public class Cable_slippage
{
// 索降
public static Cable_result get_result_time_electric(double H, int person_number, double windspeed, double vis, double descendspeed)
{
Cable_result result = new Cable_result();
if (windspeed < 8 && vis >3)
{
result.time = (person_number * H) / descendspeed;
result.success = true;
result.Num = person_number;
}
else
{
result.success = false;
result.time = 0;
result.Num = 0;
}
return result;
}
///
/// 滑降
///
///
///
/// 风速:
///
///
///
public static Cable_result get_result_time_rope(double H, int person_number, double windspeed, double vis, double descendspeed)
{
// descendspeed < 8 m/s
Cable_result result = new Cable_result();
if (windspeed < 8 && vis > 3)
{
result.time = (person_number * H) / descendspeed;
result.success = true;
result.Num = person_number;
}
else
{
result.success = false;
result.time = 0;
result.Num = 0;
}
return result;
}
}