new CompositeStrategy(strategies)
Parameters:
Name | Type | Description |
---|---|---|
strategies |
VisSense.VisMon.Strategy[] |
Properties:
Name | Type | Description |
---|---|---|
_strategies |
VisSense.VisMon.Strategy[] | A list of strategies |
Example
var visMon = VisSense(...).monitor({ strategy: new VisSense.VisMon.Strategy.CompositeStrategy([ new VisSense.VisMon.Strategy.EventStrategy(...), new VisSense.VisMon.Strategy.PollingStrategy(...) ]), update: function() { console.log('updated.'); } }).start();
Extends
Methods
-
init(monitor)
-
Parameters:
Name Type Description monitor
VisSense.VisMon Calls the init method of all strategies.
-
start(monitor)
-
Parameters:
Name Type Description monitor
VisSense.VisMon Calls the start method of all strategies.
-
stop(monitor)
-
Parameters:
Name Type Description monitor
VisSense.VisMon Calls the stop method of all strategies.