Class Variable

An expression representing a variable

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

name: string
VarCounter: number = -1

Accessors

  • get vars(): Set<this>
  • Get a set of all variables used by this expression

    Returns Set<this>

Methods

  • Check if a map of variables contains all variables used in this expression

    Parameters

    Returns void

  • Evaluate expression

    Parameters

    • vars: VarMap

      A map of variables to numbers to use while evaluating expressions

    • checkVars: boolean

      Weather to check if all needed variables are given or not

    Returns undefined | number

  • Simplify the expression. Can't do complete simplification
    Note: Simplification may remove expressions with no effect

    Returns Variable

Generated using TypeDoc