Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NodeLinkCollection

Represents a read-only collection of links. To add a link to a network see {@link com.bayesserver.Network#getLinks Links}.

{@link com.bayesserver.Node#getLinks}, {@link com.bayesserver.Node#getLinksIn} and {@link com.bayesserver.Node#getLinksOut} are instances of this class.

Hierarchy

  • NodeLinkCollection

Implements

Index

Constructors

constructor

Accessors

node

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

    Returns Node

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

size

  • get size(): number
  • Gets the number of elements contained in the collection.

    Returns number

Methods

_2ad2e5f4b2884a52bf8bfc07ce8953d3

  • _2ad2e5f4b2884a52bf8bfc07ce8953d3(): void

__@iterator

  • __@iterator(): Iterator<Link>

_urq_x_

  • _urq_x_(p_autogen4: Link): void
  • Parameters

    Returns void

_urr_x_

  • _urr_x_(p_autogen5: Link): void
  • Parameters

    Returns void

clear

  • clear(): void
  • Returns void

get

  • get(index: number): Link
  • Gets the {@link com.bayesserver.Link} object at the specified index.

    Parameters

    • index: number

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

    Returns Link

    A {@link com.bayesserver.Link}.

includes

  • includes(item: Link): boolean
  • Determines whether a {@link com.bayesserver.Link} is in the collection.

    Parameters

    • item: Link

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

    Returns boolean

    true if item is found in the collection; otherwise, false.

indexOf

  • indexOf(item: Link): number
  • Searches for the specified object and returns the zero-based index of the {@link com.bayesserver.Link} within the entire collection, or -1 if not found.

    Parameters

    • item: Link

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

    Returns number

    The zero-based index of the {@link com.bayesserver.Link} within the entire collection, if found; otherwise, �1.

insert

  • insert(index: number, item: Link): void
  • Parameters

    • index: number
    • item: Link

    Returns void

push

  • push(...items: Link[]): number
  • Parameters

    • Rest ...items: Link[]

    Returns number

remove

  • remove(item: Link): boolean
  • Parameters

    Returns boolean

removeAt

  • removeAt(index: number): Link
  • Parameters

    • index: number

    Returns Link

set

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

    Parameters

    • index: number

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

    • value: Link

    Returns void