Table of Contents

Class HospitalDepartment

Namespace
XENBIT.ResQueServe.Abstractions.DataStructures
Assembly
RQS.Abstractions.dll

A department of a hospital POI with its optional settings. Settings that are not set fall back to the defaults of the simulation (e.g. the default capacity of the department).

[JsonConverter(typeof(HospitalDepartmentJsonConverter))]
public record HospitalDepartment : IEquatable<HospitalDepartment>
Inheritance
HospitalDepartment
Implements
Inherited Members
Extension Methods

Constructors

HospitalDepartment()

public HospitalDepartment()

HospitalDepartment(HospitalDepartment)

[SetsRequiredMembers]
protected HospitalDepartment(HospitalDepartment original)

Parameters

original HospitalDepartment

Properties

Capacity

The number of patients the department can take at the same time; null if the default capacity of the department applies.

public int? Capacity { get; set; }

Property Value

int?

Department

The kind of department.

public required PoiHospitalDepartment Department { get; set; }

Property Value

PoiHospitalDepartment

Entrance

The entrance units drive or walk to for this department if it differs from the coordinates of the hospital; null if the hospital coordinates apply.

public Coordinates? Entrance { get; set; }

Property Value

Coordinates?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

HelicopterLandingZone

The POI where helicopters land for this department (category HelicopterLandingZone, e.g. a helipad on the roof of the building); null if the landing zone of the hospital applies.

public IPoi? HelicopterLandingZone { get; set; }

Property Value

IPoi

Name

The name of the department or ward (e.g. "Station 3B"); null if not set.

public string? Name { get; set; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(HospitalDepartment?)

public virtual bool Equals(HospitalDepartment? other)

Parameters

other HospitalDepartment

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(HospitalDepartment?, HospitalDepartment?)

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

Parameters

left HospitalDepartment
right HospitalDepartment

Returns

bool

operator !=(HospitalDepartment?, HospitalDepartment?)

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

Parameters

left HospitalDepartment
right HospitalDepartment

Returns

bool