Quintiq file version 2.0
#parent: #root
Method PopulateScenarioComparisonTrips (
  structured[MacroPlan] macroplans,
  structured[Period_MP] activeperiods,
  structured[Unit] units
) id:Method_ApplicationMacroPlanner_PopulateScenarioComparisonTrips
{
  #keys: '[138546.0.73390826]'
  Body:
  [*
    // Populate trips for scenario comparison
    u := selectset( macroplans, Elements.Unit, unit,
                    unit.HasCapacityTypeTransportBase()  
                    and unit.IsInUnit( units ) )
    
    trips := selectset( u, Elements.Lane.LaneLeg.Trip, trip,
                        trip.ArrivalUnitPeriod().Period_MP().IsInPeriods( activeperiods ) )
                        
    DataHolderScenarioComparisonTrips.Data( &trips );
    DataHolderScenarioComparisonTrips.Data();
  *]
}
