#15850: FiniteStateMachine: provide hook on_duplicate_transition
-------------------------------------+-------------------------------------
Reporter: cheuberg | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.2
Component: combinatorics | Resolution:
Keywords: | Merged in:
finite_state_machine | Reviewers:
Authors: Clemens | Work issues:
Heuberger, Daniel Krenn | Commit:
Report Upstream: N/A | 12351e2a78fa8bf3b6487495499826eacdf9ebdb
Branch: | Stopgaps:
u/cheuberg/fsm/on_duplicate_transition|
Dependencies: #15841, #15847, |
#15848 |
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Clemens Heuberger, Daniel Krenn', 'oldvalue':
u'Clemens Heuberger'}):
* status: new => needs_review
* author: Clemens Heuberger => Clemens Heuberger, Daniel Krenn
* cc: dkrenn, skropf (added)
* dependencies: => #15841, #15847, #15848
* branch: => u/cheuberg/fsm/on_duplicate_transition
* commit: => 12351e2a78fa8bf3b6487495499826eacdf9ebdb
Old description:
> When inserting a transition which is already present, this
> is simply ignored. By providing a hook on_duplicate_transition, user
> defined behaviour shall be made possible.
>
> I am preparing a patch and will push it in a few days.
New description:
Previously, when inserting a transition which is already present, this
was simply ignored. By providing a hook {{{on_duplicate_transition}}},
user
defined behaviour is now possible. As examples, three functions are
provided (the default ignore, maintaining the previous behaviour;
raise error or add input label). The latter may be used to model a
Markov chain where the input labels are interpreted als transition
probabilities.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/15850#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.