core.reference
A primitive stream that samples values previously emitted by an entity in the same simulation.
Keywords
entityrequired
The name of the entity to be sampled.
uniqueoptional
A boolean that determines whether each reference can be emitted more than once. When set to true, each value from the referenced entity will be emitted at most once. Once all available values have been emitted, the reference will return no more values. The default value is false, which allows values to be sampled with replacement.
Examples
Basic reference (with replacement):
{
"type": "reference",
"entity": "user"
}Unique reference (without replacement):
{
"type": "reference",
"entity": "user",
"unique": true
}