Class Keyword

Namespace
SIMDispatcher.Core.Models
Assembly
SIMDispatcher.Core.dll

Represents the keyword associated with an emergency, which acts as a key identifier in categorizing and managing the dispatch of units based on specific emergency conditions and requirements.

public record Keyword : IComparable<Keyword>, IComparable, IEquatable<Keyword>
Inheritance
Keyword
Implements
Inherited Members

Properties

CommandcenterId

Identifier for the command center associated with this keyword.

[Display(Description = "CommandcenterId", ResourceType = typeof(KeywordLocalization))]
public long CommandcenterId { get; set; }

Property Value

long

DispatchAmountAmbulanceDoctor

Specifies the number of ambulance units with a doctor to be suggested.

[Display(Description = "DispatchAmountAmbulanceDoctor", ResourceType = typeof(KeywordLocalization))]
public int DispatchAmountAmbulanceDoctor { get; set; }

Property Value

int

DispatchAmountAmbulanceICU

Specifies the number of ICU-equipped ambulance units to be suggested.

[Display(Description = "DispatchAmountAmbulanceICU", ResourceType = typeof(KeywordLocalization))]
public int DispatchAmountAmbulanceICU { get; set; }

Property Value

int

DispatchAmountAmbulanceRegular

Specifies the number of regular transport ambulance units to be suggested for non-urgent patient transport.

[Display(Description = "DispatchAmountAmbulanceRegular", ResourceType = typeof(KeywordLocalization))]
public int DispatchAmountAmbulanceRegular { get; set; }

Property Value

int

DispatchAmountAmbulanceUrgent

Specifies the number of urgent ambulance units to be suggested.

[Display(Description = "DispatchAmountAmbulanceUrgent", ResourceType = typeof(KeywordLocalization))]
public int DispatchAmountAmbulanceUrgent { get; set; }

Property Value

int

DispatchAmountDoctor

Specifies the number of medical units with a doctor to be suggested (can be air or ground units).

[Display(Description = "DispatchAmountDoctor", ResourceType = typeof(KeywordLocalization))]
public int DispatchAmountDoctor { get; set; }

Property Value

int

DispatchAmountDoctorGround

Specifies the number of ground medical units with a doctor to be suggested (excluding air units).

[Display(Description = "DispatchAmountDoctorGround", ResourceType = typeof(KeywordLocalization))]
public int DispatchAmountDoctorGround { get; set; }

Property Value

int

DispatchAmountHelicopter

Specifies the number of helicopters to be suggested.

[Display(Description = "DispatchAmountHelicopter", ResourceType = typeof(KeywordLocalization))]
public int DispatchAmountHelicopter { get; set; }

Property Value

int

DispatchAmountHelicopterICU

Specifies the number of ICU-equipped helicopters to be suggested.

[Display(Description = "DispatchAmountHelicopterICU", ResourceType = typeof(KeywordLocalization))]
public int DispatchAmountHelicopterICU { get; set; }

Property Value

int

DispatchGroups

Groups of dispatch units suggested for the keyword, used to refine the suggestions based on unit capabilities.

[Display(Description = "DispatchGroups", ResourceType = typeof(KeywordLocalization))]
public string? DispatchGroups { get; set; }

Property Value

string

Id

[Display(Description = "Id", ResourceType = typeof(KeywordLocalization))]
public long Id { get; set; }

Property Value

long

IsPoliceRequired

Specifies whether police assistance is required for the emergency situation.

[Display(Description = "IsPoliceRequired", ResourceType = typeof(KeywordLocalization))]
public bool IsPoliceRequired { get; set; }

Property Value

bool

IsUrgent

Indicates if the emergency is urgent, which may prompt units to use sirens.

[Display(Description = "IsUrgent", ResourceType = typeof(KeywordLocalization))]
public bool IsUrgent { get; set; }

Property Value

bool

IsUsedForAmbulanceRegularLying

Indicates if the keyword is used for auto-assigning regular ambulance transport operations where the patient can only lay (mapping property).

[Display(Description = "IsUsedForAmbulanceRegularLying", ResourceType = typeof(KeywordLocalization))]
public bool IsUsedForAmbulanceRegularLying { get; set; }

Property Value

bool

IsUsedForAmbulanceRegularSitting

Indicates if the keyword is used for auto-assigning regular ambulance transport operations where the patient can sit (mapping property).

[Display(Description = "IsUsedForAmbulanceRegularSitting", ResourceType = typeof(KeywordLocalization))]
public bool IsUsedForAmbulanceRegularSitting { get; set; }

Property Value

bool

IsUsedForFireAlarmSystem

Indicates if the keyword is used for automatically initiating operations triggered by fire alarm systems reporting a fire at a point of interest (POI) (mapping property).

[Display(Description = "IsUsedForFireAlarmSystem", ResourceType = typeof(KeywordLocalization))]
public bool IsUsedForFireAlarmSystem { get; set; }

Property Value

bool

Name

The name of the keyword used for search and identification purposes.

[Display(Description = "Name", ResourceType = typeof(KeywordLocalization))]
public string? Name { get; set; }

Property Value

string

RequiredEquipment

A list of equipment required for handling the emergency, linked to this keyword.

[Display(Description = "RequiredEquipment", ResourceType = typeof(KeywordLocalization))]
public List<KeywordEquipment>? RequiredEquipment { get; set; }

Property Value

List<KeywordEquipment>

Tasks

Tasks associated with this keyword that might need to be performed during the emergency response.

[Display(Description = "Tasks", ResourceType = typeof(KeywordLocalization))]
public List<KeywordTask>? Tasks { get; set; }

Property Value

List<KeywordTask>

Methods

CompareTo(Keyword?)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(Keyword? other)

Parameters

other Keyword

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.

CompareTo(object?)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(object? obj)

Parameters

obj object

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes obj in the sort order.
Zero This instance occurs in the same position in the sort order as obj.
Greater than zero This instance follows obj in the sort order.

Exceptions

ArgumentException

obj is not the same type as this instance.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.