source:
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/ui/commands/CMDtrainDFA.java
@
726
Last change on this file since 726 was 726, checked in by sherbold, 12 years ago | |
---|---|
|
|
File size: 1.1 KB |
Line | |
---|---|
1 | package de.ugoe.cs.quest.ui.commands; |
2 | |
3 | import java.util.List; |
4 | import java.util.Random; |
5 | |
6 | import de.ugoe.cs.quest.usageprofiles.DeterministicFiniteAutomaton; |
7 | import de.ugoe.cs.quest.usageprofiles.TrieBasedModel; |
8 | |
9 | /** |
10 | * <p> |
11 | * Command to train a Deterministic Finite Automaton (DFA). |
12 | * </p> |
13 | * |
14 | * @author Steffen Herbold |
15 | * @version 2.0 |
16 | */ |
17 | public class CMDtrainDFA extends AbstractTrainCommand { |
18 | |
19 | /* |
20 | * (non-Javadoc) |
21 | * |
22 | * @see de.ugoe.cs.util.console.Command#help() |
23 | */ |
24 | @Override |
25 | public String help() { |
26 | return "trainDFA <modelname> <sequencesName>"; |
27 | } |
28 | |
29 | /** |
30 | * <p> |
31 | * No additional parameters. |
32 | * </p> |
33 | * |
34 | * @see de.ugoe.cs.quest.ui.commands.AbstractTrainCommand#handleAdditionalParameters(java.util.List) |
35 | */ |
36 | @Override |
37 | void handleAdditionalParameters(List<Object> parameters) throws Exception { |
38 | // no additional parameters. |
39 | } |
40 | |
41 | /* |
42 | * (non-Javadoc) |
43 | * |
44 | * @see de.ugoe.cs.quest.ui.commands.AbstractTrainCommand#createModel() |
45 | */ |
46 | @Override |
47 | TrieBasedModel createModel() { |
48 | return new DeterministicFiniteAutomaton(new Random()); |
49 | } |
50 | |
51 | } |
Note: See TracBrowser
for help on using the repository browser.