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

📄 obstacle.java

📁 MASON代表多主体邻里或网络仿真(Multi-Agent Simulator of Neighborhoods or Networks)。它是乔治梅森大学用Java开发的离散事件多主体仿真核心库
💻 JAVA
字号:
package sim.app.woims;import java.awt.*;import sim.portrayal.simple.*;public class Obstacle extends OvalPortrayal2D    {    public final static Paint obstacleColor = new Color(192,255,192);    // gradient obstacles!  Try it!  Slower but fun!    // public final static Paint obstacleColor = new GradientPaint(0,0,Color.red,10,10,Color.green,true);        public Obstacle(double diam)        {        super(obstacleColor,diam);        }    }

⌨️ 快捷键说明

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