Dear forum readers,
I've noticed some strange behaviour as I wanted to test if a parameter change is detected by the statechart of an active
object. Here is the description of a simple test model, it can be downloaded from
http://sim.drahtwarenhandlung.at/download (filename TransitionTestModel.zip):
For simplicity, everything is contained in Main. There is a statechart with just one state, and an internal transition
inside this state. The trigger for this transition is a rate, where I entered the variable "stepVar1". This
variable is changed every 5 time steps between 0 and 1. A variable "counter" counts the transitions which are
taken. I would await that at the beginning (stepVar1 is 0) there will be no counts. Then, as stepVar1 changes to 1,
there will be counts, until time 10, when stepVar1 is 0 again. At time 15, there should be counts again. However, when I
run the model, the first two parameter changes seem to be noticed, but then counter stays constant infinitely. I also
tried calling onChange() in the event which changes stepVar1.
The behaviour is not really understandable to me, because it works two times, and then no more. Maybe anybody has an
explanation for this (or it's just a mistake that I made in the test model...)?
Best regards,
Patrick
Mauro — 26.04.10
I have similar problem. Do you send me your model for Anylogic 6.2?
Did you solve the problem?
Waggery — 12.10.11
I have similar problem. Did you solve the problem?