LearnLib / automatalib

A free, open-source Java library for modeling automata, graphs, and transition systems
http://automatalib.net
Apache License 2.0
92 stars 34 forks source link

Issues with IntRangeIterator #6

Closed oliverbauer8 closed 11 years ago

oliverbauer8 commented 11 years ago

List list = CollectionsUtil.intRange(0, 10);

int iterationsViaList = 0; for (int i=0; i<=list.size()-1; i++) { iterationsViaList += 1; }

int iterationsViaIterator = 0; Iterator iterator = list.iterator(); // IntRangeIterator while (iterator.hasNext()) { iterationsViaIterator += 1; iterator.next(); }

There seems to be an issue with ListRangeIterator. The for-loop runs through 10 elements but the iterator only over one element. This causes problems when persisting mealy machines and plotting them via dot (only one state will be redered / stored)...

oliverbauer8 commented 11 years ago

sorry my mistake it seems that is was on wrong branch...