2using System.Xml.Serialization;
19[XmlType(TypeName =
"transportCharacteristic")]
23 private int _transportResourceId;
46 int transportResourceId)
57 [XmlAttribute(
"itemId")]
66 throw new ArgumentOutOfRangeException(
69 "The item identifier cannot be negative.");
73 SetProperty(ref _itemId, value);
81 [XmlAttribute(
"transportResourceId")]
84 get => _transportResourceId;
90 throw new ArgumentOutOfRangeException(
93 "The transport-resource identifier cannot be negative.");
98 ref _transportResourceId,
111 return other is not
null
131 int transportResourceId)
Base class for model objects that notify listeners when one of their properties changes.
TransportCharacteristic(int itemId, int transportResourceId)
Initializes a transport characteristic.
bool ConcernsTransportResource(int transportResourceId)
Determines whether this transport characteristic concerns the specified transport resource.
bool ConcernsItem(int itemId)
Determines whether this transport characteristic concerns the specified item.
bool RefersToSameAssociation(TransportCharacteristic? other)
Determines whether this object represents the same item/transport-resource association as another obj...
int ItemId
Gets or sets the identifier of the item transported by the referenced transport resource.
TransportCharacteristic()
Initializes an empty transport characteristic.
int TransportResourceId
Gets or sets the identifier of the transport resource associated with the item.