Comments (2)
Hi,
Thanks for flagging this as an issue.
On further inspection of the code you might notice that the models (since pipe claims to be mvc) aren't really used and that the entire analysis of petri nets is based on the views. Furthermore in the views there is some bizarre logic dotted around (such as incrementing x and y by 5 in some places) that is likely causing these and a range of other potential bugs.
I'm currently working on a revamp of the underlying system so that it actually uses models under the hood. As you can imagine this is a large feat but I hope to have a realease out for Christmas time that will address this issue amongst several others!
I hope in the mean time that this issue does not trouble you too much.
Sent from Samsung Mobile
-------- Original message --------
From: dylankiss [email protected]
Date:
To: sarahtattersall/PIPE [email protected]
Subject: [PIPE] Arcs change coordinates on loading a previously saved net (#15)
I create a Petri Net and make arcs perfectly aligned with the grid. I save the file, reopen it and the intermediate points of the arcs have slightly shifted. Every time I save the file again and reopen it, the arcs are shifted more and more. An example is given below:
[1st]https://f.cloud.github.com/assets/5985577/1578135/ef6e21b6-5175-11e3-97c8-9645614f0363.PNG
Original net
[2nd]https://f.cloud.github.com/assets/5985577/1578136/f646367c-5175-11e3-9e52-03db6af73c5e.PNG
After saving and opening the first time
[3rd]https://f.cloud.github.com/assets/5985577/1578141/fc18e4c8-5175-11e3-80c9-c031d390d693.PNG
After saving and opening the second time
[4th]https://f.cloud.github.com/assets/5985577/1578142/fe88e1ea-5175-11e3-98c3-6dc19e6d2895.PNG
After saving and opening the third time
[5th]https://f.cloud.github.com/assets/5985577/1578143/011776ba-5176-11e3-8dd9-6088c2581620.PNG
After saving and opening the fourth time
[10th]https://f.cloud.github.com/assets/5985577/1578144/038b0452-5176-11e3-83f7-ff9fe6750a40.PNG
After saving and opening the nineth time
The problem probably lies in the opening of the net, because when I save the original net, the coordinates in the XML file look fine. When I open it again, the lines seem slightly shifted.
What I also noticed is that in the XML file, the coordinates of arcs are given as integers, while the coordinates of places and transitions are given as floats. Maybe this has something to do with the shifting?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/15.
from pipe.
This has been fixed in beta release of PIPE 5
from pipe.
Related Issues (20)
- PIPE 4.3.2 launch fails (Win 8.1 64-bit) HOT 4
- new module HOT 1
- Pipe 5.0.1 does not open saved file .. HOT 9
- pipe-module-gui is failure during mvn install HOT 3
- Exception when editing a Place HOT 1
- API for PN analyses? HOT 3
- Definitions prevents PIPE from initializing XML (Error: "Could not initialise Petri Net reader!") HOT 2
- 5.0.2: Inhibitor arcs are only deleted in GUI
- Functional Rates: token_number expression (#(ID)) excludes zero HOT 6
- timed PN analysis HOT 1
- Response Time Analysis (PIPE4.3.0) HOT 1
- problem in using pipe
- Exporting images?
- Exception when deleting a immidiate transition and an arc together HOT 1
- PIPEv4 HOT 3
- Error: "Could not initialise Petri Net reader! HOT 1
- Conflict place and transition naming
- Launching PIPEv4.3.0 HOT 1
- Error: "Could not initialise Petri Net reader!
- Apple Sillicon Support (M1 & M3 Pro)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pipe.