Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(notes for introducing activation columns) #48

Open
sverweij opened this issue Jun 22, 2018 · 1 comment
Open

(notes for introducing activation columns) #48

sverweij opened this issue Jun 22, 2018 · 1 comment
Assignees

Comments

@sverweij
Copy link
Member

sverweij commented Jun 22, 2018

a basic scenario

mscgenjs_chart-2

Handling proper arrow endings properly

mscgenjs_chart-3

Handling colors

mscgenjs_chart-4

Integrating ...

mscgenjs_chart-5

Re-activation?

mscgenjs_chart-8

Activation on self reference?

TODO

some pseudo code

// pEntity state machine:
initial     -> inactive;
inactive    -> activated  : activate; // WHERE?
activated   -> active     : initial activation rendered; // HERE
active      -> deactivated: deactivate; // WHERE?
deactivated -> inactive   : deactivation rendered; //HERE
        /* switch (pEntity.state) {
            case 'activated':
                render activation line top
                pEntity.state = 'active';
                break;
            case 'active':
                render activation line continuation
                break;
            case 'deactivated':
                render activation line bottom
                pEntity.state = 'inactive'
                break;
        }
        */

auto activation scenarios

msc {
  a, b, c [label=" ", linecolor=transparent, arclinecolor=lightgrey];

  a =>> b [label="hello"],
  c .. b [label="activate"];
  b >> a,
  c .. b [label="deactivate"];
  
  ...;
  a =>> b [label="hello too"],
  c .. b [label="activate"];
  b >> a;
  b >> a,
  c .. b [label="deactivate"];
  
  ...;
  a =>> b [label="hello again"],
  c .. b [label="activate (I)"];
  a =>> b [label="hello again"],
  c .. b [label="activate (again - II)"];
  b >> a,
  c .. b [label="deactivate (II)"];
  b >> a,
  c .. b [label="deactivate (I)"];
  
  ...;
  a =>> b [label="hello again"],
  c .. b [label="activate (I)"];
  b =>> b [label="hello me"],
  c .. b [label="activate and\ndeactivate (II)", textbgcolor="transparent"];

  b >> a,
  c .. b [label="deactivate (I)"];
}

mscgenjs_chart-9

@sverweij sverweij self-assigned this Jun 22, 2018
@sverweij sverweij changed the title (notes for introducing activation columns if we ever get to that ...) (notes for introducing activation columns) Jun 22, 2018
@stale
Copy link

stale bot commented Jul 1, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix label Jul 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant