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
originalHospitalDepartment
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
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
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
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
Name
The name of the department or ward (e.g. "Station 3B"); null if not set.
public string? Name { get; set; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(HospitalDepartment?)
public virtual bool Equals(HospitalDepartment? other)
Parameters
otherHospitalDepartment
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(HospitalDepartment?, HospitalDepartment?)
public static bool operator ==(HospitalDepartment? left, HospitalDepartment? right)
Parameters
leftHospitalDepartmentrightHospitalDepartment
Returns
operator !=(HospitalDepartment?, HospitalDepartment?)
public static bool operator !=(HospitalDepartment? left, HospitalDepartment? right)
Parameters
leftHospitalDepartmentrightHospitalDepartment