Exemplo n.º 1
0
        public RequestedChanges Append(AddRoadSegmentToNationalRoad change)
        {
            if (change == null)
            {
                throw new ArgumentNullException(nameof(change));
            }

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