AnyLogicSoftware-DensityMapandPedFlowStatics
创始人
2024-08-22 18:30:08
0

import com.anylogic.engine.Agent; import com.anylogic.engine.AgentList; import com.anylogic.engine.AgentType; import com.anylogic.engine.Point; import com.anylogic.engine.ShapeFillColor; import com.anylogic.engine.SolidLineStroke; import com.anylogic.engine.SpaceMarkupLine; import com.anylogic.engine.SpaceMarkupPolyline; import com.anylogic.engine.UtilitiesColor; import com.anylogic.engine.analysis.AggregateAnimation; import com.anylogic.engine.analysis.ObservationsView; import com.anylogic.engine.analysis.PedFlowStatistics; import com.anylogic.engine.analysis.SpaceMarkupDensityMap; import com.anylogic.engine.elements.IElementDescriptor; import com.anylogic.engine.elements.IElementScript; import com.anylogic.engine.elements.IElementShape; import com.anylogic.engine.elements.IElementText; import com.anylogic.engine.elements.Sprite; import com.anylogic.engine.elements.Trailer; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.LinkedHashMap; import java.util.Collection; import java.util.Collections;

public class Main extends Agent { // Parameters public int numberOfAgents = 30; public double distance = 2.0; public int interval = 1; public double densityThreshold = 0.5;

// Constants public final double speed = 1.0;

// Variables private AgentList pedestrians; private Pedway[] pedways;

// Density map SpaceMarkupDensityMap densityMap;

// Statistics PedFlowStatistics pedFlowStats; ObservationsView obsView;

// Animation public AggregateAnimation animation;

// Initialization public void setup() { // Create pedestrians pedestrians = new AgentList<>( Pedestrian.class, this ); for( int i = 0; i < numberOfAgents; ++i ) { // Define start position double x = 20 + i * ( distance + 0.4 ) * Math.sin( i * interval ); double y = 35 + i * ( distance + 0.4 ) * Math.cos( i * interval );

  // Instantiate pedestrian
  Pedestrian p = new

相关内容

热门资讯

一分钟教会你“wepoker透... 一分钟教会你“wepoker透视辅助挂有游戏亮点”开挂辅助工具(透视)攻略方法是一款可以让一直输的玩...
最新技巧“微扑克辅助”开挂辅助... 无需打开直接搜索加微信客服(136704302)咨询了解微扑克辅助辅助器目前(微信:13670430...
一分钟快速了解“wepoker... >>您好:wepoker开挂辅助确实是有挂的,很多玩家在这款游戏中打牌都会发现很多用户的牌特别好,总...
重大来袭“wepoker有没有... 无需打开直接搜索加微信客服(136704302)咨询了解wepoker有没有挂辅助器目前(微信:13...
最新技巧“wepoker靠谱不... 您好:wepoker靠谱不这款游戏是可以开挂的,软件加【添加微信客服136704302】确实是有挂的...
免费测试版“wepoker有挂... 您好:wepoker有挂吗透视软件的软件,软件加客服确实是有挂的,很多玩家在这款游戏中打牌都会发现很...
一分钟了解“微扑克发牌规律”开... 微扑克发牌规律是一款可以让一直输的玩家,快速成为一个“必胜”的ai辅助神器,有需要的用户可以加我微信...
重大消息“wepoker可以透... 您好,wepoker可以透视开挂吗这款游戏可以开挂的,确实是有挂的,需要了解加微【136704302...
玩家攻略“wpk透视插件怎么安... 无需打开直接搜索;操作使用教程:玩家攻略“wpk透视插件怎么安装”开挂辅助器(透视)曝光教程1、界面...
教程攻略“wepoker能开挂... 您好:wepoker能开挂吗这款游戏可以开挂的,确实是有挂的,很多玩家在这款游戏中打牌都会发现很多用...