Class ContinuousResolver
A convenience class that resolves streams continuously in the background throughout its lifetime and which can be queried at any time for the set of streams that are currently visible on the network.
Namespace: LSL4Unity
Assembly: cs.temp.dll.dll
Syntax
public class ContinuousResolver : LSLObject, IDisposable
Constructors
ContinuousResolver(Double)
Initializes a new instance of the Continuous
This is analogous to the functionality offered by the free function
Declaration
public ContinuousResolver(double forgetAfter = 5)
Parameters
Type | Name | Description |
---|---|---|
Double | forgetAfter | When a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver. |
ContinuousResolver(String, Double)
Initializes a new instance of the Continuous
This is analogous to the functionality provided by the free function
Declaration
public ContinuousResolver(string pred, double forgetAfter = 5)
Parameters
Type | Name | Description |
---|---|---|
String | pred | The predicate string, e.g. "name='BioSemi'" or "type='EEG' and starts-with(name,'BioSemi') and count(info/desc/channel)=32" |
Double | forgetAfter | When a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver. |
ContinuousResolver(String, String, Double)
Initializes a new instance of the Continuous
This is analogous to the functionality provided by the free function
Declaration
public ContinuousResolver(string prop, string value, double forgetAfter = 5)
Parameters
Type | Name | Description |
---|---|---|
String | prop | The Stream |
String | value | The string value that the property should have (e.g., "EEG" as the type property). |
Double | forgetAfter | When a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver. |
Methods
DestroyLSLObject(IntPtr)
Declaration
protected override void DestroyLSLObject(IntPtr obj)
Parameters
Type | Name | Description |
---|---|---|
Int |
obj |
Overrides
Results()
Obtain the set of currently present streams on the network (i.e. resolve result).
Declaration
public StreamInfo[] Results()
Returns
Type | Description |
---|---|
Stream |
An array of matching stream info objects (excluding their meta-data), any of which can subsequently be used to open an inlet. |