Package com.uc4.communication
Class DefaultNotificationListener
java.lang.Object
com.uc4.communication.DefaultNotificationListener
- All Implemented Interfaces:
INotificationListener
Default Implementation of the
INotificationListener
interface.
Subclasses can be created if only a few methods of the INotificationListener
are needed.
The advantage of creating a sub class is that the code which uses the UC4 Application Interface does not need
to be changed whenever a new method is added to the INotificationListener
interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activationMessages
(int runNumner, UC4ObjectName task, TranslatedMessage[] messages) This method is called if there is an activation protocol for a task.void
This method is called if the activity list changed.void
asyncMessage
(AsyncMessage message) This method is called if a new message is available.void
This method is called if there was an I/O-error.void
This method is called if a notification was added or removed for the current user.void
This method is called after the client state has changed to active.void
This method is called after the client state has changed to stop.void
promptInputRequired
(int runID) This method is called if prompt values are required in order to a execute an object.void
This method is called when activating an object which requires user input.void
This method is called if the tree structure in UC4 has changed.
-
Constructor Details
-
DefaultNotificationListener
public DefaultNotificationListener()
-
-
Method Details
-
asyncMessage
Description copied from interface:INotificationListener
This method is called if a new message is available.- Specified by:
asyncMessage
in interfaceINotificationListener
- Parameters:
message
- Message
-
read
Description copied from interface:INotificationListener
This method is called when activating an object which requires user input. See also:READ
in the UC4 documentation.The request
SubmitForm
can be used to send the values to the Server and continue with the activation of the object.CancelForm
can be used to cancel the pending form. This also cancels the action of the object.- Specified by:
read
in interfaceINotificationListener
- Parameters:
form
-Form
form
-
treeChanged
public void treeChanged()Description copied from interface:INotificationListener
This method is called if the tree structure in UC4 has changed.- Specified by:
treeChanged
in interfaceINotificationListener
-
activityListChanged
public void activityListChanged()Description copied from interface:INotificationListener
This method is called if the activity list changed.- Specified by:
activityListChanged
in interfaceINotificationListener
-
highestCallOperatorChanged
public void highestCallOperatorChanged()Description copied from interface:INotificationListener
This method is called if a notification was added or removed for the current user.- Specified by:
highestCallOperatorChanged
in interfaceINotificationListener
-
processingStopped
public void processingStopped()Description copied from interface:INotificationListener
This method is called after the client state has changed to stop.- Specified by:
processingStopped
in interfaceINotificationListener
-
processingStarted
public void processingStarted()Description copied from interface:INotificationListener
This method is called after the client state has changed to active.- Specified by:
processingStarted
in interfaceINotificationListener
-
activationMessages
Description copied from interface:INotificationListener
This method is called if there is an activation protocol for a task.- Specified by:
activationMessages
in interfaceINotificationListener
- Parameters:
runNumner
- RUN# of the tasktask
- Name of the taskmessages
- Array containing the messages
-
promptInputRequired
public void promptInputRequired(int runID) Description copied from interface:INotificationListener
This method is called if prompt values are required in order to a execute an object.- Specified by:
promptInputRequired
in interfaceINotificationListener
- Parameters:
runID
- Run ID of the Object.
-
handleIOException
Description copied from interface:INotificationListener
This method is called if there was an I/O-error.- Specified by:
handleIOException
in interfaceINotificationListener
- Parameters:
e
- Exception describing the error
-