⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 factory.java

📁 一个TSP问题的图形演示程序
💻 JAVA
字号:
/* *  This code is from the book: * *    Winder, R and Roberts, G (2000) Developing Java *    Software, second edition, John Wiley & Sons. * *  It is copyright (c) 2000 Russel Winder and Graham Roberts. */package SimFrameWork ;/** *  Abstract Factory interface for creating turtles and patches. *  This provides an interface that allows other classes to *  create turtles and patches without needing to know *  the specific turtle and patch subclasses used. * *  @version 2.0 March 1999 *  @author Graham Roberts */public interface Factory {  /**   *  Create a new patch.   */  Patch createPatch() ;  /**   *  Create a new turtle on a given patch.   *   *  @param p patch turtle is created on.   */  Turtle createTurtle(Patch p) ;}

⌨️ 快捷键说明

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