diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-05-08 15:00:23 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-05-08 15:00:23 +0200 |
commit | 4e0fcd499a14cfc621b256f4a28f0cafe22bfc8c (patch) | |
tree | 81292af6a93e69403d7db3c739af53bf0bbbf478 /src/main/CommandQueue.java | |
parent | 485cd738f404db14f4dc1066f98596e56879e26d (diff) | |
download | TwitterDataAnalytics-4e0fcd499a14cfc621b256f4a28f0cafe22bfc8c.tar.gz |
Delete junk
Diffstat (limited to 'src/main/CommandQueue.java')
-rw-r--r-- | src/main/CommandQueue.java | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/main/CommandQueue.java b/src/main/CommandQueue.java deleted file mode 100644 index b3fde3e..0000000 --- a/src/main/CommandQueue.java +++ /dev/null @@ -1,39 +0,0 @@ -package main; - -import java.util.LinkedList; -import java.util.Queue; - -/** - * The queue of commands to be executed every step. - * - * @author Maurice Laveaux - */ -public class CommandQueue { - - // the list of commands executed in this order. - private final Queue<ICommand> m_commands; - - public CommandQueue() { - m_commands = new LinkedList(); - } - - /** - * Add another command to the last position in the queue. - * - * @param command Any command that can be executed. - */ - public void add(ICommand command) { - m_commands.offer(command); - } - - /** - * Execute every command that is in the queue. - */ - public void executeAll() { - while (!m_commands.isEmpty()) { - ICommand command = m_commands.poll(); - - command.execute(); - } - } -} |