From: Leandro W. <lea...@gm...> - 2017-05-25 15:23:51
|
Hi Sarah, Child objects such as Kinetic Law, Trigger, etc are not allowed to have dimensions (Section 3.3 and rule arrays-20107) . However, you can use the dimension Ids of the parent in the child's math. Species Reference and event assignment inherit dimensions from the parent, which adds this problem of implicit dimensions for such cases. We need this because, for example, indexing an element in an array of species reference within an array of reactions would create ambiguity without the implicit dimensions: n = 2 Reaction R[n] - SpeciesReference s[n] * not valid * R_0 R_0 s_0 s_0 s_1 s_1 We assume implicit dimensions to facilitate differentiating between the species references: R_0 R_1 s_0_0 s_1_0 s_0_1 s_1_1 I guess we missed this in the spec. Leandro On Thu, May 25, 2017 at 9:01 AM, Sarah Keating <ske...@ca...> wrote: > Hi Guys > > The spec does not state it explicitly (or I have missed it - sorry if > this is the case) but am I correct in assuming that child objects > inherit the dimensionality of the parent. > > So > > a 1 x 10 reaction will have an instance of each of its children within > it when expanded; without the need to say that each > speciesRef/kineticLaw is also a 1 x 10 array. > > Similarly Event and Trigger/etc ... > > The examples used would suggest this is true. > > But both speciesReference and EventAssignment objects are permitted to > have listOfDimensions. So what would that mean ?? Would they have to > have the same dimensions as the parent or is it allowing for these to > have dimensions when the parents do not! > > Sarah > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > sbml-arrays mailing list > sbm...@li... > https://lists.sourceforge.net/lists/listinfo/sbml-arrays > |