本文整理了Java中org.opennms.features.topology.api.topo.Vertex.isGroup()
方法的一些代码示例,展示了Vertex.isGroup()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vertex.isGroup()
方法的具体详情如下:
包路径:org.opennms.features.topology.api.topo.Vertex
类名称:Vertex
方法名:isGroup
暂无
代码示例来源:origin: OpenNMS/opennms
private static boolean isGroup(VertexRef vertexRef) {
if(vertexRef instanceof Vertex) {
return ((Vertex) vertexRef).isGroup();
}
return false;
}
代码示例来源:origin: OpenNMS/opennms
public boolean apply(Vertex input) {
return input != null && !input.isGroup();
};
}));
代码示例来源:origin: org.opennms.features.topology/api
public boolean apply(Vertex input) {
return input != null && !input.isGroup();
};
}));
代码示例来源:origin: org.opennms.features.topology.plugins/status
private boolean isGroup(VertexRef vertexRef) {
if(vertexRef instanceof Vertex) {
return ((Vertex) vertexRef).isGroup();
}
return false;
}
代码示例来源:origin: OpenNMS/opennms
public boolean apply(Vertex input) {
return input != null && input.isGroup();
};
}));
代码示例来源:origin: org.opennms.features.topology/org.opennms.features.topology.api
public boolean apply(Vertex input) {
return input != null && !input.isGroup();
};
}));
代码示例来源:origin: org.opennms.features.topology/api
public boolean apply(Vertex input) {
return input != null && input.isGroup();
};
}));
代码示例来源:origin: org.opennms.features.topology/org.opennms.features.topology.api
public boolean apply(Vertex input) {
return input != null && input.isGroup();
};
}));
代码示例来源:origin: OpenNMS/opennms
private static void addChildrenRecursively(VertexProvider vertexProvider, VertexRef groupRef, Collection<VertexRef> vertexRefs, Criteria[] criteria) {
List<Vertex> vertices = vertexProvider.getChildren(groupRef, criteria);
for(Vertex vertex : vertices) {
if(!vertex.isGroup()) {
if (!vertexRefs.contains(vertex)) {
vertexRefs.add(vertex);
}
} else {
addChildrenRecursively(vertexProvider, vertex, vertexRefs, criteria);
}
}
}
代码示例来源:origin: org.opennms.features.topology/api
public static WrappedVertex create(Vertex vertex) {
return (vertex.isGroup() ? new WrappedGroup(vertex) : new WrappedLeafVertex(vertex));
}
代码示例来源:origin: OpenNMS/opennms
LoggerFactory.getLogger(getClass()).warn("Cannot filter nodes with ID: {}", eachRef.getId());
} else if( ((Vertex)eachRef).isGroup() && "category".equals(eachRef.getNamespace()) ){
try{
GroupRef group = (GroupRef) eachRef;
代码示例来源:origin: org.opennms.features.topology.plugins/status
private Status getStatusForGroup(VertexRef groupRef) {
List<Vertex> vertices = getVertexProvider().getChildren(groupRef);
Collection<Integer> nodeIds = new ArrayList<Integer>();
for(Vertex vertex : vertices) {
if(!vertex.isGroup()) {
nodeIds.add(vertex.getNodeID());
}
}
CriteriaBuilder builder = new CriteriaBuilder(OnmsAlarm.class);
builder.alias("node", "node");
builder.in("node.id", nodeIds);
builder.ge("severity", OnmsSeverity.WARNING);
builder.orderBy("severity").desc();
builder.limit(1);
return getStatusForCriteria(builder);
}
代码示例来源:origin: org.opennms.features.topology/api
protected WrappedVertex(Vertex vertex) {
this((VertexRef)vertex);
iconKey = vertex.getIconKey();
ipAddr = vertex.getIpAddress();
nodeID = vertex.getNodeID();
if (vertex.getParent() != null) parent = new WrappedVertex(vertex.getParent());
styleName = vertex.getStyleName();
tooltipText = vertex.getTooltipText();
x = vertex.getX();
y = vertex.getY();
group = vertex.isGroup();
locked = vertex.isLocked();
selected = vertex.isSelected();
}
内容来源于网络,如有侵权,请联系作者删除!