@@ -37,6 +37,7 @@ TheoryReactionNetwork = BasicSchema(
3737 :ModalityAttributeT ,
3838 :PcsOptT ,
3939 :PrmAttributeT ,
40+ :BoolAttributeT ,
4041 ], # AttrTypes
4142 [
4243 # species
@@ -47,6 +48,7 @@ TheoryReactionNetwork = BasicSchema(
4748 (:specCost , :S , :SampleableAttributeT ),
4849 (:specReward , :S , :SampleableAttributeT ),
4950 (:specValuation , :S , :SampleableAttributeT ),
51+ (:specStructured , :S , :BoolAttributeT ),
5052 # transitions
5153 (:trans , :T , :SampleableAttributeT ),
5254 (:transPriority , :T , :SampleableAttributeT ),
@@ -55,6 +57,7 @@ TheoryReactionNetwork = BasicSchema(
5557 (:transProbOfSuccess , :T , :SampleableAttributeT ),
5658 (:transCapacity , :T , :SampleableAttributeT ),
5759 (:transMaxLifeTime , :T , :SampleableAttributeT ),
60+ (:transPreAction , :T , :SampleableAttributeT ),
5861 (:transPostAction , :T , :SampleableAttributeT ),
5962 (:transMultiplier , :T , :SampleableAttributeT ),
6063 (:transName , :T , :DescriptiveAttributeT ),
@@ -81,6 +84,7 @@ const ReactionNetworkSchema = FoldedReactionNetworkType{
8184 Set{Symbol},
8285 FoldedObservable,
8386 Any,
87+ Bool
8488}
8589
8690Base. convert (:: Type{Symbol} , ex:: String ) = Symbol (ex)
@@ -100,6 +104,7 @@ Base.convert(::Type{FoldedObservable}, ex::String) = eval(Meta.parse(ex))
100104prettynames = Dict (
101105 :transRate => [:rate ],
102106 :specInitUncertainty => [:uncertainty , :stoch , :stochasticity ],
107+ :transPreAction => [:preAction , :pre ],
103108 :transPostAction => [:postAction , :post ],
104109 :transName => [:name , :interpretation ],
105110 :transPriority => [:priority ],
@@ -117,6 +122,7 @@ defargs = Dict(
117122 :transCycleTime => 0.0 ,
118123 :transMaxLifeTime => Inf ,
119124 :transMultiplier => 1 ,
125+ :transPreAction => :(),
120126 :transPostAction => :(),
121127 :transName => missing ,
122128 ),
@@ -126,6 +132,7 @@ defargs = Dict(
126132 :specCost => 0.0 ,
127133 :specReward => 0.0 ,
128134 :specValuation => 0.0 ,
135+ :specStructured => false ,
129136 ),
130137 :P => Dict {Symbol,Any} (:prmVal => missing ),
131138 :M => Dict {Symbol,Any} (:metaVal => missing ),
0 commit comments