PredicateCondition

Defines a predicate condition as an extension of Condition

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a new PredicateCondition

    Parameters

    • actionManager: ActionManager

      manager for the action the condition applies to

    • predicate: function

      defines the predicate function used to validate the condition

        • (): boolean
        • Returns boolean

    Returns PredicateCondition

Properties

predicate

predicate: function

defines the predicate function used to validate the condition

Type declaration

    • (): boolean
    • Returns boolean

Methods

isValid

  • isValid(): boolean
  • Returns boolean

    the validity of the predicate condition

serialize

  • serialize(): any
  • Serialize placeholder for child classes

    Returns any

    the serialized object

Generated using TypeDoc