public RequestedChanges Append(AddRoadSegmentToNumberedRoad change)
        {
            if (change == null)
            {
                throw new ArgumentNullException(nameof(change));
            }

            return(new RequestedChanges(
                       _changes.Add(change),
                       _mapToPermanentNodeIdentifiers,
                       _mapToTemporaryNodeIdentifiers,
                       _mapToPermanentSegmentIdentifiers,
                       _mapToTemporarySegmentIdentifiers,
                       _mapToPermanentGradeSeparatedJunctionIdentifiers,
                       _mapToTemporaryGradeSeparatedJunctionIdentifiers));
        }
Esempio n. 2
0
 private RoadNetworkView With(AddRoadSegmentToNumberedRoad command)
 {
     return(new RoadNetworkView(
                _nodes,
                _segments,
                _maximumNodeId,
                _maximumSegmentId,
                _maximumGradeSeparatedJunctionId,
                _maximumEuropeanRoadAttributeId,
                _maximumNationalRoadAttributeId,
                AttributeId.Max(command.AttributeId, _maximumNumberedRoadAttributeId),
                _maximumLaneAttributeId,
                _maximumWidthAttributeId,
                _maximumSurfaceAttributeId,
                _segmentReusableLaneAttributeIdentifiers,
                _segmentReusableWidthAttributeIdentifiers,
                _segmentReusableSurfaceAttributeIdentifiers));
 }