forsyde / forsyde-io Goto Github PK
View Code? Open in Web Editor NEWForSyDe's System-Level intermediate representation and supporting libraries.
Home Page: https://forsyde.github.io/forsyde-io/
License: MIT License
ForSyDe's System-Level intermediate representation and supporting libraries.
Home Page: https://forsyde.github.io/forsyde-io/
License: MIT License
The supporting library for java does not enforce the traits requirements given to the input trait hierarchy. Currently this means the std_trait_hierarchy
. The validation should be fixed and added so that the basic expected syntax works across tools. For the moment, the fix regards the java supporting library.
Bold of me to make an issue this early into the project, but I think there might be an issue actually B)
This is the simple code snippet I use
SystemGraph sGraph = new SystemGraph();
SDFActorViewer a = SDFActor.enforce(sGraph, sGraph.newVertex("Actor A"));
a.consumption(Map.of("s_in", 2));
a.production(Map.of("s1", 2));
a.addPorts("s_in", "s1");
Visualizable.enforce(a);
SDFActorViewer b = SDFActor.enforce(sGraph, sGraph.newVertex("Actor B"));
b.consumption(Map.of("s1", 3));
b.production(Map.of("s_out", 1));
b.addPorts("s1", "s_out");
Visualizable.enforce(b);
SDFChannelViewer ab_chan = SDFChannel.enforce(sGraph, sGraph.newVertex("Channel A-B"));
ab_chan.numInitialTokens(0);
sGraph.connect(
a,
ab_chan,
EdgeTraits.SDFNetworkEdge,
EdgeTraits.VisualConnection
);
sGraph.connect(
ab_chan,
b,
EdgeTraits.SDFNetworkEdge,
EdgeTraits.VisualConnection
);
Visualizable.enforce(ab_chan);
return sGraph;
This produces the following .kgt
file which gives syntax errors in VSCode:
1 knode forsyde {
2 klabel "ForSyDe Model"
3 knode v_Channel A-B {
4 klabel "Channel A-B [SDFChannel, MoCEntity]"
5 kedge ( -> v_Actor_B)
6 }
7 knode v_Actor B {
8 klabel "Actor B [SDFActor, MoCEntity]"
9 }
10 knode v_Actor A {
11 klabel "Actor A [SDFActor, MoCEntity]"
12 kedge ( -> v_Channel_A-B)
13 }
14 }
There are two things that I believe have to be corrected.
Vertex
allows this. I suggest to either replace the hyphen by some underscore or throw an error.This is found by @YihangZhaoKTH. I will add details with him.
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.