本文整理汇总了Java中vnreal.gui.dialog.MetricsDialog类的典型用法代码示例。如果您正苦于以下问题:Java MetricsDialog类的具体用法?Java MetricsDialog怎么用?Java MetricsDialog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MetricsDialog类属于vnreal.gui.dialog包,在下文中一共展示了MetricsDialog类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: actionPerformed
import vnreal.gui.dialog.MetricsDialog; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
String cmd = e.getActionCommand();
Scenario scenario = GUI.getInstance().getScenario();
if (scenario.getNetworkStack() != null)
if (scenario.getNetworkStack().hasMappings())
try {
new MetricsDialog((EvaluationMetric) metricClasses.get(cmd)
.newInstance(), scenario);
} catch (Exception e1) {
e1.printStackTrace();
}
else
System.err.println("Scenario does not have mappings!");
else
System.err.println("No scenario open!");
}
示例2: actionPerformed
import vnreal.gui.dialog.MetricsDialog; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
String cmd = e.getActionCommand();
if (ToolKit.getScenario().getNetworkStack() != null)
if (ToolKit.getScenario().getNetworkStack().hasMappings())
try {
new MetricsDialog((AbstractEvaluation) metricClasses.get(
cmd).newInstance());
} catch (Exception e1) {
e1.printStackTrace();
}
else
System.err.println("Scenario does not have mappings!");
else
System.err.println("No scenario open!");
}
示例3: actionPerformed
import vnreal.gui.dialog.MetricsDialog; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
String cmd = e.getActionCommand();
if (scenario.getNetworkStack() != null)
if (scenario.getNetworkStack().hasMappings())
try {
new MetricsDialog((EvaluationMetric) metricClasses.get(cmd)
.newInstance(), scenario);
} catch (Exception e1) {
e1.printStackTrace();
}
else
System.err.println("Scenario does not have mappings!");
else
System.err.println("No scenario open!");
}