Table of Contents

Class DispatchCenterSimulation

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll

The parameters of the simulation of a dispatch center (see IDispatchCenterSimulation). The defaults are those of a new dispatch center.

public record DispatchCenterSimulation : IDispatchCenterSimulation, IEquatable<DispatchCenterSimulation>
Inheritance
DispatchCenterSimulation
Implements
Inherited Members
Extension Methods

Constructors

DispatchCenterSimulation()

public DispatchCenterSimulation()

DispatchCenterSimulation(DispatchCenterSimulation)

protected DispatchCenterSimulation(DispatchCenterSimulation original)

Parameters

original DispatchCenterSimulation

Properties

CallTextEmergency

The scripted emergency greeting or statement used by call takers when they answer an emergency call, e.g., "911, what's your emergency?"

public string? CallTextEmergency { get; set; }

Property Value

string

CallTextOffice

The standard greeting or statement given by a call taker when answering a regular office call at the dispatch center.

public string? CallTextOffice { get; set; }

Property Value

string

CallTextPatientTransport

The standard greeting or statement used when accepting calls for patient transport.

public string? CallTextPatientTransport { get; set; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

MaxPlayers

The maximum number of players allowed in a single session within the command center. This limit ensures that the system can manage user loads effectively without overloading resources.

public int MaxPlayers { get; set; }

Property Value

int

PatientHospitalAmbulantPercent

Percentage of patient transports that are for ambulatory services, not requiring hospitalization.

public int PatientHospitalAmbulantPercent { get; set; }

Property Value

int

Remarks

PatientHospitalDischargePercent

Percentage of patient transports that involve discharging patients from the hospital.

public int PatientHospitalDischargePercent { get; set; }

Property Value

int

Remarks

PatientHospitalDischargeToNursingHomePercent

For discharges, the percentage of patient transports to nursing homes as opposed to their own homes.

public int PatientHospitalDischargeToNursingHomePercent { get; set; }

Property Value

int

PatientHospitalTransferPercent

Percentage of patient transports that are transfers from one hospital to another.

public int PatientHospitalTransferPercent { get; set; }

Property Value

int

Remarks

PatientHospitalizationFromHomePercent

For hospitalizations, the percentage of transports originating from a home address versus a point of interest like a doctor's office or nursing home.

public int PatientHospitalizationFromHomePercent { get; set; }

Property Value

int

PatientHospitalizationPercent

Percentage of patient transports that result in hospitalization.

public int PatientHospitalizationPercent { get; set; }

Property Value

int

Remarks

PatientPickupImmediatelyPercent

Percentage indicating how often patient transports are needed immediately as opposed to being scheduled.

public int PatientPickupImmediatelyPercent { get; set; }

Property Value

int

ReduceAmbulanceSaturdayPercent

Reduction percentage in emergency medical services operations on Saturdays from 0 (no transports) and 100 (as normal).

public int ReduceAmbulanceSaturdayPercent { get; set; }

Property Value

int

ReduceAmbulanceSundayPercent

Reduction percentage in emergency medical services operations on Sundays from 0 (no transports) and 100 (as normal).

public int ReduceAmbulanceSundayPercent { get; set; }

Property Value

int

ReduceIcuTransferSaturdayPercent

Reduction percentage for intensive care unit transports on Saturdays from 0 (no transports) and 100 (as normal).

public int ReduceIcuTransferSaturdayPercent { get; set; }

Property Value

int

ReduceIcuTransferSundayPercent

Reduction percentage for intensive care unit transports on Sundays from 0 (no transports) and 100 (as normal).

public int ReduceIcuTransferSundayPercent { get; set; }

Property Value

int

ReducePatientSaturdayPercent

Reduction percentage for patient transports on Saturdays from 0 (no transports) and 100 (as normal).

public int ReducePatientSaturdayPercent { get; set; }

Property Value

int

ReducePatientSundayPercent

Reduction percentage for patient transports on Sundays from 0 (no transports) and 100 (as normal).

public int ReducePatientSundayPercent { get; set; }

Property Value

int

ResponseTimeNonVolunteerMax

The maximum time in seconds it takes for a non-volunteer unit to depart from a department after dispatch.

public int ResponseTimeNonVolunteerMax { get; set; }

Property Value

int

ResponseTimeNonVolunteerMin

The minimum time in seconds it takes for a non-volunteer unit to be dispatched and leave the department.

public int ResponseTimeNonVolunteerMin { get; set; }

Property Value

int

ResponseTimeVolunteerMax

The maximum time in seconds it takes for a volunteer unit to depart from a station after being dispatched.

public int ResponseTimeVolunteerMax { get; set; }

Property Value

int

ResponseTimeVolunteerMin

The minimum time in seconds it takes for a volunteer unit to be dispatched and leave the station.

public int ResponseTimeVolunteerMin { get; set; }

Property Value

int

SimulationStatusTransmitProbabilityPercent

Probability in percent that a simulated professional unit transmits a status change.

public int SimulationStatusTransmitProbabilityPercent { get; set; }

Property Value

int

SimulationStatusTransmitProbabilityVolunteerPercent

Probability in percent that a simulated volunteer unit transmits a status change.

public int SimulationStatusTransmitProbabilityVolunteerPercent { get; set; }

Property Value

int

UnitSpeedCarPercent

Adjustment percentage for the speed of cars under normal conditions, used to simulate varying response times based on vehicle type and urgency from 50 (fast) and 200 (slow). Default 100 (%).

public int UnitSpeedCarPercent { get; set; }

Property Value

int

UnitSpeedCarSirenPercent

Adjustment percentage for the speed of cars when a siren is used, simulating faster travel during emergencies from 50 (fast) and 200 (slow). Default 100 (%).

public int UnitSpeedCarSirenPercent { get; set; }

Property Value

int

UnitSpeedTruckPercent

Adjustment percentage for the speed of trucks under normal conditions from 50 (fast) and 200 (slow). Default 100 (%).

public int UnitSpeedTruckPercent { get; set; }

Property Value

int

UnitSpeedTruckSirenPercent

Adjustment percentage for the speed of trucks when a siren is used from 50 (fast) and 200 (slow). Default 100 (%).

public int UnitSpeedTruckSirenPercent { get; set; }

Property Value

int

UnitStatusWhenUnitIsOnStandbyLocation

The status a simulated unit reports when it reaches its standby location.

public int? UnitStatusWhenUnitIsOnStandbyLocation { get; set; }

Property Value

int?

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(DispatchCenterSimulation?)

public virtual bool Equals(DispatchCenterSimulation? other)

Parameters

other DispatchCenterSimulation

Returns

bool

GetAdjustedDriveDuration(double, bool, bool)

Adjusts the drive duration based on unit type, siren status, and speed percentage.

public double GetAdjustedDriveDuration(double duration, bool isTruck, bool isSirenOn)

Parameters

duration double

The original duration of the drive.

isTruck bool

A boolean indicating whether the unit is a truck.

isSirenOn bool

A boolean indicating whether the siren is activated.

Returns

double

The adjusted drive duration.

GetHashCode()

public override int GetHashCode()

Returns

int

GetSaturdayReductions()

Retrieves the reduction percentages for various mission categories on Saturday.

public Dictionary<MissionCategory, int> GetSaturdayReductions()

Returns

Dictionary<MissionCategory, int>

A dictionary where the keys are mission categories and the values are the reduction percentages for Saturday.

Remarks

The method checks if the reduction percentage for each mission category is different from 100%. If it is, the category and its reduction percentage are added to the dictionary.

GetSundayReductions()

Retrieves the reduction percentages for various mission categories on Sunday.

public Dictionary<MissionCategory, int> GetSundayReductions()

Returns

Dictionary<MissionCategory, int>

A dictionary where the keys are mission categories and the values are the reduction percentages for Sunday.

Remarks

The method checks if the reduction percentage for each mission category is different from 100%. If it is, the category and its reduction percentage are added to the dictionary.

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DispatchCenterSimulation?, DispatchCenterSimulation?)

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

Parameters

left DispatchCenterSimulation
right DispatchCenterSimulation

Returns

bool

operator !=(DispatchCenterSimulation?, DispatchCenterSimulation?)

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

Parameters

left DispatchCenterSimulation
right DispatchCenterSimulation

Returns

bool