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

How to load and manipulate ThingML models #95

Closed
FeltonXuAtECNU opened this issue Nov 26, 2015 · 12 comments
Closed

How to load and manipulate ThingML models #95

FeltonXuAtECNU opened this issue Nov 26, 2015 · 12 comments
Assignees

Comments

@FeltonXuAtECNU
Copy link

I'm writing this post to ask you something about ThingML.

My current work is trying to translate ThingML project to the input of some timed automata tool for some academic purpose, so it's necessary for me to know how to save ThingML as a systematic form(LIKE XML) to extract all the information in an ordered way. Is that possible? IF possible, what should I do?

I'm looking forward to your reply and any detailed information will be great help.

@ffleurey
Copy link
Contributor

If I understannd correctly you need to process ThingML models to transform them to a timed automata. Instead of going through a serialization in XML of the ThingML program you can use our parser and directly process the model in JAVA to transform it to whatever representation you need. I have create a sample JAVA project which gives an example of how you can load a ThingML model and then traverse it to generate "something". You can find it at:
https://github.com/HEADS-project/training/tree/master/1.ThingML_Basics/7.%20ReadThingMLModel

Let us know if it works for you

Cheers!

@ffleurey ffleurey self-assigned this Nov 26, 2015
@FeltonXuAtECNU
Copy link
Author

Thanks for your prompt response and kindness for writing an example to show me how to load a ThingML model and transform it to some kind of new formalism I need. It's too late here(almost 11:00 pm) in China. I will let you know if it works me as soon as I can.

Thanks again!

Cheers!

@brice-morin brice-morin changed the title A tough question about ThingML, mainly about how to save project as a EMFText or something How to load and manipulate ThingML models Nov 26, 2015
@FeltonXuAtECNU
Copy link
Author

Hello,
When I was trying to execute "mvn clean install" on Ubuntu 14.04 LTS, I got some message like this.
error messaging.pdf
I'm pretty sure my maven is correctly installed because I've used maven before and it works for some other project, so I was wondering if you could help me to figure out how to work that out.

@brice-morin
Copy link
Member

It seems you cannot access our Maven repository (maybe because of some firewall). Try accessing this address in a web browser first to see if you can indeed access it.

@FeltonXuAtECNU
Copy link
Author

Sure. I can open "http://maven.thingml.org/"

@brice-morin
Copy link
Member

Can you try to clone the whole ThingML repository first and mvn clean install it first? If it works, you will have ThingML installed locally and example provided by @ffleurey should then work

@ffleurey
Copy link
Contributor

Ok, for some reason your maven process was not able to access the server when you tried compiling, that is why you got the message "Connection to http://maven.thingml.org refused: Connection refused". You should try again now that you have access to the server and if you get the same message it means that something on your machine is presenting the maven process from reaching the server. The easiest may be try re-install maven or try on another machine.

@ffleurey
Copy link
Contributor

Brice's solution of cloning and building ThingML locally may also work but I believe that it will still require to have access to our repository so you really have to make sure that the maven process can acess the internet and our server. If you can get access to our server with your web browser, it means that it is a problem on your side and not with the server.

@FeltonXuAtECNU
Copy link
Author

I'd better turn off on the firewall and get myself a VPN to see if it works.

@FeltonXu
Copy link

Hey, I am also interested in doing something work on ThingML. Could any of you send me a new site on how to do that? https://github.com/HEADS-project/training/tree/master/1.ThingML_Basics/7.%20ReadThingMLModel doesn't work any more...

@FeltonXuAtECNU
Copy link
Author

FeltonXuAtECNU commented Dec 22, 2016 via email

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants