Current Page:
NeXtMidas Training
Primitives
Open, Process, Close
Processing Stages
|
|
- Details on primitives.
- Primitives have three processing stages.
Open |
Initialization. |
Process |
Doing the work. |
Close |
Finalization. |
- The three processing stages map to three primary methods in a primitive.
open() |
Reads command parameters/switches and opens files. |
process() |
Processes a set of data. (Called many times.) |
close() |
Closes any files, reports back any results. |
- All primitives extend from
Primitive which extends from
Command . Command has a run() method that
handles the calling of open() , process() (many times),
and close() .
|
|
|