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

📄 drawpolicy.java

📁 MASON代表多主体邻里或网络仿真(Multi-Agent Simulator of Neighborhoods or Networks)。它是乔治梅森大学用Java开发的离散事件多主体仿真核心库
💻 JAVA
字号:
package sim.portrayal.grid;import sim.util.*;/** Called by Sparse2DPortrayal and Object2DPortrayal to determine if all objects    should be drawn or only one.  The Bags provided contain objects all sitting in    the same cell location onscreen. */public interface DrawPolicy    {    public static final boolean DRAW_ALL = false;    public static final boolean DONE = true;    /** Give the bag fromHere (which you should NOT MODIFY), which contains objects all        occupying the same location, add to the bag addtoHere only those objects you wish to be drawn,        then return DONE.  Alternatively, simply make no additions, then return DRAW_ALL if you wish the        entire fromHere bag to be drawn.  If you don't want anything to be drawn, just return DONE.        Do not replace the array in addToHere.  */    public boolean objectToDraw(Bag fromHere, Bag addToHere);    }

⌨️ 快捷键说明

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