{{javascript}}StimulusInfo

StimulusInfo describes the stimuli that are injected into the simulation. It contains a timeframe, a list of stimuli, a location and a subpopulation filter. This makes it possible to inject stimuli at a specific time, at a specific location.

Example:
{
"stimulusInfos" : [ {
"timeframe" : {
"startTime" : 0.0,
"endTime" : 10.0,
"repeat" : false,
"waitTimeBetweenRepetition" : 0.0
},
"location" : {
"areas" : [ {
"x" : 0.0,
"y" : 0.0,
"width" : 1000.0,
"height" : 500.0,
"type" : "RECTANGLE"
} ]
},
"subpopulationFilter" : {
"affectedPedestrianIds" : [ ]
},
"stimuli" : [ {
"type" : "Threat",
"originAsTargetId" : -1,
"loudness" : 1.0
} ]
} ]
}

timeframe describes the time at which the stimuli are injected. location describes the location at which the stimuli are injected. It is a list of areas. subpopulationFilter describes the subpopulation that is affected by the stimuli. stimuli is a list of stimuli that are injected.