You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
977 B

  1. -define(wMod, wMod). %% worker Mod
  2. -define(wFCnt, wFCnt). %% worker fixed count
  3. -define(wTCnt, wTCnt). %% worker temp count
  4. -define(wTLive, wTLive). %% temp worker idle time(s) after to die
  5. -define(fTpm, fTpm). %% Factory task processing mode fifo lifo
  6. -define(fTLfl, fTLfl). %% Factory task load line When the factory load exceeds this value, temp workers can be hired
  7. -define(fTMax, fTMax). %% Maximum plant load Beyond this value, the factory will no longer accept tasks
  8. -type fawOtp() :: {?wMod, atom()} |{?wFCnt, pos_integer()} |{?wTCnt, pos_integer()} |{?wTLive, pos_integer()} |{?fTpm, fifo | lifo} |{?fTLfl, pos_integer()} | {?fTMax, pos_integer()}.
  9. -define(FawDefV, [
  10. {?wMod, fwWTP}
  11. , {?wFCnt, 30}
  12. , {?wTCnt, 20}
  13. , {?wTLive, 300}
  14. , {?fTpm, fifo}
  15. , {?fTLfl, 10000}
  16. , {?fTMax, 10000}
  17. ]).
  18. -type fawOtps() :: [fawOtp(), ...].
  19. -define(ERR(Format, Args), error_logger:error_msg(Format, Args)).