/* * Copyright (C) 2008 Manish Pandya, [manish at meetamanish dot com] * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * */ package org.hooliguns.ninja.telnet.phiPiMod; /** * Run the currently defined macro from the beginning. When the R command is * received, the macro will begin at the beginning and run to completion. Note: * By putting an R at the end of a macro, you can make the macro repeat itself * ad infinitum. This will continue until a or is received * from the serial port, at which point, the Ninja enters immediate execution * mode. * * @author Manish Pandya (July 1 2008) */ public class Run extends CommandSingleChar { /** * Creates a Run command */ public Run() { command = "r"; } /* * (non-Javadoc) * * @see org.hooliguns.ninja.telnet.Command#getHumanName() */ public String getHumanName() { return "Run command"; } }