TOC PREV NEXT INDEX


Simple Form Code Generation



In the simple form of information object code generation, the Invoke type above would result in the following Java typedefs being generated:

     public class Invoke extends Asn1Type {
 
        public Asn1Integer invokeID;
 
        public OPERATION_operationCode opcode;
 
        public Asn1OpenType argument;
 
 
 
       ...
 
     }
 

The following would be the procedure to add the Invoke header type to an ASN.1 message body:

1. Encode the body type
2. Get the message bytes and length of the encoded body
3. Plug the bytes into the "data" argument of the open type constructor in the Invoke type variable.
4. Populate the remaining Invoke type fields.
5. Encode the Invoke type to produce the final message.

In this case, the amount of code generated to support the information object references is minimal. The amount of coding required by a user to encode or decode the variable type field elements, however, can be rather large. This is a trade-off that exists between using the compiler generated table constraints solution (as we will see below) and using the simple form.


Objective Systems, Inc.

102 Pickering Way, Suite #506
Exton, Pennsylvania 19341
http://www.obj-sys.com
Phone: (484) 875-9841
Toll-free: (877) 307-6855 (US only)
Fax: (484) 875-9830
info@obj-sys.com
TOC PREV NEXT INDEX

Copyright © 1997-2004 Objective Systems,Inc.
All Rights Reserved.


This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.