Table of Contents

Class StrategyStateDescription

Namespace
ATAS.Strategies
Assembly
ATAS.Strategies.dll

Strategy state.

public record StrategyStateDescription
Inheritance
object
StrategyStateDescription
Extension Methods

Constructors

StrategyStateDescription()

public StrategyStateDescription()

StrategyStateDescription(StrategyStateDescription)

protected StrategyStateDescription(StrategyStateDescription original)

Parameters

original StrategyStateDescription

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

ErrorDescriptions

Gets the Error state description.

public string[]? ErrorDescriptions { get; init; }

Property Value

string[]

ErrorType

Gets the Error error type.

public StrategyErrorTypes? ErrorType { get; init; }

Property Value

StrategyErrorTypes?

NewState

Gets the new state of the strategy.

public StrategyStates NewState { get; init; }

Property Value

StrategyStates

OldState

Gets the old state of the strategy.

public StrategyStates OldState { get; init; }

Property Value

StrategyStates

Methods

Equals(StrategyStateDescription?)

public virtual bool Equals(StrategyStateDescription? other)

Parameters

other StrategyStateDescription

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(StrategyStateDescription?, StrategyStateDescription?)

public static bool operator ==(StrategyStateDescription? left, StrategyStateDescription? right)

Parameters

left StrategyStateDescription
right StrategyStateDescription

Returns

bool

operator !=(StrategyStateDescription?, StrategyStateDescription?)

public static bool operator !=(StrategyStateDescription? left, StrategyStateDescription? right)

Parameters

left StrategyStateDescription
right StrategyStateDescription

Returns

bool