MaxTime
The MaxTime decorator limits the maximum time the node child can execute.
Notice that it does not interrupt the execution itself (i.e., the child
must be non-preemptive), it only interrupts the node after a RUNNING
status.
Methods
initialize
(
-
params
Initialization method.
Settings parameters:
- maxTime (Integer) Maximum time a child can execute.
- child (BaseNode) The child node.
Parameters:
-
paramsObjectObject with parameters.
tick
(
Constant
-
tick
Tick method.
Parameters:
-
tickTickA tick instance.
Returns:
Constant:
A state constant.
Properties
name
String
Node name. Default to MaxTime.
parameters
String
Node parameters.
title
String
Node title. Default to Max XXms. Used in Editor.
