AttributesTargetChanger
Attributes of "TargetChanger" object, used by "TargetChangerController" during simulation.
Field: reachDistance [Double]
Within this distance, pedestrians have reached this area.
Field: nextTarget [Integer>]
If "nextTargetIsPedestrian == true", then randomly select a pedestrian which
is heading to the given target as new target. Otherwise, use the given target
id as "normal" target id.
Select TargetChangerAlgorithm TargetChangerAlgorithmType:
- FOLLOW_PERSON: Interpret first item of nextTarget as pedestrian id and
use this pedestrian as the new target. In case of groups follow the leader. Fallback
behaviour if neither works: Set target list of pedestrian to nextTarget.
Only first element of probabilityToChangeTarget will be used.
- SELECT_LIST: Set the complete list of nextTarget as the new target list
of pedestrian. probabilityToChangeTarget must have 1 element only.
- SELECT_ELEMENT: Select *one* element of nextTarget as the new target of
the pedestrian.
If probabilityToChangeTarget is empty one element of nextTarget
will be selected with a uniform distribution. If the length of probabilityToChangeTarget
matches with nextTarget use the relative select element based on relative probability
given by probabilityToChangeTarget. nextTarget = [1, 2, 3]
E.g. If @probabilitiesToChangeTarget = [ 10, 20, 10 ] then the new target list will be
[1] in 25% of the cases, [2] in 50% and [3] in 25%.
- SORTED_SUB_LIST: The length of nextTarget and @link #probabilityToChangeTarget} must
match. For each element in nextTarget a bernoulli sample is drawn based on the given
parameters in probabilityToChangeTarget with the same index. If the draw is successful
add the element to the new target list and repeat for all elements in nextTarget
Field: probabilityToChangeTarget [Double>]
Change target of a given pedestrian only with a certain probability between
0 and 1.