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

-define(wMod, wMod). %% worker Mod
-define(wFCnt, wFCnt). %% worker fixed count
-define(wTCnt, wTCnt). %% worker temp count
-define(wTLive, wTLive). %% temp worker idle time(s) after to die
-define(fTpm, fTpm). %% Factory task processing mode fifo lifo
-define(fTLfl, fTLfl). %% Factory task load line When the factory load exceeds this value, temp workers can be hired
-define(fTMax, fTMax). %% Maximum plant load Beyond this value, the factory will no longer accept tasks
-type fawOtp() :: {?wMod, atom()} |{?wFCnt, pos_integer()} |{?wTCnt, pos_integer()} |{?wTLive, pos_integer()} |{?fTpm, fifo | lifo} |{?fTLfl, pos_integer()} | {?fTMax, pos_integer()}.
-define(FawDefV, [
{?wMod, fwWTP}
, {?wFCnt, 30}
, {?wTCnt, 20}
, {?wTLive, 300}
, {?fTpm, fifo}
, {?fTLfl, 10000}
, {?fTMax, 10000}
]).
-type fawOtps() :: [fawOtp(), ...].
-define(ERR(Format, Args), error_logger:error_msg(Format, Args)).