@@ -42,11 +42,17 @@ <h2><a name="index">Function Index</a></h2>
4242< tr > < td valign ="top "> < a href ="#bite-1 "> bite/1</ a > </ td > < td > Adds the given task in the replicated task set.</ td > </ tr >
4343< tr > < td valign ="top "> < a href ="#clusterize-0 "> clusterize/0</ a > </ td > < td > Attempts to discover and join other neighboring nodes.</ td > </ tr >
4444< tr > < td valign ="top "> < a href ="#contagion-0 "> contagion/0</ a > </ td > < td > Form Lasp cluster without attempting to ping neighbors beforehand.</ td > </ tr >
45+ < tr > < td valign ="top "> < a href ="#declare-4 "> declare/4</ a > </ td > < td > Shortcut function exposing the utility function that can be
46+ used to pass more readable arguments to create a task model variable
47+ instead of binary strings.</ td > </ tr >
4548< tr > < td valign ="top "> < a href ="#get_all_tasks-0 "> get_all_tasks/0</ a > </ td > < td > Returns current view of all tasks.</ td > </ tr >
4649< tr > < td valign ="top "> < a href ="#get_bench-0 "> get_bench/0</ a > </ td > < td > </ td > </ tr >
4750< tr > < td valign ="top "> < a href ="#get_preys-0 "> get_preys/0</ a > </ td > < td > Returns a list of known remote hostnames
4851 that could be potential neighbors.</ td > </ tr >
52+ < tr > < td valign ="top "> < a href ="#light-0 "> light/0</ a > </ td > < td > </ td > </ tr >
53+ < tr > < td valign ="top "> < a href ="#mintemp-0 "> mintemp/0</ a > </ td > < td > </ td > </ tr >
4954< tr > < td valign ="top "> < a href ="#pandemia-0 "> pandemia/0</ a > </ td > < td > Close disterl TCP connections with neighboring nodes.</ td > </ tr >
55+ < tr > < td valign ="top "> < a href ="#rainbow-0 "> rainbow/0</ a > </ td > < td > </ td > </ tr >
5056< tr > < td valign ="top "> < a href ="#start-0 "> start/0</ a > </ td > < td > Start the application.</ td > </ tr >
5157< tr > < td valign ="top "> < a href ="#stop-0 "> stop/0</ a > </ td > < td > Stop the Application.</ td > </ tr >
5258< tr > < td valign ="top "> < a href ="#venom-0 "> venom/0</ a > </ td > < td > Collect data based on sensors available on Pmod modules and store
@@ -90,6 +96,27 @@ <h3 class="function"><a name="contagion-0">contagion/0</a></h3>
9096< p > < tt > contagion() -> [{error, atom()} | {ok, atom()}]</ tt > < br > </ p >
9197</ div > < p > Form Lasp cluster without attempting to ping neighbors beforehand.</ p >
9298
99+ < h3 class ="function "> < a name ="declare-4 "> declare/4</ a > </ h3 >
100+ < div class ="spec ">
101+ < p > < tt > declare(Name::atom(), Targets::[node()] | all, ExecType::single | permanent, Func::function()) -> < a href ="#type-task "> task()</ a > | < a href ="erlang.html#type-exception "> erlang:exception()</ a > </ tt > < br > </ p >
102+ </ div > < p > < p > Shortcut function exposing the utility function that can be
103+ used to pass more readable arguments to create a task model variable
104+ instead of binary strings. The ExecType argument can currently not
105+ provide a transient mode, a task is executed either once or permanently.
106+ Removing the task from the CRDT does not prevent nodes to keep executing it.
107+ But similar behavior can be created with a single execution task that
108+ specifies a function with several loops. However this does not allow the
109+ worker to have full control over the load, since backpressure can be applied
110+ by spawning a process that executes a permanent task at a controlled
111+ frequency that can be based on any stress parameter. Meanwhile a single
112+ execution task could possibly overload the worker, as iterations are
113+ embedded inside a single process.</ p >
114+
115+ < p > When Grow-only Counters and Sets are used, the transient can be achieved
116+ using Lasp's monotonic read function to have a distributed treshold.</ p >
117+
118+ </ p >
119+
93120< h3 class ="function "> < a name ="get_all_tasks-0 "> get_all_tasks/0</ a > </ h3 >
94121< div class ="spec ">
95122< p > < tt > get_all_tasks() -> [< a href ="achlys.html#type-task "> achlys:task()</ a > ] | []</ tt > < br > </ p >
@@ -106,11 +133,26 @@ <h3 class="function"><a name="get_preys-0">get_preys/0</a></h3>
106133</ div > < p > Returns a list of known remote hostnames
107134 that could be potential neighbors.</ p >
108135
136+ < h3 class ="function "> < a name ="light-0 "> light/0</ a > </ h3 >
137+ < div class ="spec ">
138+ < p > < tt > light() -> < a href ="erlang.html#type-function "> erlang:function()</ a > </ tt > < br > </ p >
139+ </ div >
140+
141+ < h3 class ="function "> < a name ="mintemp-0 "> mintemp/0</ a > </ h3 >
142+ < div class ="spec ">
143+ < p > < tt > mintemp() -> < a href ="erlang.html#type-function "> erlang:function()</ a > </ tt > < br > </ p >
144+ </ div >
145+
109146< h3 class ="function "> < a name ="pandemia-0 "> pandemia/0</ a > </ h3 >
110147< div class ="spec ">
111148< p > < tt > pandemia() -> ok</ tt > < br > </ p >
112149</ div > < p > Close disterl TCP connections with neighboring nodes.</ p >
113150
151+ < h3 class ="function "> < a name ="rainbow-0 "> rainbow/0</ a > </ h3 >
152+ < div class ="spec ">
153+ < p > < tt > rainbow() -> < a href ="erlang.html#type-function "> erlang:function()</ a > </ tt > < br > </ p >
154+ </ div >
155+
114156< h3 class ="function "> < a name ="start-0 "> start/0</ a > </ h3 >
115157< div class ="spec ">
116158< p > < tt > start() -> ok</ tt > < br > </ p >
0 commit comments