JmgExternalTerminal Class [AX 2012]
This class is part of the External terminal interface to Shop Floor Control. The class represents an external terminal, from where Shop Floor Control should be able to receive registrations.
| Method | Description | |
|---|---|---|
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| init | Initializes the terminal object. |
| new | Initializes a new instance of the Object class. (Inherited from Object.) |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| parse | Parses input from the external terminal into an instance of the JmgExternalTerminalData class. |
| parserClass | Returns the class ID of this class. |
| response | Based on the result from the JmgExternalTerminal.parse method, it generates the response, which are returned by the JmgExternalTerminal.insertData method. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| terminalId | Returns the terminal ID of this external terminal. |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
The class is declared as abstract. When registrations should be received from an external terminal, a subclass of this class should be created. By implementing the abstract methods of this class, a new registration can be made by simply calling the JmgExternalTerminal.insertData method. The external terminal interface is based on the notion, that incoming data can be encoded as a string, and responses to the external terminal can also be encoded as strings. Data is automatically validated, and inserted into the JmgTermReg table. If the data cannot be validated, the registration is automatically saved in the JmgTermRegError table. From here, the registrations can be reviewed, edited and either moved to the JmgTermReg table or deleted.