Class: Limiter

Decorators. Limiter

This decorator limit the number of times its child can be called. After a certain number of times, the Limiter decorator returns `FAILURE` without executing the child. This is more useful for synchrnous nodes.

new Limiter()

Initialization method.

Members


parameters :Object

Node parameters.
Type:
  • Object
Properties:
Name Type Description
parameters
Properties
Name Type Description
maxLoop number Maximum number of repetitions.

<readonly> title :String

Node title. Default to `Limit X Activations`. Used in Editor.
Type:
  • String
Properties:
Name Type Description
title

Methods


validators()

defines validation methods to execute at the editor; if one of them fails, a dashed red border is displayed for the node
Returns:
Type
Array.<Validator>