类 LoopDecorator<T>

java.lang.Object
cn.wjybxx.btree.Task<T>
cn.wjybxx.btree.Decorator<T>
cn.wjybxx.btree.decorator.LoopDecorator<T>
所有已实现的接口:
ICancelTokenListener
直接已知子类:
Repeat, UntilCond, UntilFail, UntilSuccess

public abstract class LoopDecorator<T> extends Decorator<T>
循环节点抽象
作者:
wjybxx date - 2023/11/26
  • 字段详细资料

    • maxLoop

      protected int maxLoop
      最大循环次数,超过次数直接失败;大于0有效
    • curLoop

      protected transient int curLoop
      执行前+1,因此从1开始
  • 构造器详细资料

    • LoopDecorator

      public LoopDecorator()
    • LoopDecorator

      public LoopDecorator(Task<T> child)
  • 方法详细资料