Module achlys

Top level module operating the achlys application as well as providing the main API to the underlying components.

Authors: Igor Kopestenski (igor.kopestenski@uclouvain.be) [web site: https://github.com/Laymer/achlys].

Description

Top level module operating the achlys application as well as providing the main API to the underlying components.

Data Types

channel()

channel() = atom()

listen_addr()

listen_addr() = #{ip => inet:ip_address(), port => non_neg_integer()}

node_spec()

node_spec() = #{name => node(), listen_addrs => [listen_addr()], channels => [channel()], parallelism => non_neg_integer()}

Function Index

aggregate_sensor_data/0Collect data based on sensors available on Pmod modules and store aggregated values in corresponding Lasp variable.
clusterize/0Attempts to discover and join other neighboring nodes.
get_aggregate/1Returns the temperature aggregates seen by the current node.
get_temp/0Returns the temperature aggregates seen by the current node.
start/0Start the application.
stop/0Stop the Application.

Function Details

aggregate_sensor_data/0

aggregate_sensor_data() -> ok

Collect data based on sensors available on Pmod modules and store aggregated values in corresponding Lasp variable.

clusterize/0

clusterize() -> [node_spec()]

Attempts to discover and join other neighboring nodes.

get_aggregate/1

get_aggregate(Data::atom()) -> list()

Returns the temperature aggregates seen by the current node.

get_temp/0

get_temp() -> list()

Returns the temperature aggregates seen by the current node.

start/0

start() -> ok

Start the application.

stop/0

stop() -> ok

Stop the Application


Generated by EDoc