123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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;
- }
- /// <summary>
- /// 滑降
- /// </summary>
- /// <param name="H"></param>
- /// <param name="person_number"></param>
- /// <param name="windspeed">风速: </param>
- /// <param name="vis"></param>
- /// <param name="descendspeed"></param>
- /// <returns></returns>
- 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;
- }
- }
|