Skip to content

How to forbid transition in a multiple state TPS network? #692

Description

@sroet

I was trying to build a multiple state TPS network that excluded (or forbids) a specific transition, however I ran into some unexpected behaviour.

As can be seen in the ipynb in this directory, if I don't include the B <-> C transition, it doesn't stop the simulation when reaching state C from B (or reaching state B from C), but instead runs until it reaches max length, finds a self transition or a valid transition.

I wondered if this is the intended behaviour and if so, if there is a way to construct a TPSNetwork that stops the simulation when reaching any state and rejects if it is a B <-> C transition?

Activity

  1. self-assigned this
    on Jul 14, 2017
  2. dwhswenson commented on Jul 14, 2017

    @dwhswenson
    Member

    This should be relatively easy to do, and the behavior should be this way by default (stop when you enter any state).

    I think that all this will require is:

    • modify Transition objects to take a list of forbidden volumes (default None)
    • modify the network code so that from_state_pairs uses that forbidden volume (also requires moving the creation of the set of initial and final states outside the loop)

    @sroet tells me this is not urgent, and I have a lot of my plate right now, so I'll come back to fixing this at a later date.

  3. added this to the 1.0 milestone on Oct 12, 2017
  4. dwhswenson commented on Apr 1, 2019

    @dwhswenson
    Member

    I don't think this will create incompatibilities, so we can move it to 1.x milestone.

  5. modified the milestones: 1.0, 1.x on Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions