-
Notifications
You must be signed in to change notification settings - Fork 4
Human-readable reachability info #6
Comments
Hi @julianofischer, It's been a while since I last had to do this, but have you tried exporting it using something like: |
It works very well for edges or arcs exporting.
Sorry if I am missing something. |
It looks like you are using "export-edges". ReachabilityTrace extends ArcTrace, so I would expect "export-arcs" to work. |
You're right. 26 5 102.0 145.0
16 8 7.0 214.0
8 16 7.0 214.0
16 8 231.0 274.0
8 16 231.0 274.0
27 19 14.0 709.0
19 22 10.0 710.0
19 27 14.0 710.0
22 19 10.0 710.0 In the older version which I have access, when I run ditl graphs r, I get a trace (name snapshot) like this:
which shows the reachability graph. It is this information I need, however I would like to use the most updated ditl version. |
Got it. It sounds like you would like to print a snapshot of the reachability graph at a specific point in time. Does this work for you?
|
Hi John, thank you.
However worked! There is a way to get snapshots for every 30 seconds? In this context, it is valuable to mention that when I run (for this update version): a new directory called edges_t1_d30 is created into the store.jar Since the trace file is binary, I'm not sure if it is really a edges trace or a reachability trace. Do you remember which trace is saved into this directory generated by the command ditl graphs reachability? |
There isn't currently a way of printing the state every 30 seconds, but you should be able to achieve that by extending the PrintTrace code. |
What about print the entire reachability trace? |
The reachability trace is just an arc trace with a few extra config params (tau, eta, delay). All the arc export functionality should work on reachability traces. |
Thank you very much, John. I performed: A directory named edges_t1_d30 was created into store.jar So I ran: 26 5 102.0 145.0
16 8 7.0 214.0
8 16 7.0 214.0
16 8 231.0 274.0
8 16 231.0 274.0
27 19 14.0 709.0
19 22 10.0 710.0
19 27 14.0 710.0
22 19 10.0 710.0
Thank you very much in advance for your attention and kindness. You're awesome. |
Hi Juliano, Your understanding is correct except that you have to flip nodes 5 and 26. The first line means that a message generated on node 26 between instants 102 and 145 can reach node 5 within a max delay of 30 seconds (assuming an edge traversal time of 1). |
Hello John, thank you again. I performed the following sanity test.
The first observation valuable observation is that altough we have the arcs trace, reachability is always using edges traces, so we need to convert arcs to edges.
Another obvervation: reachability uses edges traces, the directory created is named "edges_tn_dm", however, in order to export, we need to "export arcs", creating confusion with the names.
Comments
What do you think about it? |
Hi Juliano, Your understanding seems correct. I think we are hitting the point where you need to write some code to get the results you want. Specifically, it sounds like you have an arcs trace that you directly want to compute reachability from (which is certainly doable but not currently supported), and the arcs-to-edges converter (which, by definition, looses information) doesn't meet your needs. You should be able to adapt the Feel free to open a Pull Request. |
Hello, @jwhitbeck
Thanks in advance for helping.
When I run:
ditl graphs r store.jar 1 1 30
a new directory is created inside store.jar, named: edges_t1_d30.
This directory contains 3 files: index, info, and trace.
index and trace are binary files.
info contains information about the trace, as following
{ "type": "reachability", "eta": 1, "tau": 1, "delay": 30, "min time": 7, "max time": 31619667, "time unit": "s", "max update interval": 81082, "default priority": 100 }
However, I am interested in evaluating the reachability information. I suppose the information I need is in the file named trace. Am I right? Is there a way to convert trace to a human-readable format?
PS.: For an old version of ditl which I have access, the created directory is named "links" and there is a readable file named "snapshot".
The text was updated successfully, but these errors were encountered: