- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
roll states failed!
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-04-2010 12:53 AM - last edited on 08-04-2010 07:10 AM
In function api_roll_n_states(),there are three parameters:HISTORY_STREAM *hs, int nRequest and int& nActual, while nActual indicates number of delta states rolled. I'm wondering, in which situation nActual doesn't equal to nRequest ? Now I've faced with a roll_back failure.It's quite strange that next state of the active delta state is not NULL,but one we've set before.
Re: roll states failed!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-04-2010 08:18 PM
Hi
The "next" state pointer in the model is with respect to roll back, as in "the state obtained when rolling the model back one step."
Regards,
Mohit
Useful links: Delta States Documentation.
Re: roll states failed!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-04-2010 11:13 PM
Hello.Thanks for your attention!
But I just think in the way you described that :
The "next" state pointer in the model is with respect to roll back, as in "the state obtained when rolling the model back one step."
What I'm faced with is when using api_roll_n_states(hs,-1,nActual), nActual returns 0. So the rollback has failed. Yet (hs->get_active_ds)->next() shows one delta state I just want to go to.Why ? Since the "next" state is truly existed,but I can't roll back to it.

