public class AcsCategoryClient extends CategoryClient implements AlarmSelectionListener
CategoryClient with a set of useful methods| Constructor and Description |
|---|
AcsCategoryClient(ContainerServices contServices)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AlarmCategoryListener listener)
Add a new listener
|
void |
connect()
Connect to the alarm service
|
void |
onAlarm(Alarm alarm)
Receive and dispatch alarms
|
void |
onException(LaserSelectionException e)
Callback method.
|
void |
removeListener(AlarmCategoryListener listener)
Remove a listener
|
close, connect, connect, finalize, getActiveChildren, getChildren, getMultiplicityThreshold, getParentspublic AcsCategoryClient(ContainerServices contServices) throws AlarmClientException
contServices - The container servicesAlarmClientExceptionpublic void addListener(AlarmCategoryListener listener)
listener - The listener to addpublic void removeListener(AlarmCategoryListener listener)
listener - The listener to addpublic void connect()
throws java.lang.Exception
java.lang.Exceptionpublic void onAlarm(Alarm alarm)
onAlarm in interface AlarmSelectionListeneralarm - the changed alarmpublic void onException(LaserSelectionException e)
AlarmSelectionListeneronException in interface AlarmSelectionListenere - the LaserSelectionException carrying the exception code