using System; using System.Collections.Generic; namespace TINK.Model.Station { /// Holds station info. public class Station : IStation { /// Constructs a station object. /// Id of the station. /// Group (TINK, Konrad) to which station is related. /// GPS- position of the station. /// Name of the station. public Station( string p_iId, IEnumerable p_oGroup, Position p_oPosition, string p_strStationName = "") { Id = p_iId; Group = p_oGroup ?? throw new ArgumentException("Can not construct station object. Group of stations must not be null."); Position = p_oPosition; StationName = p_strStationName ?? string.Empty; } /// Holds the unique id of the station.c public string Id { get; } /// Holds the group to which the station belongs. public IEnumerable Group { get; } /// Gets the name of the station. public string StationName { get; } /// Holds the gps- position of the station. public Position Position { get; } } }