Generation File - crest-cassia/CrowdWalk GitHub Wiki

Rule strings:

  • $EACH:

generates agents for each tagged links.

  • $RANDOM:

generates agents randomly for the tagged links.

  • $EACHRANDOM:

generates agents randomly for each tagged links.
The max number of agents on a link is limitted with $EACH.

  • $STAFF:

generates a navigation staff to navigate $EXIT_TAG through $ROUTE.

  • $RANDOMALL:

generates agents randomly for the tagged links and select route randomly too.

  • $TIMEEVERY:

from $START_TIME to $END_TIME, generates agents every $EVERY seconds.

  • $LINER_GENERATE_AGENT_RATIO:

changes the $TOTAL number of agents with multiplying this value.
This rule string has specific description rule. Please check examples.

The other parameters:

  • $TAG:

the tag that agents are generated.

  • $START_TIME:

WHEN the agents are generated.

  • $END_TIME:

used by TIMEEVERY rule. When the agents generation is finished.

  • $EVERY:

used by TIMEEVERY rule. It defines the duration, how many seconds the agents are generated every.

  • $DURATION:

duration of generation agents. In $DURATION time, $TOTAL number of agents are generated.

  • $TOTAL:

the number of generated agents.

  • $SPEEDMODEL:

the speed model. one of "LANE", "DENSITY", "EXPECTED".

  • $EACH:

used by EACHRANDOM. The max number of agents generated on a link.

  • $EXIT_TAG:

the goal of generated agents.

  • $ROUTE:

routing points that generated agents pass through.

examples:

  • EACH,LINK1,18:00:00,60,100,LANE,GOAL1

Generates 100 agents from 18:00:00 to 18:01:00 on each link LINK1. The goal is set to GOAL1.

  • RANDOM,LINK1,8:00:00,10,1000,LANE,GOAL1,CHECKPOINT

Randomly generates 1000 agents from 8:00:00 to 8:00:10 on link LINK1. The goal is set to GOAL1 through CHECKPOINT.

  • EACHRANDOM,LINK1,9:00:00,30,100,LANE,10,GOAL1

Randomly genrates 100 agents from 9:00:00 to 9:00:30 on links tagged LINK1. The goal is set ot GOAL1. The max number of agents generated on a link is limitted 10.

  • RANDOMALL,LINK1,8:00:00,10,1000,LANE,GOAL1,CHECKPOINT

Randomly generates 1000 agents from 8:00:00 to 8:00:10 on link LINK1.
The goal is set to GOAL1 through the one of the randomly selected CHECKPOINT node.

  • TIMEEVERY,LINK1,18:00:00,19:00:00,60,100,LANE,GOAL1

Generates 100 agents from 18:00:00 to 19:00:00 every 60 seconds on links LINK1.
The goal is set to GOAL1.

  • LINER_GENERATE_AGENT_RATIO,5.0

For all of $TOTAL parameters is multiplied by 5.0.

If you want to know more details, please check AgentGenerationFile.java file.