Previous Next        Current Page: NeXtMidas Training / Option Trees / Lab 2 / Solution
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
   + Overview   
   + Using an Option Tree   
   + Lab 1   
   + Creating an Option Tree   
   + Command Dictionary   
   + Building an Option Tree   
   - Lab 2   
      - Instructions   
      - Solution   
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   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Lab 2 (solution):
    • You should have followed the steps on the previous pages to create a new option tree called TRAIN. You could done it manually or have used the OPTION/create command, e.g.
      nM> option/create train /home/student/nmopts/nxm/train
      nM> path add train
      
    • To add and build the commands you should have done the following:
      <Save counter.java to the prim area.>
      <Save sayhello.mm to the mcr area.>
      nM>
      nM> update counter
      Option tree (USER, SITE, UCL, etc): [] -> train
      COUNTER Abbreviation: [COUNTER] -> 
      Support [M] -> P
      Number of arguments [0] -> 2
      Default 1 [] -> START=1
      Default 2 [] -> END=10
      nM>
      nM>
      nM> update sayhello
      Option tree (USER, SITE, UCL, etc): [] -> train
      SAYHELLO Abbreviation: [SAYHELLO] -> 
      Support [M] -> 
      Number of arguments [0] -> 1
      Default 1 [] -> NAME="Anonymous"
      nM>
      nM>
      nM> make all train
      <Builds the option tree>

back