code cleanup and formatting
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / EncodingPlan.java
1 /*
2  * Meviz - Various tools collection to work with multimedia.
3  * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4  * 
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of version 2 of the GNU General Public License
7  * as published by the Free Software Foundation.
8  */
9
10 package eu.svjatoslav.meviz.encoder;
11
12 import java.io.IOException;
13 import java.util.ArrayList;
14
15 public class EncodingPlan {
16
17     public ArrayList<EncodingTask> encodingTasks = new ArrayList<EncodingTask>();
18
19     public void execute(final EncodingOptions encodingOptions)
20             throws IOException {
21
22         for (final EncodingTask task : encodingTasks)
23             task.execute(encodingOptions);
24
25     }
26
27     public void scheduleTask(final EncodingTask encodingTask) {
28         encodingTasks.add(encodingTask);
29     }
30
31 }