Table of Contents

Class BindingCostModel

Namespace
DotBoxD.Kernels.Bindings
Assembly
DotBoxD.Kernels.dll
public sealed record BindingCostModel : IEquatable<BindingCostModel>
Inheritance
BindingCostModel
Implements
Inherited Members

Constructors

BindingCostModel(long, long, bool, int?)

public BindingCostModel(long BaseFuel, long PerByteFuel = 0, bool AllocationFromReturnBytes = false, int? MaxCallsPerRun = null)

Parameters

BaseFuel long
PerByteFuel long
AllocationFromReturnBytes bool
MaxCallsPerRun int?

Properties

AllocationFromReturnBytes

public bool AllocationFromReturnBytes { get; init; }

Property Value

bool

BaseFuel

public long BaseFuel { get; init; }

Property Value

long

MaxCallsPerRun

public int? MaxCallsPerRun { get; init; }

Property Value

int?

PerByteFuel

public long PerByteFuel { get; init; }

Property Value

long

Methods

Fixed(long)

public static BindingCostModel Fixed(long baseFuel)

Parameters

baseFuel long

Returns

BindingCostModel

PerByte(long, long)

public static BindingCostModel PerByte(long baseFuel, long perByteFuel)

Parameters

baseFuel long
perByteFuel long

Returns

BindingCostModel

PerReturnedByte(long, long)

public static BindingCostModel PerReturnedByte(long baseFuel, long perByteFuel)

Parameters

baseFuel long
perByteFuel long

Returns

BindingCostModel