It would be very helpful if there was a way of creating rules from within the JAVA interface. The reason that I'd like to be able to do this is so that when I read in a flux of an ionic current from NEURON, I could then get SpatialKappa to do the work of adding the agent to the cytoplasmic simulation. What I'm doing at the moment is to add in the agent in one lump per timestep (at the half-way point of the timestep).
So what I'd like to be able to do is to create at the start of the simulation, a rule such as:
-> ca(x) @ k
where k could be varied from timestep to timestep.
Perhaps the method could be a modified version of KappaModel.addTransition() that allows the agent name to specified as a string and returns a reference. The rate could then be altered using Transition.setRate().
What do you think?
It would be very helpful if there was a way of creating rules from within the JAVA interface. The reason that I'd like to be able to do this is so that when I read in a flux of an ionic current from NEURON, I could then get SpatialKappa to do the work of adding the agent to the cytoplasmic simulation. What I'm doing at the moment is to add in the agent in one lump per timestep (at the half-way point of the timestep).
So what I'd like to be able to do is to create at the start of the simulation, a rule such as:
-> ca(x) @ k
where k could be varied from timestep to timestep.
Perhaps the method could be a modified version of KappaModel.addTransition() that allows the agent name to specified as a string and returns a reference. The rate could then be altered using Transition.setRate().
What do you think?