Table of Contents

Class DoubleProperty

Namespace
Bonsai.Expressions
Assembly
Bonsai.Core.dll

Represents a workflow property containing a double-precision floating-point number.

Property sources expose a value which can be set from the property grid and also generate an observable sequence that emits a notification whenever the property value changes, starting with the initial property value.

Tip

Property sources are commonly used to create new configuration parameters with custom names for nested workflows. To expose and rename a property source, use Property Mapping to externalize the property value and set its DisplayName.

public class DoubleProperty : WorkflowProperty
Inheritance
DoubleProperty
Inherited Members

Properties

Value

Gets or sets the value of the property.

[Range(0, 1)]
public double Value { get; set; }

Property Value

double

Methods

Generate()

Generates an observable sequence that produces a value whenever the workflow property changes, starting with the initial property value.

public virtual IObservable<double> Generate()

Returns

IObservable<double>

An observable sequence of property values.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence that produces a value whenever the source sequence emits a new element.

public IObservable<double> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The source sequence used to generate new values.

Returns

IObservable<double>

An observable sequence of property values.

Type Parameters

TSource

The type of the elements in the source sequence.