/* * Copyright (C) 2009 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 interface to update internal register state for a * {@link CommandExecutionUnit} * * @author Manish Pandya (March 1 2009) * */ public interface Statefull { public int getDestinationX(); public void setDestinationX(int destinationX); public int getDestinationY(); public void setDestinationY(int destinationY); public int getVelocity(); public void setVelocity(int velocity); public Command getCurrentCommand(); public void setCurrentCommand(Command currentCommand); /** * A method to query the internal state of the execution unit * * @return internal state of the execution unit */ public String getState(); }