
net.automatalib.automata.fsa.abstractimpl.AbstractMutableDFA Maven / Gradle / Ivy
/* Copyright (C) 2013 TU Dortmund
* This file is part of AutomataLib, http://www.automatalib.net/.
*
* AutomataLib is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 3.0 as published by the Free Software Foundation.
*
* AutomataLib is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with AutomataLib; if not, see
* http://www.gnu.de/documents/lgpl.en.html.
*/
package net.automatalib.automata.fsa.abstractimpl;
import net.automatalib.automata.abstractimpl.AbstractMutableDeterministic;
import net.automatalib.automata.dot.DOTPlottableAutomaton;
import net.automatalib.automata.fsa.MutableDFA;
public abstract class AbstractMutableDFA extends
AbstractMutableDeterministic implements MutableDFA, DOTPlottableAutomaton {
@Override
public boolean accepts(Iterable extends I> input) {
return AbstractDFA.accepts(this, input);
}
@Override
public S addState(Boolean property) {
return AbstractMutableFSA.addState(this, property);
}
@Override
public Boolean computeSuffixOutput(Iterable extends I> prefix, Iterable extends I> suffix) {
return AbstractFSA.computeSuffixOutput(this, prefix, suffix);
}
@Override
public Boolean computeOutput(Iterable extends I> input) {
return AbstractFSA.computeOutput(this, input);
}
@Override
public void setStateProperty(S state, Boolean property) {
AbstractMutableFSA.setStateProperty(this, state, property);
}
@Override
public void setTransitionProperty(S transition, Void property) {
AbstractMutableFSA.setTransitionProperty(this, transition, property);
}
@Override
public S createTransition(S successor, Void properties) {
return AbstractMutableFSA.createTransition(this, successor, properties);
}
@Override
public S copyTransition(S trans, S succ) {
return AbstractMutableFSA.copyTransition(this, trans, succ);
}
@Override
public Boolean getStateProperty(S state) {
return AbstractFSA.getStateProperty(this, state);
}
@Override
public Void getTransitionProperty(S transition) {
return AbstractFSA.getTransitionProperty(this, transition);
}
@Override
public S getSuccessor(S transition) {
return AbstractFSA.getSuccessor(this, transition);
}
@Override
public S addInitialState(boolean accepting) {
return AbstractMutableFSA.addInitialState(this, accepting);
}
@Override
public void flipAcceptance() {
AbstractMutableFSA.flipAcceptance(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy