Table of Contents

Class MissionLoad

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll
public record MissionLoad : IMissionLoad, IEquatable<MissionLoad>
Inheritance
MissionLoad
Implements
Inherited Members
Extension Methods

Constructors

MissionLoad()

public MissionLoad()

MissionLoad(MissionLoad)

protected MissionLoad(MissionLoad original)

Parameters

original MissionLoad

Properties

Amount

The amount of emergencies to be generated during the specified hour until the next defined hour in the schedule. For example, setting Hour to 10 and Amount to 15 means 15 emergencies will be generated starting at 10:00 until the next hour set in another Missionload item.

public int Amount { get; set; }

Property Value

int

Category

The category of mission this load applies to, influencing the type of emergencies simulated.

public MissionCategory Category { get; set; }

Property Value

MissionCategory

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Hour

The hour of the day (0-23) this load starts. Represents the start time for generating the specified amount of emergencies.

public int Hour { get; set; }

Property Value

int

Id

public long Id { get; set; }

Property Value

long

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(MissionLoad?)

public virtual bool Equals(MissionLoad? other)

Parameters

other MissionLoad

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

IsValid()

Validates the properties of the Missionload to ensure they are within specified limits and appropriate settings.

public bool IsValid()

Returns

bool

True if the Amount is within the range of 0-23 and the Category is not set to 'NotSet'; otherwise, false.

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(MissionLoad?, MissionLoad?)

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

Parameters

left MissionLoad
right MissionLoad

Returns

bool

operator !=(MissionLoad?, MissionLoad?)

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

Parameters

left MissionLoad
right MissionLoad

Returns

bool