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

相关内容

热门资讯

德州之星有辅助挂!来玩德州有外... 德州之星有辅助挂!来玩德州有外 挂,德州ai其实真的是有挂(详细助手教程)德州之星有辅助挂辅助器中分...
wepoke辅助!wopoke... wepoke辅助!wopoker透明挂(透视辅助)we poker(都是真的有挂);原来确实真的有挂...
wpk俱乐部!wpk线上实战(... wpk俱乐部!wpk线上实战(wpK)果真真的有挂-详细透视教程;1、wpkai辅助优化,wpk发牌...
德州ai辅助软件!wepowe... 德州ai辅助软件!wepower德州可以设置,来玩德州一直有挂(详细免费辅助神器app教程);德州a...
wepoke透明挂黑科技!we... 大家肯定在之前WePoKer或者WePoKer中玩过wepoke透明挂黑科技!wepoke小技巧(透...
wpk有外 挂!wpk ai辅... wpk有外 挂!wpk ai辅助,WpK其实真的有挂,详细教程,(有挂技巧);1、许多玩家不知道wp...
德州微扑克辅助!德州哪里有扑克... 您好,德州微扑克辅助这款游戏可以开挂的,确实是有挂的,需要了解加微【757446909】很多玩家在这...
wepoke插件!wepoke... wepoke插件!wepoke外 挂显示,wepokE果然真的有挂,我来教教你(有挂解说);原来确实...
wpk辅助挂!wpk数据分析(... wpk辅助挂!wpk数据分析(wpK)一贯真的有挂-详细透视辅助教程一、wpkAI软件牌型概率发牌机...
德州AI智能辅助机器人!德州透... 德州AI智能辅助机器人!德州透视辅助,德州ai好像真的有挂(详细作弊教程)德州AI智能辅助机器人辅助...