Implementation of SECS-II Messages Using OOP

A new method using OOP (Object-Oriented Programming) and design patterns to implement SECS-Ⅱ messages is de-scribed. The programming system defines a set of objects corresponding to standard SECS-Ⅱ item types as well as relative operations and makes use of composite and visitor design patterns. SECS-Ⅱ messages can be created at run time according to item types need-ed. Furthermore,messages can also be automatically encoded,decoded and transmitted between communication nodes. The system is expansible and very useful in creating standard messages dynamically.