Struct BlockConstraints.Inputs

A block type's input requirements.

Namespace: MOSAIC.Components.Factory
Assembly: MOSAIC.dll
Syntax
public readonly record struct BlockConstraints.Inputs : IEquatable<BlockConstraints.Inputs>

Constructors

Inputs(int, int, IReadOnlyList<string>)

A block type's input requirements.

Declaration
public Inputs(int Min, int Max, IReadOnlyList<string> Allowable)
Parameters
Type Name Description
int Min

Minimum number of input edges (0 ⇒ source block).

int Max

Maximum number of input edges (MaxValue ⇒ unbounded).

IReadOnlyList<string> Allowable

Class names allowed as inputs; empty ⇒ any block type is accepted.

Properties

Allowable

Class names allowed as inputs; empty ⇒ any block type is accepted.

Declaration
public IReadOnlyList<string> Allowable { get; init; }
Property Value
Type Description
IReadOnlyList<string>

Max

Maximum number of input edges (MaxValue ⇒ unbounded).

Declaration
public int Max { get; init; }
Property Value
Type Description
int

Min

Minimum number of input edges (0 ⇒ source block).

Declaration
public int Min { get; init; }
Property Value
Type Description
int

Implements

IEquatable<T>

Search documentation

Start typing to search the documentation.