feeds.java

来自「Java source code for the Ant Colony Opti」· Java 代码 · 共 23 行

JAVA
23
字号
package jwo.jpss.ants;   // Part of the ant simulation package.

//  *******************************************************
/** Interface for things that can eat.
  * @author Jo Wood
  * @version 1.1, 17th January, 2001.
  */
//  *******************************************************

public interface Feeds 
{   
    /** Eat a given amount of food.
      * @param foodUnits Amount of food to eat.
      */
    public abstract void eat(int foodUnits);
    
    
    /** Metabolise a given amount of food.
      * @param foodUnits Amount of food to metabolise.
      */
    public abstract void metabolise(int foodUnits);

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?