Files
wlan-cloud-loadsim/include/simengine.hrl
Stephane Bourque d421ce44f1 Fixing API
2020-12-18 00:10:03 -08:00

38 lines
1.0 KiB
Erlang

%%%-------------------------------------------------------------------
%%% @author stephb
%%% @copyright (C) 2020, Arilia Wireless Inc.
%%% @doc
%%%
%%% @end
%%% Created : 26. Nov 2020 10:25 p.m.
%%%-------------------------------------------------------------------
-author("stephb").
-record( simulation, { name = <<>> :: binary(),
ca = <<>> :: binary(),
num_devices = 0 :: integer(),
assets_created = false :: boolean(),
creation_date = <<>> :: binary(),
start_date = <<>> :: binary(),
end_date = <<>> :: binary(),
nodes = [] :: [ node() ],
internal = false :: boolean(),
opensync_server_name = <<>> :: binary(),
opensync_server_port = 6643 :: integer()
}).
-record(sim_action,{
id = <<>> :: binary(),
action = <<>> :: binary(),
simulation = <<>> :: binary(),
parameters = #{} :: #{atom()=>term()},
status = <<>> :: binary(),
created = <<>> :: binary(),
done_count = 0 :: integer(),
target_count :: integer(),
completed = <<>>}).
-type simulation()::#simulation{}.
-type sim_action()::#sim_action{}.
-export_type([simulation/0,sim_action/0]).