/* * 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; /** * An executable command representation for the execution unit * * @author Manish Pandya (July 1 2008) * */ public interface Command { /** * A method that is called to execute a command off the execution queue * * @param ceu * is the runtime implementation of an execution unit * @return response from hardware if any */ public byte[] execute(CommandExecutionUnit ceu); /** * A method that returns a string representing Human readable name for the * command * * @return A string representing Human readable name for the command */ public String getHumanName(); }