new Significance()
Creates a new Significance object
Extends
Members
-
static eventBus
-
the significance event bus, for communicating between perception Components
Methods
-
static clearWeights()
-
Clears the previously set weights. Mostly used for testing.
-
static getWeight(intrinsicName)
-
Returns the weight for an intrinsic
Parameters:
Name Type Description intrinsicName
string The intrinsic weight value to get
-
async, static init()
-
Initializes the Significance singleton
-
static setWeight(intrinsicName, weightingFactor)
-
Set the weight of a specific intrinsic value
Parameters:
Name Type Description intrinsicName
string The name of the intrinsic
weightingFactor
string The weight factor
-
async, static shutdown()
-
Shuts down the Significance singleton
-
getChange(evt)
-
Collects change events
Parameters:
Name Type Description evt
EventBusBase The intrinsic event
-
async onTick()
-
Every tick, collect Intrinsic changes, roll them up, and emit them as a significance event
-
sendEvent(type, data)
-
Emits an event using the specified eventClass
Parameters:
Name Type Description type
string The event type to emit
data
* The data to emit
- Overrides: