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

org.yamcs.tctm.LinkState Maven / Gradle / Ivy

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

import com.google.gson.annotations.SerializedName;

public class LinkState {

    @SerializedName("enabled")
    private boolean enabled;

    /**
     * Whether the link was enabled.
     */
    public boolean isEnabled() {
        return enabled;
    }

    /**
     * Create state object for the given link.
     */
    public static LinkState forLink(Link link) {
        var state = new LinkState();
        state.enabled = !link.isDisabled();
        return state;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy