UML for UI Plugin Framework Example Elijah Kerry National Instruments ni.com/largeapps
2 OO-Based State Machine Design UI Command sendCommand() execute() Initialize execute() + WriteUIParameters + ReadUIParameters LoadPanel execute() displayPlugin() + WriteVIReference + ReadVIReference SlidePanel execute() move() Populate Menu execute() displayPlugin() + WriteButtonNames + ReadButtonNames Also known as ‘Command Pattern’ or ‘Chain of Command Pattern’ Uses Dynamic Dispatching to determine (at run-time) which version of the execute method gets run
3 Factory Design Pattern Example Generic Plugin Data -UI Reference -Plugin Name Plugin A Configure Plugin() Plugin BPlugin CPlugin D Configure Plugin() Stop() Configure Plugin() Run() Stop() Configure Plugin() Run() Dynamic Configure Plugin() Run() Stop() Plugins are required to override configuration Static Register Events() Read Events()
4
5