ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
enlighten.BusinessObjects.BusinessObjects Class Reference

This is sort of an "extension class" to Controller, or a "partial class" in C# terms. More...

Public Member Functions

 __init__ (self, ctl)
 
 clear (self)
 Ensures objects can check for other's instantiation during start-up.
 
 create_first (self)
 These are things needed early in the Controller's constructor initialization, i.e.
 
 create_rest (self)
 Create the remaining business objects which allow us to encapsulate coherent sets of application functionality outside the Controller.
 
 destroy (self)
 
 header (self, msg)
 

Public Attributes

 ctl = ctl
 

Detailed Description

This is sort of an "extension class" to Controller, or a "partial class" in C# terms.

It's not really a separate object, so much as a place to encapsulate one huge set of related functionality out of Controller.py, to make that already-huge class more navigable and maintainable.

Consider having this maintain a list of all business objects, so Controller could call update_visibility() etc on all of them.

Constructor & Destructor Documentation

◆ __init__()

enlighten.BusinessObjects.BusinessObjects.__init__ ( self,
ctl )

Member Function Documentation

◆ clear()

enlighten.BusinessObjects.BusinessObjects.clear ( self)

Ensures objects can check for other's instantiation during start-up.

◆ create_first()

enlighten.BusinessObjects.BusinessObjects.create_first ( self)

These are things needed early in the Controller's constructor initialization, i.e.

before the placeholders are populated.

◆ create_rest()

enlighten.BusinessObjects.BusinessObjects.create_rest ( self)

Create the remaining business objects which allow us to encapsulate coherent sets of application functionality outside the Controller.

This is called by Controller.__init__() after set_initial_state(), so you can assume that the GUI is configured and all widget placeholders have been populated. No spectrometers will have connected at this time.

◆ destroy()

enlighten.BusinessObjects.BusinessObjects.destroy ( self)

◆ header()

enlighten.BusinessObjects.BusinessObjects.header ( self,
msg )

Member Data Documentation

◆ ctl

enlighten.BusinessObjects.BusinessObjects.ctl = ctl

The documentation for this class was generated from the following file: