Commit 50e7f4e4 authored by Thierry Martinez's avatar Thierry Martinez

Events and install MacOS

parent e2c36b46
:- module(
events,
[
add_event/2,
list_events/0
]
).
add_event(Condition, ParameterValues) :-
biocham_command(*),
type(Condition, condition),
type(ParameterValues, '*'(parameter = simple_kinetics)),
doc('
sets up an event that will be fired each time the condition given as first
argument goes from false to true.
This command is effective in numerical simulations only.
Upon firing, the parameters receive new values
computed from the expression.
The initial values of the parameters are restored after the simulation.'),
\+ (
member(ParameterValue, ParameterValues),
\+ (
add_item(event, event(Condition, ParameterValue))
)
).
list_events :-
biocham_command,
doc('lists all the declared events.'),
list_items([kind: event]).
brew install swi-prolog gsl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment