This shows you the differences between the selected revision and the current version of the page.
| documentation:modules:acquisition 2006/10/09 11:45 | documentation:modules:acquisition 2006/10/09 11:52 current | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Besides the extension-points specific to data-acquisition, this module also incorporates the classes and interfaces for the [[documentation:OptSuite Concepts|general OptSuite concepts]] like measurement routines and their steps. There exist two how-to documents dedicated to general routine extension points: [[documentation:HowTo RoutineStep|How-To of routine steps]] and [[documentation:HowTo MeasurementTool|How-To on measurement tools]]. | Besides the extension-points specific to data-acquisition, this module also incorporates the classes and interfaces for the [[documentation:OptSuite Concepts|general OptSuite concepts]] like measurement routines and their steps. There exist two how-to documents dedicated to general routine extension points: [[documentation:HowTo RoutineStep|How-To of routine steps]] and [[documentation:HowTo MeasurementTool|How-To on measurement tools]]. | ||
| - | |||
| ====== Data Acquisition: acquisitionAlgorithm ====== | ====== Data Acquisition: acquisitionAlgorithm ====== | ||
| Line 16: | Line 15: | ||
| * Implement algorithms of the kind you defined for the routine step (Implement AcquisitionAlgorithm) | * Implement algorithms of the kind you defined for the routine step (Implement AcquisitionAlgorithm) | ||
| * Register the algorithms to the acquisitionAlgorithm extension point | * Register the algorithms to the acquisitionAlgorithm extension point | ||
| + | |||
| + | ===== Algorithm Routine Steps ===== | ||
| + | |||
| + | Creatin a new algorithm routine step is easy. You simply extend AlgorithmRoutineStep and implement some abstract methods: | ||
| + | |||
| + | <code java> | ||
| + | public class MyAlgorithmRoutineStep extends AlgorithmRoutineStep { | ||
| + | |||
| + | /** | ||
| + | * | ||
| + | */ | ||
| + | public MyAlgorithmRoutineStep() { | ||
| + | } | ||
| + | |||
| + | /* (non-Javadoc) | ||
| + | * @see imtek.optsuite.acquisition.algorithm.AlgorithmRoutineStep#createStepTreeNode(imtek.optsuite.acquisition.routine.MeasurementRoutineTreeNode) | ||
| + | */ | ||
| + | @Override | ||
| + | protected AcquisitionAlgorithmTreeNode createStepTreeNode( | ||
| + | MeasurementRoutineTreeNode parent) { | ||
| + | // Here you can use a provided implementation | ||
| + | return new AcquisitionAlgorithmTreeNode(parent, this); | ||
| + | } | ||
| + | |||
| + | /* (non-Javadoc) | ||
| + | * @see imtek.optsuite.acquisition.algorithm.AlgorithmRoutineStep#getAlorithmKind() | ||
| + | */ | ||
| + | @Override | ||
| + | protected String getAlorithmKind() { | ||
| + | // Here you have to return the kind of algorithms this step might use | ||
| + | return "my.algorithm.kind"; | ||
| + | } | ||
| + | |||
| + | /* (non-Javadoc) | ||
| + | * @see imtek.optsuite.acquisition.routine.MeasurementToolRoutineStep#getRequiredMeasurementToolTypes() | ||
| + | */ | ||
| + | @Override | ||
| + | public List<Class> getRequiredMeasurementToolTypes() { | ||
| + | // Return a list of classes of the measurement tools your routine step should use | ||
| + | return new ArrayList<Class>(0); | ||
| + | } | ||
| + | |||
| + | /* (non-Javadoc) | ||
| + | * @see imtek.optsuite.acquisition.routine.MeasurementRoutineStep#getName() | ||
| + | */ | ||
| + | public String getName() { | ||
| + | return "my algorithm routine step"; | ||
| + | } | ||
| + | } | ||
| + | </code> | ||

