Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AlloyTuple

Hierarchy

Index

Constructors

constructor

Methods

atoms

empty

  • empty(): boolean

equals

  • Returns true if this set is equivalent to the provided set, false otherwise.

    Parameters

    Returns boolean

in

  • Returns true if this set is a subset of the provided set, false otherwise.

    Parameters

    Returns boolean

join

  • Perform a join operation with another set. This operation is equivalent to the dot join operator in Alloy, in which this set is on the left side of the dot and that set is on the right side.

    Parameters

    Returns AlloySet

toString

  • toString(): string

tuples

Static tuplesFromXML

  • Create an array of tuples from a node list of <tuple> XML elements.

    Parameters

    • elements: NodeListOf<Element>

      A node list of <tuple> elements, typically created using the querySelectorAll() method on a <field> or <skolem> element.

    • types: AlloySignature[]

      An ordered array of signatures that define the type of each atom in each tuple, typically created using AlloySignature.typesFromXML.

    Returns AlloyTuple[]