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

org.yamcs.cfdp.CancelRequest Maven / Gradle / Ivy

There is a newer version: 5.10.7
Show newest version
package org.yamcs.cfdp;

import org.yamcs.filetransfer.FileTransfer;

/**
 * A Cancel.request is a primitive that requests a certain transaction canceled*
 */
public class CancelRequest extends CfdpRequest {

    private OngoingCfdpTransfer transfer;

    public CancelRequest(FileTransfer transfer) {
        super(CfdpRequestType.CANCEL);
        if (!(transfer instanceof OngoingCfdpTransfer)) {
            throw new IllegalArgumentException();
        }
        this.transfer = (OngoingCfdpTransfer) transfer;
    }

    public OngoingCfdpTransfer getTransfer() {
        return this.transfer;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy