Class CommandcenterArea
- Namespace
- SIMDispatcher.Core.Models
- Assembly
- SIMDispatcher.Core.dll
public record CommandcenterArea : IComparable<CommandcenterArea>, IComparable, IEquatable<CommandcenterArea>
- Inheritance
-
CommandcenterArea
- Implements
- Inherited Members
Properties
DispatchGroups
A list of group identifiers used for suggesting appropriate response units for incidents within this area. The groups listed here should match those specified in Unit.DispatchGroups and Keyword.DispatchGroups to ensure correct unit dispatch.
public string? DispatchGroups { get; set; }
Property Value
District
The district this area is responsible for. This is used to map addresses to specific dispatch areas.
public required AddressDistrict District { get; set; }
Property Value
Id
public long Id { get; set; }
Property Value
Increase
Indicates how many more or fewer emergencies should be generated for this area compared to other areas. Adjusting this value can help balance the workload across different districts. (1 default / normal, e.g. 50 much more emergencies in this area).
public int Increase { get; set; }
Property Value
Methods
CompareTo(CommandcenterArea?)
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(CommandcenterArea? other)
Parameters
other
CommandcenterAreaAn 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
objectAn 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.