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

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

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

import java.util.HashMap;
import java.util.Map;

import com.google.gson.annotations.SerializedName;

/**
 * Object that is used to persist link state information across Yamcs restarts.
 */
public class LinkMemento {

    @SerializedName("links")
    private Map links = new HashMap<>();

    public void addLinkState(String link, LinkState state) {
        links.put(link, state);
    }

    public LinkState getLinkState(String link) {
        return links.get(link);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy