-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhmm_sup.erl
38 lines (28 loc) · 1007 Bytes
/
hmm_sup.erl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
-module(hmm_sup).
-behaviour(supervisor).
%% API
-export([start_link/0]).
%% Supervisor callbacks
-export([init/1]).
-define(SERVER, ?MODULE).
-define(CMD, "./OldCoMD/LOsolve").
%% -define(CMD, "./hmm").
%%====================================================================
%% API
%%====================================================================
start_link() ->
supervisor:start_link(?MODULE, []).
%% supervisor:start_link({local, ?SERVER}, ?MODULE, []).
%%====================================================================
%% Supervisor callbacks
%%====================================================================
init([]) ->
HMM =
{hmm,
{hmm_srv, start_link, [losolve, ?CMD]},
transient, 2000, worker, dynamic},
Children = [HMM],
{ok, { {one_for_one, 3, 10}, Children }}.
%%====================================================================
%% Internal functions
%%====================================================================