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

FincTimeboundNode

Extends:

FincNode → FincTimeboundNode

FincTimeboundNode extends FincNode and implements Timebound primitive, which takes a sub-fincontract and makes it valid only if the current timestamp is between FincTimeboundNode.lowerBound and FincTimeboundNode.upperBound.

Constructor Summary

Public Constructor
public

constructor(child: FincNode, lowerBound: Number, upperBound: Number)

Constructs FincTimeboundNode with a child and two timestamps: lowerBound (the beginning of Fincontract validity period) and upperBound (the end of Fincontract validity period)

Member Summary

Public Members
public

Lower bound as Unix timestamp in seconds

public

Upper bound as Unix timestamp in seconds

Inherited Summary

From class FincNode
public

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

Public Constructors

public constructor(child: FincNode, lowerBound: Number, upperBound: Number) source

Constructs FincTimeboundNode with a child and two timestamps: lowerBound (the beginning of Fincontract validity period) and upperBound (the end of Fincontract validity period)

Override:

FincNode#constructor

Params:

NameTypeAttributeDescription
child FincNode

a sub-fincontract to be embedded inside FincTimeboundNode

lowerBound Number

lower bound as Unix timestamp in seconds

upperBound Number

upper bound as Unix timestamp in seconds

Public Members

public lowerBound: Number source

Lower bound as Unix timestamp in seconds

public upperBound: Number source

Upper bound as Unix timestamp in seconds