本文整理匯總了Java中weka.core.Utils.getGlobalInfo方法的典型用法代碼示例。如果您正苦於以下問題:Java Utils.getGlobalInfo方法的具體用法?Java Utils.getGlobalInfo怎麽用?Java Utils.getGlobalInfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類weka.core.Utils
的用法示例。
在下文中一共展示了Utils.getGlobalInfo方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addChildrenToTree
import weka.core.Utils; //導入方法依賴的package包/類
/**
* Recursively builds a JTree from an object heirarchy. Also updates
* m_treeNodeOfCurrentObject if the current object is discovered during
* creation.
*
* @param tree the root of the tree to add children to
* @param hpp the hierarchy of objects to mirror in the tree
*/
protected void addChildrenToTree(GOETreeNode tree, HierarchyPropertyParser hpp) {
try {
for (int i = 0; i < hpp.numChildren(); i++) {
hpp.goToChild(i);
GOETreeNode child = new GOETreeNode(hpp.getValue());
if ((m_Object != null)
&& m_Object.getClass().getName().equals(hpp.fullValue())) {
m_treeNodeOfCurrentObject = child;
}
tree.add(child);
if (hpp.isLeafReached() && m_ShowGlobalInfoToolTip) {
String algName = hpp.fullValue();
try {
Object alg = Class.forName(algName).newInstance();
String toolTip = Utils.getGlobalInfo(alg, true);
if (toolTip != null) {
child.setToolTipText(toolTip);
}
} catch (Exception ex) {
}
}
addChildrenToTree(child, hpp);
hpp.goToParent();
}
} catch (Exception e) {
e.printStackTrace();
}
}
示例2: getGlobalInfo
import weka.core.Utils; //導入方法依賴的package包/類
/**
* Utility method for grabbing the global info help (if it exists) from an
* arbitrary object
*
* @param tempBean the object to grab global info from
* @return the global help info or null if global info does not exist
*/
public static String getGlobalInfo(Object tempBean) {
return Utils.getGlobalInfo(tempBean, true);
}