Accepted and excluded classes

You can specify the business objects that will be represented or not in the equipment component depending on their business classes. To do so, you need to specify the business classes to be accepted or excluded using methods setAcceptedClasses or setExcludedClasses in the equipment component adapter. To retrieve the adapter, use the getAdapter method. The adapter must be an instance of a subclass of IlpAbstractNodeAdapter. By default, business objects of the class IltAlarm are excluded from the equipment component, so that alarm objects in the data source are only used to compute the alarms present in a given managed entity instead of being graphically represented in the view.

How to specify excluded classes in the equipment component

You can specify that business objects from specific business classes are not represented in the equipment component. You can do that using the API, setExcludedClasses method, or using CSS.
The following example shows you how to prevent objects from business classes IltAlarm and IltLed to be represented:
Adapter {
  excludedClasses[0]: "ilog.tgo.model.IltAlarm";
  excludedClasses[1]: "ilog.tgo.model.IltLed";
}

How to specify an accepted class in the equipment component

By default, all business classes, except IltAlarm, are accepted by the equipment component. If you want to specify exactly which business classes to represent, you should combine the list of excluded and accepted classes, so that you exclude all business classes except those that are marked in the accepted class list.
In the following example, the equipment component is configured in a way that it graphically represents only business objects from the class IltNetworkElement.
Adapter {
  excludedClasses[0]: "ilog.tgo.model.IltAlarm";
  excludedClasses[0]: "ilog.tgo.model.IltObject";
  acceptedClasses[0]: "ilog.tgo.model.IltNetworkElement";
}
Note
The filtering that is performed through the use of the accepted and excluded class lists takes actually place at the adapter level.
To see how to configure excluded and accepted classes through CSS, refer to The Adapter rule .