Class StrategyStateDescription
- Namespace
- ATAS.Strategies
- Assembly
- ATAS.Strategies.dll
Strategy state.
public record StrategyStateDescription
- Inheritance
-
objectStrategyStateDescription
- Extension Methods
Constructors
StrategyStateDescription()
public StrategyStateDescription()
StrategyStateDescription(StrategyStateDescription)
protected StrategyStateDescription(StrategyStateDescription original)
Parameters
originalStrategyStateDescription
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
NewState
Gets the new state of the strategy.
public StrategyStates NewState { get; init; }
Property Value
OldState
Gets the old state of the strategy.
public StrategyStates OldState { get; init; }
Property Value
Methods
Equals(StrategyStateDescription?)
public virtual bool Equals(StrategyStateDescription? other)
Parameters
otherStrategyStateDescription
Returns
- bool
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
- bool
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(StrategyStateDescription?, StrategyStateDescription?)
public static bool operator ==(StrategyStateDescription? left, StrategyStateDescription? right)
Parameters
leftStrategyStateDescriptionrightStrategyStateDescription
Returns
- bool
operator !=(StrategyStateDescription?, StrategyStateDescription?)
public static bool operator !=(StrategyStateDescription? left, StrategyStateDescription? right)
Parameters
leftStrategyStateDescriptionrightStrategyStateDescription
Returns
- bool