%% -------------------------------------------------------------------
%%
  Copyright < 2013 - 2018 > <
   Technische Universität Kaiserslautern , Germany
            , France
   Universidade NOVA de Lisboa , Portugal
   Université catholique de Louvain ( UCL ) , Belgique
     , Portugal
%% >
%%
  This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
  except in compliance with the License .   You may obtain
%% a copy of the License at
%%
%%   -2.0
%%
%% Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
%% KIND, either expressed or implied.  See the License for the
%% specific language governing permissions and limitations
%% under the License.
%%
  List of the contributors to the development of Antidote : see  file .
%% Description and complete License: see LICENSE file.
%% -------------------------------------------------------------------

  @doc Supervise the fsm .
-module(meta_data_manager_sup).
-behavior(supervisor).

-export([
    start_fsm/1,
    start_link/1
]).
-export([init/1]).

start_link(Init) ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, Init).

start_fsm(Args) ->
    supervisor:start_child(?MODULE, Args).

init(Init) ->
    Worker =
        {meta_data_manager, {meta_data_manager, start_link, [Init]}, transient, 5000, worker, [
            meta_data_manager
        ]},
    {ok, {{one_for_one, 5, 10}, [Worker]}}.

 -------------------------------------------------------------------

 >

 Version 2.0 (the "License"); you may not use this file
 a copy of the License at

   -2.0

 Unless required by applicable law or agreed to in writing,
 KIND, either expressed or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.

 Description and complete License: see LICENSE file.
 -------------------------------------------------------------------
  Copyright < 2013 - 2018 > <
   Technische Universität Kaiserslautern , Germany
            , France
   Universidade NOVA de Lisboa , Portugal
   Université catholique de Louvain ( UCL ) , Belgique
     , Portugal
  This file is provided to you under the Apache License ,
  except in compliance with the License .   You may obtain
  software distributed under the License is distributed on an
  " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
  List of the contributors to the development of Antidote : see  file .

  @doc Supervise the fsm .
-module(meta_data_manager_sup).
-behavior(supervisor).

-export([
    start_fsm/1,
    start_link/1
]).
-export([init/1]).

start_link(Init) ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, Init).

start_fsm(Args) ->
    supervisor:start_child(?MODULE, Args).

init(Init) ->
    Worker =
        {meta_data_manager, {meta_data_manager, start_link, [Init]}, transient, 5000, worker, [
            meta_data_manager
        ]},
    {ok, {{one_for_one, 5, 10}, [Worker]}}.
