This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this provides only the required fields, but we could in principle add more; e.g. dependency graph | |
type DirectJumpAggregation{T,F1,F2,RNG} <: SSAJumpAggregator | |
next_jump::Int | |
next_jump_time::T | |
end_time::T | |
cur_rates::Vector{T} | |
sum_rate::T | |
rates::F1 | |
affects!::F2 | |
save_positions::Tuple{Bool,Bool} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inside src/reactions.jl, or a separate file? | |
import DataStructures: OrderedDict | |
macro reaction_network(ex) | |
def_reaction_network(ex) | |
end | |
function def_reaction_network(ex::Expr) | |
reactions = :([]) |