Class MissionLoad
public record MissionLoad : IMissionLoad, IEquatable<MissionLoad>
- Inheritance
-
MissionLoad
- Implements
- Inherited Members
- Extension Methods
Constructors
MissionLoad()
public MissionLoad()
MissionLoad(MissionLoad)
protected MissionLoad(MissionLoad original)
Parameters
originalMissionLoad
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
Category
The category of mission this load applies to, influencing the type of emergencies simulated.
public MissionCategory Category { get; set; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
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
Id
public long Id { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(MissionLoad?)
public virtual bool Equals(MissionLoad? other)
Parameters
otherMissionLoad
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(MissionLoad?, MissionLoad?)
public static bool operator ==(MissionLoad? left, MissionLoad? right)
Parameters
leftMissionLoadrightMissionLoad
Returns
operator !=(MissionLoad?, MissionLoad?)
public static bool operator !=(MissionLoad? left, MissionLoad? right)
Parameters
leftMissionLoadrightMissionLoad