Table of Contents

Class RuleCountBuilder

Namespace
SpatialNET.Network
Assembly
SpatialNET.Network.dll

The last step of a rule: the allowed range of the count. Each method returns the finished SpatialNET.Network.NetworkRule.

public sealed class RuleCountBuilder

Inheritance

Inherited Members

Methods

AtLeast(int)

The count must be at least min.

public NetworkRule AtLeast(int min)

Parameters

min int

Returns

NetworkRule

Exceptions

ArgumentOutOfRangeException

min is negative.

Between(int, int?)

The count must lie between min and max, both included; no max means no upper limit.

public NetworkRule Between(int min, int? max)

Parameters

min int
max int?

Returns

NetworkRule

Exceptions

ArgumentOutOfRangeException

min is negative or above max.

Exactly(int)

The count must be exactly count.

public NetworkRule Exactly(int count)

Parameters

count int

Returns

NetworkRule

Exceptions

ArgumentOutOfRangeException

count is negative.

None()

There must be nothing to count (a forbidden neighbour).

public NetworkRule None()

Returns

NetworkRule