class SetSnarePatternAnalyticsEvent implements IEventChain {

    @Override
    public QueueState set(QueueState queueState) {

        for(ProgressionUnit progressionUnit : queueState.getStructure()){
            for(ProgressionUnitBar progressionUnitBar : progressionUnit.getProgressionUnitBars()){
                progressionUnitBar.getCompositionTimeSlot().setSnarePatternId(progressionUnitBar.getSnarePattern().getId());
            }
        }

        return queueState;
    }

}