source: trunk/autoquest-plugin-guitar/src/main/java/de/ugoe/cs/autoquest/plugin/alignment/commands/CMDbinaryAlignment.java @ 1304

Last change on this file since 1304 was 1304, checked in by rkrimmel, 11 years ago

Resolved SVN conflicts

  • Property svn:mime-type set to text/plain
File size: 2.0 KB
RevLine 
[927]1//   Copyright 2012 Georg-August-Universität Göttingen, Germany
2//
3//   Licensed under the Apache License, Version 2.0 (the "License");
4//   you may not use this file except in compliance with the License.
5//   You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9//   Unless required by applicable law or agreed to in writing, software
10//   distributed under the License is distributed on an "AS IS" BASIS,
11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//   See the License for the specific language governing permissions and
13//   limitations under the License.
14
[1303]15package de.ugoe.cs.autoquest.plugin.alignment.commands;
[205]16
17import java.io.File;
[425]18import java.io.FilenameFilter;
[205]19import java.util.Collection;
20import java.util.LinkedList;
21import java.util.List;
[639]22import java.util.logging.Level;
[205]23
[922]24import de.ugoe.cs.autoquest.CommandHelpers;
25import de.ugoe.cs.autoquest.eventcore.Event;
[205]26import de.ugoe.cs.util.console.Command;
27import de.ugoe.cs.util.console.Console;
[667]28import de.ugoe.cs.util.console.GlobalDataContainer;
[205]29
[206]30/**
31 * <p>
[1303]32 * Command to generate a binary alignment of two sequences
[206]33 * </p>
34 *
35 * @author Steffen Herbold
36 * @version 1.0
37 */
[1303]38public class CMDbinaryAligment implements Command {
[205]39
[206]40        /*
41         * (non-Javadoc)
42         *
43         * @see de.ugoe.cs.util.console.Command#run(java.util.List)
44         */
[205]45        @Override
46        public void run(List<Object> parameters) {
[227]47                String sequencesName;
[1303]48                String algorithm;
[205]49                try {
[1303]50                        sequencesName = (String) parameters.get(0);
51                        if (parameters.size() > 1) {
52                                algorithm = (String) parameters.get(1);
[205]53                        }
54                } catch (Exception e) {
[766]55                        throw new IllegalArgumentException();
[205]56                }
[206]57
[425]58               
[556]59                Collection<List<Event>> sequences = new LinkedList<List<Event>>();
[1303]60               
[206]61
[205]62        }
63
[206]64        /*
65         * (non-Javadoc)
66         *
67         * @see de.ugoe.cs.util.console.Command#help()
68         */
[205]69        @Override
[664]70        public String help() {
[1303]71                return "binaryAlignment <sequencesName> {<algorithm>}";
[205]72        }
73
74}
Note: See TracBrowser for help on using the repository browser.