public class RTCCategory extends Category
Constructor and Description |
---|
RTCCategory(Category cat,
String commonRule)
The default constructor - initializes the values
|
Modifier and Type | Method and Description |
---|---|
void |
addAllNodes(Collection<Integer> nodes)
Delete all nodes in this category
|
void |
addNode(int nodeid)
Add to the nodes in this category
|
void |
addNode(RTCNode node)
Add to the nodes in this category
|
void |
clearNodes()
Delete all nodes in this category
|
boolean |
containsService(String svcname)
Returns true if the service is in the services list in this category or
if service list is null
|
void |
deleteNode(int nodeid)
Delete from the nodes in this category
|
String |
getEffectiveRule()
Return the 'effective' category rule
|
List<Integer> |
getNodes()
Get the node IDs in this category
|
addService, clearServices, equals, getComment, getLabel, getNormalThreshold, getRule, getServices, getWarningThreshold, hashCode, isValid, setComment, setLabel, setNormalThreshold, setRule, setServices, setWarningThreshold
public void addNode(RTCNode node)
node
- the node to addpublic void addNode(int nodeid)
nodeid
- the node ID to addpublic void deleteNode(int nodeid)
nodeid
- the node ID to deletepublic void clearNodes()
public void addAllNodes(Collection<Integer> nodes)
public boolean containsService(String svcname)
svcname
- a String
object.public String getEffectiveRule()
Copyright © 2017. All rights reserved.