Stuck with instance based Model
-
2012년 2월 28일 화요일 오후 3:41
Hi all,
I have tried to play around with instance based model in SE. My implementation has a constructor, which is also inherited along with all other methods in the model. I just left it empty(as it was done when one chooses instances based model in SE). The problem is that none of my other actions were even explorered once. I get an infinite sequence of the action of the constructor, though some of the actions were valid as well and bounds were hit. I'm using typebinding. Donno what is going wrong.
Thanks.
모든 응답
-
2012년 2월 29일 수요일 오전 9:24
Hi Vivek.Vishal,
My guess is that maybe everything is ok, except that your model is infinite.
Have you already tried to limit the number of instances you allow to create?
You can do this with a scenario like this (2 instances, similar to SE example machine "SlicedThreadModelProgram"):new ComplexThread; new ComplexThread; ( (_;_)* |?| !new ComplexThread)
You can see now if your other rule methods are active, because you should not hit bounds due to infinite instance creation any more.
Hope this helps
- 답변으로 제안됨 Yiming Cao 2012년 3월 5일 월요일 오전 9:07
- 답변으로 표시됨 Vivek.Vishal 2012년 3월 30일 금요일 오전 7:42

