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

org.yamcs.commanding.CommandQueueState Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
package org.yamcs.commanding;

import org.yamcs.protobuf.Commanding.QueueState;

import com.google.gson.annotations.SerializedName;

public class CommandQueueState {

    @SerializedName("state")
    private QueueState state;

    /**
     * The state of the queue.
     */
    public QueueState getState() {
        return state;
    }

    /**
     * Create state object for the given queue.
     */
    public static CommandQueueState forQueue(CommandQueue queue) {
        var state = new CommandQueueState();
        state.state = queue.getState();
        return state;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy