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 intrinsicNamestring 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 intrinsicNamestring The name of the intrinsic
weightingFactorstring The weight factor
 - 
    
        
async, static shutdown()
 - 
    
    
Shuts down the Significance singleton
 - 
    
        
getChange(evt)
 - 
    
    
Collects change events
Parameters:
Name Type Description evtEventBusBase 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 typestring The event type to emit
data* The data to emit
- Overrides: