H
Hashmapper
Gast
Beim iterieren über eine Hashmap bekomm ich einen Stack Overflow Error mit obiger Fehlermeldung.
Was bedeutet das?
Gruß Sam :bahnhof:
Was bedeutet das?
Gruß Sam :bahnhof:
Dass du ein funktionierendes Beispielprogramm dafür geben sollst?Hashmapper hat gesagt.:Was bedeutet das?
public HFSM<T> input(T context) throws AutomatonException {
int counter = 0;
HFSM<T> nextAutomata;
LogicExpression<T> logic = null;
// Check if there is a transition automata -> automata
if(transitions.size() > 0) {
for(LogicExpression<T> l: transitions.keySet()) {
try {
if (l.eval(context)) {
counter++;
logic = l;
}
} catch(LogExpException e) {
// Do Nothing
}
}
}
if(counter > 1) throw new AutomatonException("Input conflict");
else if(counter == 1) {
reset(); // Reset automata
nextAutomata = findState(getTransition(logic).getTargetState());
//nextAutomata.output();
}
else {
// Check if there is an internal transition
if(!isAtomic) {
HFSM<T> tmp = currentState.input(context);
if(currentState == tmp) {
nextAutomata = this;
//doOutput();
input(context);
}
else nextAutomata = tmp;
} else nextAutomata = this;
}
// LOGGING
/*if(logger == null) throw new AutomatonException("No logger detected");
else {
if(logger.isEnabled() == false) logger.enableLogging();
logger.logInfo(nextAutomata.toString());
}*/
return nextAutomata;
}