Home Reference Source Repository
import {FincOrNode} from 'fincontracts-lib/src/fincontract.js'
public class | source

FincOrNode

Extends:

FincNode → FincOrNode

FincOrNode extends FincNode and implements Or primitive, which takes two sub-fincontracts and allows the owner to choose only one of them. The other contract becomes invalid upon choice.

Constructor Summary

Public Constructor
public

constructor(leftChild: FincNode, rightChild: FincNode)

Constructs FincOrNode with two children

Inherited Summary

From class FincNode
public

References to children, can be an Array of FincNode, a FincNode or simply null.

Public Constructors

public constructor(leftChild: FincNode, rightChild: FincNode) source

Constructs FincOrNode with two children

Override:

FincNode#constructor

Params:

NameTypeAttributeDescription
leftChild FincNode

first sub-fincontract to be embedded

rightChild FincNode

second sub-fincontract to be embedded