Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NetworkVariableCollection

Represents a read-only collection of variables that belong to a network. When a variable is added to a {@link com.bayesserver.Node} it is automatically inserted into this collection.

Hierarchy

  • NetworkVariableCollection

Implements

Index

Constructors

constructor

Accessors

network

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

    Returns Network

size

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

    Returns number

Methods

_2ad2e5f4b2884a52bf8bfc07ce8953d3

  • _2ad2e5f4b2884a52bf8bfc07ce8953d3(): void

__@iterator

_tst_x_

  • Parameters

    Returns void

_tsu_x_

  • _tsu_x_(p_autogen12: string): void
  • Parameters

    • p_autogen12: string

    Returns void

_tsv_x_

  • _tsv_x_(p_autogen13: Variable, p_autogen14: string, p_autogen15: string): void
  • Parameters

    • p_autogen13: Variable
    • p_autogen14: string
    • p_autogen15: string

    Returns void

_ttq_x_

  • Parameters

    Returns void

_ttr_x_

  • _ttr_x_(p_autogen19: Node): void
  • Parameters

    Returns void

_tts_x_

  • _tts_x_(p_autogen20: Node): void
  • Parameters

    Returns void

clear

  • clear(): void
  • Returns void

get

  • 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} found with the specified name; otherwise null.

  • Performs a case sensitive lookup.

    Parameters

    • name: string

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

    • throwIfNotFound: boolean

      When true throws an exception if the name is not found.

    Returns Variable

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

  • 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}.

includes

  • Determines whether a {@link com.bayesserver.Variable} is in the collection. The operation is O(1).

    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. This operation is O(1).

    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
  • Parameters

    Returns void

push

  • Parameters

    Returns number

remove

  • Parameters

    Returns boolean

removeAt

set

  • set(index: number, value: Variable): void
  • 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.

    • value: Variable

    Returns void