/* Copyright (c) 2017 Christopher Cromer * Copyright (c) 2017 Carlos Faúndez * * This file is part of mt. It is subject to the license terms in the LICENSE file found in the top-level directory of this distribution. * This file may not be copied, modified, propagated, or distributed except according to the terms contained in the LICENSE file. */ package mt; import org.w3c.dom.Document; public class Machine { Automata machine; public Machine(Document document) { machine = new Automata(document); } boolean comprobarCadena(StringBuilder cinta,int estadofinal) { Estado qi = machine.estados.get(0); int cabezal = 0; do{ int i; for(i=0;i