Table of Contents

Class GroupedField

Namespace
adas_core.Domain.Models.GroupedObservations
Assembly
adas-core.Domain.dll

Represents a field that belongs to a logical grouping, encapsulating the concept of a field within a grouped structure.

public class GroupedField
Inheritance
GroupedField
Inherited Members
Extension Methods

Remarks

This type is intended to model fields that are organized together as part of a group, allowing related field metadata or behavior to be handled collectively.

Constructors

GroupedField()

public GroupedField()

GroupedField(string?, List<string>?, string?, List<string>?, int, Regularity?, Since, List<Result>?, List<string>?)

public GroupedField(string? name, List<string>? names, string? group, List<string>? startTimeShift, int max, GroupedObservationEnum.Regularity? regularity, GroupedObservationEnum.Since since, List<GroupedObservationEnum.Result>? result, List<string>? labelList)

Parameters

name string
names List<string>
group string
startTimeShift List<string>
max int
regularity GroupedObservationEnum.Regularity?
since GroupedObservationEnum.Since
result List<GroupedObservationEnum.Result>
labelList List<string>

Properties

Group

public string? Group { get; init; }

Property Value

string

LabelList

public List<string>? LabelList { get; init; }

Property Value

List<string>

Max

public int Max { get; init; }

Property Value

int

Name

public string? Name { get; init; }

Property Value

string

Names

public List<string> Names { get; init; }

Property Value

List<string>

Regularity

public GroupedObservationEnum.Regularity? Regularity { get; init; }

Property Value

GroupedObservationEnum.Regularity?

Result

public List<GroupedObservationEnum.Result> Result { get; init; }

Property Value

List<GroupedObservationEnum.Result>

Since

public GroupedObservationEnum.Since Since { get; init; }

Property Value

GroupedObservationEnum.Since

StartTimeShift

public List<string> StartTimeShift { get; init; }

Property Value

List<string>

Methods

Equals(object?)

Determines whether the specified object is equal to the current GroupedField by comparing their Group property values. Returns true only when obj is a GroupedField instance with a matching Group; otherwise returns false (including for null or non-matching types).

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if the specified object is a GroupedField with the same Group; otherwise, false.

GetHashCode()

Computes a hash code for the current instance by combining the values of its key properties: Name, Group, Max, Regularity, and Result. This override ensures consistent hash-based behavior for equality comparisons and use in hash-based collections.

public override int GetHashCode()

Returns

int

An integer hash code derived from the object's key properties.

GetNames()

Retrieves the list of names stored in the current instance.

public List<string> GetNames()

Returns

List<string>

A List<T> containing the names; returns the underlying field directly without copying or filtering.