Commit c117f67e authored by Thierry Martinez's avatar Thierry Martinez
parents 9f66b109 10fad23b
This diff is collapsed.
:- module(
molecules,
[
list_molecules/0,
list_locations/0
]
).
list_molecules :-
biocham_command,
doc('lists all the molecules of the current model.'),
enumerate_molecules(L),
format('~w\n', [L]).
list_locations :-
biocham_command,
doc('lists all the locations of the current model.'),
enumerate_molecules(L),
maplist(extract_location,L,R),
format('~w\n', [R]).
extract_location(M,L):-
atom_chars(M,C),
append(_,[':',':'|D],C),
atom_chars(L,D).
......@@ -39,6 +39,8 @@
*** Events
- events.pl
** Listing and defining initial states, molecules and locations
*** Molecules
- molecules.pl
*** Initial state
- initial_state.pl
** Listing and declaring parameters, macros, aliases and invariants
......
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