org.opentcs.drivers.peripherals.PeripheralJobCallback Maven / Gradle / Ivy
/**
* Copyright (c) The openTCS Authors.
*
* This program is free software and subject to the MIT license. (For details,
* see the licensing information (LICENSE.txt) you should have received with
* this copy of the software.)
*/
package org.opentcs.drivers.peripherals;
import jakarta.annotation.Nonnull;
import org.opentcs.data.TCSObjectReference;
import org.opentcs.data.peripherals.PeripheralJob;
/**
* A callback used to inform about the successful or failed completion of jobs.
*/
public interface PeripheralJobCallback {
/**
* Called on successful completion of a job.
*
* This method is supposed to be called only from the kernel executor thread.
*
*
* @param ref A reference to the peripheral job that was successfully completed.
*/
void peripheralJobFinished(
@Nonnull
TCSObjectReference ref
);
/**
* Called on failed completion of a job.
*
* This method is supposed to be called only from the kernel executor thread.
*
*
* @param ref A reference to the peripheral job whose completion has failed.
*/
void peripheralJobFailed(
@Nonnull
TCSObjectReference ref
);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy