Sources
We have sources which "inject" new agents in a subroom with a frequency (agents/second) or one agent at a defined time.
What we want to have are sources which generate agents within a box or on a line and which have some more properties than the existing:
time_min = first time that agents appear
time_max = last time that agents appear ("injection" will end after this time or before if agents_max is reached first)
N_create = Number of agents that should appear at one frequency time step
freq_time = frequency time step (e.g. freq_time="10": x agents will be created every ten seconds)
conti = false -> the agents will be created simultaneously for one frequency time step, true -> the agents will be created continuously (1 agent/second)
x_min, x_max, y_min, y_max = coordinates for the box/line where the agents should be "injected".
Example:
source 1 (old) = 10 agents will appear in room_0/subroom_1 with the frequency 2 agents/second.
source 2 (old) = 1 agent with id=50 will appear in room_0/subroom_1 after 10 seconds.
source 3 (new) = after 20 seconds 10 agents will appear simultaneously in a box (2m x 3m) every 15 seconds until 300 agents are created or time has reached 200 seconds.
<agents_distribution>
<group group_id="1" agent_parameter_id="1" room_id="0" subroom_id="1" number="10" goal_id="-1" router_id="1" />
<group group_id="3" agent_parameter_id="1" number="0" goal_id="-1" router_id="1" source_id="3"/>
</agents_distribution>
<agents_sources>
<source id="1" caption="old-source" frequency="2" agents_max="10" group_id="1" greedy="false"/>
<source id="2" caption="old-source" time="10" agent_id="50" group_id="1" greedy="true"/>
<source id="3" caption="new-source" time_min="20" time_max="200" freq_time="15" N_create="10" agents_max="300"
group_id="3" conti="false" x_min="1" x_max="3" y_min="2" y_max="5" />
</agents_sources>