-
Notifications
You must be signed in to change notification settings - Fork 54
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
Use of Mapper Class #52
Comments
If you look at the I see to possibilities changing this:
For the second approach I have coded a little example that should yield the hypothesis you're interested in. While this may look easier at first, using this chained mapper approach also has drawbacks. For example, if you start to push boolean values on the stack, you cannot decide whether e.g. I hope this example answers your question. (It's not the complete answer to your second question, but I think leaving some room for experimentation for yourself hopefully helps you to understand it even better) |
Also make sure to checkout / use our Q&A mailing list for future questions, so we can use the issue tracker for actual issues. |
Thank you so much. Now, I will be able to solve the issues with my code...... |
Hello Sir! But, when i added/loaded the example (you posted) it gave errors like: Please note here that I am using Learnlib version (learnlib-learnlib-0.12.0). I have also tired to modify the build-path but not successful. Again set the settings according to issue #32 but could not succeed to compile it. Besides, 1- https://github.com/LearnLib/learnlib/tree/learnlib-0.12.0 To me, I think third link is regularly updated. Should i used this version? Needed you help in this regard please. regards |
Sorry, my bad. Yes, I wrote the example against the latest development version. Your first link points to the git tag of the latest release (version 0.12) which is basically the latest commit on the master branch (your second link). Your third link, points to the most recent development branch of the repository. I suggest you clone the repository using git. This way you only have to run The latest official releases are rather old (Malte left our chair about 2 years ago and I only picked up the maintainment a couple of months ago). I recently got the deployment rights for the sonatype repositories and I'm planing to release a new version early next year, so you don't have to rely on development versions anymore. |
Thanks you for your quick reply....... |
1 similar comment
Thanks you for your quick reply....... |
Hello sir! I obtained learnlib and automatalib by cloning, as given below: And, regards |
The issue with the missing SLF4J implementation should be fixed with 40fa12f. For the other issue ("The interface XXX cannot be implemented ..."), I currently have no solution at hand. I got the same error, when I imported the project into Eclipse, so it's not an error on your side. I suspect the issue to be related to Eclipse, since both the continuous integration server and IntelliJ don't report such errors. However, even in Eclipse I was able to run the example I send to you, if I just clicked "Proceed Anyway" on the dialog box (the EQ oracle test is not mandatory for the example to work). I'll try to look into it, once I have some time to spare. If you cannot get the code to run at all, maybe you could try using IntelliJ instead? |
Thank you so much for your cooperation. I really appreciate you and your team's dedicated efforts towards the development of LearnLib library. Now, I am successful to execute the example sent by you. Secondly, We are mostly used to Eclipse and configured it for learnlib (maven plugin, graphviz settings, use of issue#32 etc) And dont want the reconfiguration of IntelliJ). We shall be grateful to you if you solve the issue of i.e., learnlib-equivalence-oracles ("The interface XXX cannot be implemented ..."). As far as my query is concern, it is solved. You may close this issue and open a new one regarding the solution of learnlib-equivalence-oracles ("The interface XXX cannot be implemented ...") or keep it alive. Once again thank you very much. regards |
I will close this issue for now, since the original question is answered. For the Eclipse error, I will have to look. Even the error message seems wrong. Apparently there should be two different type arguments, but in both cases it even says Overall, thanks for the input. By providing these examples for you, I could actually see some shortcomings of the current API. With adc2d1a I added/refactored some of the existing Mapper code (don't worry, your code should still work fine. In the worst case, you should only have to implement a difference interface). But overall, these changes should allow you to write less boilerplate code on your own and use the classes shipped with LearnLib. I have updated my first example MapperExample.java to reflect these changes (the custom implementation of |
Hello Sir,
As, issue #52 is closed now therefore i thought to email you. Please download my attached file and suggest me.
Ali
On Wednesday, December 6, 2017 12:46 AM, mtf90 <notifications@github.com> wrote:
Closed #52.—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Dear @bazali, I think github swallowed you're attachment, since you directly answered to the notification (and hence your mail is picked up as a comment to this issue). I think, it would be best to send me an e-mail directly. This way, I would also get your correct e-mail address, so that I know whom to answer (normally github shadows the sender to |
Hello Sir....Hope you will be fine. Can i have your direct email address please...
regards
ali
On Friday, December 8, 2017 9:53 PM, mtf90 <notifications@github.com> wrote:
Dear @bazali, I think github swallowed you're attachment, since you directly answered to the notification (and hence your mail is picked up as a comment to this issue).I think, it would be best to send me an e-mail directly. This way, I would also get your correct e-mail address, so that I know whom to answer (normally github shadows the sender to "bazali" <notifications@github.com>—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
you can use the same address, that I use for my git comits: markus.frohme at udo.edu |
Hello!
I have read a document on Active Automata Learning from the following link:
https://www.kma.informatik.tu-darmstadt.de/fileadmin/user_upload/Group_KMA/ESF-WS/bernhard.pdf
Now,
I want to write the code for Mapper Module to learn the behavior of a stack with following code:
And the final Learned Model/targeted model should somewhat as (screen shots taken from the above link):
I have modify the code of Example2 in the de.leranlib.examples.exmaple2. The modified code is as:
first of all i replace the code of stack already given in example2 with name i.e., public static class BoundedStringQueue with the above one
and modified code of Mapper as:
// instantiate test driver
SimplePOJOTestDriver driver = new SimplePOJOTestDriver(
StackDemoUsingArray.class); //Working Fine .... OK
And
// create initial set of suffixes
List<Word> suffixes = new ArrayList<>();
suffixes.add(Word.fromSymbols(push1));
suffixes.add(Word.fromSymbols(push2));
suffixes.add(Word.fromSymbols(pop));
And rest of code is same as in de.leranlib.examples.exmaple2. I obtained the following learned model(its not the complete model but a short part of big one....bcoz i was unable to upload here):
My questions are:
In my learned model there should be transition labels like push1/ok and push2/ok instead of push1[]/true and push2[]/true And at the final states (end states) it should be like push1/nok and push2/nok instead of push1[]/false and push2[]/false. It looks that Mapper is working only in forward direction (mapping abstract to concrete) but not in backward direction. Besides, the symbol [] with push and pop should not be appeared. How/Where should I modify in code of Mapper so that i will be able to learn the exact model.
After that i will infer the following model:
Please, guide me how to write/modify the code of Mapper so that it can transform the symbols form Abstract to Concrete and then back from Concrete to Abstract. e.g true to OK , false to NOK, upon receiving 51from SUL to odd and 2012 to even etc...
thanks...
Ali
The text was updated successfully, but these errors were encountered: