Previous Next        Current Page: NeXtMidas Training / Primitives / Real Time Controls / gets and sets
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
   + Overview   
   + Open, Process, Close   
   + Building   
   + The NeXtMidas API   
   + Lab 1   
   + Special Variables   
   + Lab 2   
   + Lab 3*   
   + Files in a Primitive   
   + Lab 4   
   + Lab 5*   
   + Test Macros   
   + Lab 6   
   - Real Time Controls   
      - gets and sets   
   + Lab 7   
   + Working with Messages   
   + Lab 8   
   + Primitive Restarts   
   + Introduction to DSP   
   + Lab 9   
   - Commands executing commands   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Real-time controls:
    • Real-time controls are implemented through the get and set methods in a primitive.
    • The get and set methods follow the JavaBeans standard:
      getName() Gets the value of Name.
      isName() Alternative to getName() used when Name is a boolean.
      setName(val) Sets the value of Name to val.
    • Any get and set methods (that are public) are automatically accessible from a macro. Example:
      set reg.myprim.name 42
    • To make a value read-only, simply omit the set method. (In general, there should never be any write-only values.)
    • Warning: All primitives come with special get and set methods. Please check the documentation for Primitive to make sure you don't accidentally override one of these.
X-Midas Users Take Note:
X-Midas primitives use control widgets that must be manually initialized and checked. This is not the case in NeXtMidas which automatically makes a "real-time control" out of any get or set method in the primitive.

back