资源简介
KMP图形界面的具体实现,包括具体代码,以及动态演示
代码片段和文件信息
package algorithm.control;
import javax.swing.Jframe;
import algorithm.core.KMPAlgorithmModel;
import algorithm.view.Outputframe;
public class InputControl {
private String patterns; // 模式字符串
private String text; // 带匹配文本
public InputControl() {
}
public String getPatterns() {
return patterns;
}
public void setPatterns(String patterns) {
this.patterns = patterns;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public static void setUpModelandView(String patternsString text){
if(!patterns.equals(““)&&!text.equals(““)){
//KMPAlgorithmModel model = ModelFactory.getModel();
//model.setPatterns(patterns);
//model.setText(text);
KMPAlgorithmModel model = new KMPAlgorithmModel(patternstext);
model.setPiArray(model.prefixFun());
Jframe frame = new Jframe(“KMPAlgorithm“);
frame.add(new Outputframe(model));
frame.setVisible(true);
frame.pack();
frame.setLocationRelativeTo(null);
model.match(true);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 232 2011-10-20 23:35 KMPAlgorithmBeta\.classpath
文件 392 2011-10-20 23:35 KMPAlgorithmBeta\.project
文件 88 2011-10-21 11:05 KMPAlgorithmBeta\.settings\org.eclipse.core.resources.prefs
文件 83 2011-10-21 11:10 KMPAlgorithmBeta\.settings\org.eclipse.core.runtime.prefs
文件 1610 2011-10-30 23:12 KMPAlgorithmBeta\bin\algorithm\control\InputControl.class
文件 4446 2011-10-29 13:28 KMPAlgorithmBeta\bin\algorithm\core\KMPAlgorithmModel.class
文件 3198 2011-10-29 13:28 KMPAlgorithmBeta\bin\algorithm\view\Inputfr
文件 1951 2011-10-29 13:28 KMPAlgorithmBeta\bin\algorithm\view\Outputfr
文件 8190 2011-10-29 13:28 KMPAlgorithmBeta\bin\algorithm\view\Outputfr
文件 10879 2011-10-21 10:17 KMPAlgorithmBeta\extractor_beta.jar
文件 70 2011-10-21 10:19 KMPAlgorithmBeta\readMe.txt
文件 1115 2011-10-30 23:12 KMPAlgorithmBeta\src\algorithm\control\InputControl.java
文件 4958 2011-10-20 23:31 KMPAlgorithmBeta\src\algorithm\core\KMPAlgorithmModel.java
文件 2203 2011-10-19 23:35 KMPAlgorithmBeta\src\algorithm\view\Inputfr
文件 9410 2011-10-21 11:14 KMPAlgorithmBeta\src\algorithm\view\Outputfr
目录 0 2011-10-29 13:28 KMPAlgorithmBeta\bin\algorithm\control
目录 0 2011-10-29 13:28 KMPAlgorithmBeta\bin\algorithm\core
目录 0 2011-10-29 13:28 KMPAlgorithmBeta\bin\algorithm\view
目录 0 2011-10-21 11:04 KMPAlgorithmBeta\src\algorithm\control
目录 0 2011-10-21 11:04 KMPAlgorithmBeta\src\algorithm\core
目录 0 2011-10-21 11:04 KMPAlgorithmBeta\src\algorithm\view
目录 0 2011-10-29 13:28 KMPAlgorithmBeta\bin\algorithm
目录 0 2011-10-21 11:04 KMPAlgorithmBeta\src\algorithm
目录 0 2011-10-21 11:10 KMPAlgorithmBeta\.settings
目录 0 2011-10-29 13:28 KMPAlgorithmBeta\bin
目录 0 2011-10-21 11:04 KMPAlgorithmBeta\src
目录 0 2011-10-21 11:05 KMPAlgorithmBeta
----------- --------- ---------- ----- ----
48825 27
............此处省略0个文件信息
- 上一篇:利用后缀表达式计算中缀表达式的值
- 下一篇:excel办公技巧大全
评论
共有 条评论