All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.micromanager.acqj.example.WorthlessAcquisitionHook Maven / Gradle / Ivy

There is a newer version: 0.38.1
Show newest version
package org.micromanager.acqj.example;

import org.micromanager.acqj.api.AcquisitionHook;
import org.micromanager.acqj.main.AcquisitionEvent;

/**
 * This is a minimal implementation of an AcquistionHook meant for demonstration purposes only.
 * This AcquisitionHook gets run at a certain point in the acquisition cycle, but does nothing,
 * just passing along the acquisition event to subsequent stages. In practice, AcquisitionEvents
 * should do something
 */
public class WorthlessAcquisitionHook implements AcquisitionHook {
   @Override
   public AcquisitionEvent run(AcquisitionEvent event) {
      // Typically something would be done here
      System.out.println("Running a hook");
      return event;
   }

   @Override
   public void close() {
      //called at the end. Clean up resources as needed
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy