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

相关内容

热门资讯

透视玄学!aapoker辅助工... 《aapoker辅助工具免费下载软件透明挂》是一款多人竞技的aapoker辅助工具免费下载辅助透视游...
透视能赢!aapoker有脚本... 一、aapoker有脚本吗简介了解软件请加微:136704302aapoker有脚本吗是一款在线扑克...
透视科技!wepoker辅助透... 透视科技!wepoker辅助透视软件,wepoker私人局辅助挂,必备教程(最初真的有挂),亲,有的...
透视安卓版!wpk透视辅助,w... 您好,wpk透视辅助这款游戏可以开挂的,确实是有挂的,需要了解加Q群【1067239143】很多玩家...
透视数据!wepoker透视脚... 透视数据!wepoker透视脚本安卓,wepoker私人局外卦,wepoke教程(先前真的有挂);w...
透视智能ai!红龙poker透... 您好,aapoker辅助是真的吗这款游戏可以开挂的,确实是有挂的,需要了解加Q群【106723914...
透视app!德普之星辅助功能如... 这是一款非常优秀的德普之星辅助功能如何设置 ia辅助检测软件,能够让你了解到德普之星辅助功能如何设置...
透视了解!hhpoker免费透... 透视了解!hhpoker免费透视脚本,hhpoker开辅助软件,玩家必看科普(有挂详情)1、超多福利...
透视安装!智星德州菠萝透视插件... 透视安装!智星德州菠萝透视插件工具,wepoker有透视吗,透明挂教程(都是真的是有挂)智星德州菠萝...
辅助透视!德普之星透视辅助软件... 1、辅助透视!德普之星透视辅助软件是真的吗,wepoker作弊辅助,记者发布(有挂总结);详细教程。...