source: trunk/autoquest-ui-core/src/main/java/de/ugoe/cs/autoquest/commands/usage/CMDtrainDFA.java @ 927

Last change on this file since 927 was 927, checked in by sherbold, 12 years ago
  • added copyright under the Apache License, Version 2.0
  • Property svn:mime-type set to text/plain
File size: 1.8 KB
Line 
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
15package de.ugoe.cs.autoquest.commands.usage;
16
17import java.util.List;
18import java.util.Random;
19
20import de.ugoe.cs.autoquest.usageprofiles.DeterministicFiniteAutomaton;
21import de.ugoe.cs.autoquest.usageprofiles.TrieBasedModel;
22
23/**
24 * <p>
25 * Command to train a Deterministic Finite Automaton (DFA).
26 * </p>
27 *
28 * @author Steffen Herbold
29 * @version 2.0
30 */
31public class CMDtrainDFA extends AbstractTrainCommand {
32
33        /*
34         * (non-Javadoc)
35         *
36         * @see de.ugoe.cs.util.console.Command#help()
37         */
38        @Override
39        public String help() {
40                return "trainDFA <modelname> <sequencesName>";
41        }
42
43        /**
44         * <p>
45         * No additional parameters.
46         * </p>
47         *
48         * @see de.ugoe.cs.autoquest.commands.usage.AbstractTrainCommand#handleAdditionalParameters(java.util.List)
49         */
50        @Override
51        void handleAdditionalParameters(List<Object> parameters) throws Exception {
52                // no additional parameters.
53        }
54
55        /*
56         * (non-Javadoc)
57         *
58         * @see de.ugoe.cs.autoquest.ui.commands.AbstractTrainCommand#createModel()
59         */
60        @Override
61        TrieBasedModel createModel() {
62                return new DeterministicFiniteAutomaton(new Random());
63        }
64
65}
Note: See TracBrowser for help on using the repository browser.