yajsapi - JavaScript high-level API
Yagna Contributor Guide

Class: LeastExpensiveLinearPayuMS

yajsapi / Exports / executor/strategy / LeastExpensiveLinearPayuMS

Class: LeastExpensiveLinearPayuMS

executor/strategy.LeastExpensiveLinearPayuMS

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LeastExpensiveLinearPayuMS(expected_time_secs?, max_fixed_price?, max_price_for?)

Parameters

Name

Type

Default value

expected_time_secs

number

60

max_fixed_price?

number

undefined

max_price_for?

Map<Counter, number>

undefined

Defined in

yajsapi/executor/strategy.ts:71

Properties

_expected_time_secs

Private _expected_time_secs: number

Defined in

yajsapi/executor/strategy.ts:69

_max_fixed_price

Private Optional _max_fixed_price: number

Defined in

yajsapi/executor/strategy.ts:70

_max_price_for

Private Optional _max_price_for: Map<Counter, number>

Defined in

yajsapi/executor/strategy.ts:71

Methods

decorate_demand

decorate_demand(demand): Promise

Parameters

Name

Type

demand

DemandBuilder

Returns

Promise

Defined in

yajsapi/executor/strategy.ts:83

score_offer

score_offer(offer, history?): Promise

Parameters

Name

Type

offer

OfferProposal

history?

ComputationHistory

Returns

Promise

Defined in

yajsapi/executor/strategy.ts:87