Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeVariableCollection

Represents the collection of variables belonging to a

see

com.bayesserver.Node .

Hierarchy

  • NodeVariableCollection

Implements

Index

Constructors

constructor

Accessors

node

  • The {@link com.bayesserver.Node} the collection belongs to.

    Returns Node

size

  • get size(): number
  • Gets the number of elements contained in the {@link com.bayesserver.NodeVariableCollection} instance.

    Returns number

Methods

_2ad2e5f4b2884a52bf8bfc07ce8953d3

  • _2ad2e5f4b2884a52bf8bfc07ce8953d3(): void

__@iterator

_urs_x_

  • _urs_x_(p_autogen9: string): void
  • Parameters

    • p_autogen9: string

    Returns void

_urt_x_

  • _urt_x_(p_autogen10: Variable, p_autogen11: string, p_autogen12: string): void
  • Parameters

    • p_autogen10: Variable
    • p_autogen11: string
    • p_autogen12: string

    Returns void

clear

  • clear(): void
  • Removes all elements from the collection.

    Returns void

get

  • Gets the {@link com.bayesserver.Variable} object at the specified index.

    Parameters

    • index: number

      The zero-based index of the {@link com.bayesserver.Variable} to find.

    Returns Variable

    A {@link com.bayesserver.Variable}.

  • Performs a case sensitive lookup.

    Parameters

    • name: string

      The name of the {@link com.bayesserver.Variable} to find.

    Returns Variable

    The {@link com.bayesserver.Variable} with the specified name; otherwise null.

includes

  • Determines whether a {@link com.bayesserver.Variable} is in the collection.

    Parameters

    • variable: Variable

      The {@link com.bayesserver.Variable} to locate in the collection. The value can be null.

    Returns boolean

    true if [variable] is found in the collection; otherwise, false.

indexOf

  • Determines the index of a specific {@link com.bayesserver.Variable} in the collection.

    Parameters

    • item: Variable

      The variable to find. The value can be null.

    Returns number

    The index of the variable in the collection, or -1 if not found.

insert

  • insert(index: number, item: Variable): void
  • Inserts an element into the collection at the specified index.

    exception

    ReferenceError Raised if [item] is null.

    exception

    Error Raised if the new variable already belongs to a node.

    exception

    RangeError index is less than 0.-or-index is equal to or greater than the collection count.

    Parameters

    • index: number

      The zero based index at which to add the element.

    • item: Variable

      The item to insert. Cannot be null.

    Returns void

push

  • Parameters

    Returns number

remove

  • Removes the {@link com.bayesserver.Variable} from the collection.

    exception

    ReferenceError Raised if [item] is null.

    Parameters

    • item: Variable

      The {@link com.bayesserver.Variable} to be removed from the collection.

    Returns boolean

    true if item was successfully removed from the collection; otherwise, false. This method also returns false if item is not found in the collection.

removeAt

  • Removes an element from the collection at the specified index.

    exception

    RangeError index is less than 0.-or-index is equal to or greater than the collection count.

    Parameters

    • index: number

      The zero based index at which to remove the element.

    Returns Variable

set

  • set(index: number, value: Variable): void
  • Sets the {@link com.bayesserver.Variable} object at the specified index.

    Parameters

    • index: number

      The zero-based index of the {@link com.bayesserver.Variable} to find.

    • value: Variable

    Returns void