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

org.yamcs.xtce.OnParameterUpdateTrigger Maven / Gradle / Ivy

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

import java.io.Serializable;

/**
 * Names a parameter that upon change will start the execution of the algorithm.
 * Holds a parameter reference name for a parameter that when it changes, will
 * cause this algorithm to be executed.
 */
public class OnParameterUpdateTrigger implements Serializable {
    private static final long serialVersionUID = 2L;

    private Parameter parameter;
    
    public OnParameterUpdateTrigger(Parameter parameter) {
        this.parameter = parameter;
    }
    
    //constructor to be used when the parameter has to be resolved later
    public OnParameterUpdateTrigger() {
    }
    
    public void setParameter(Parameter parameter) {
        this.parameter = parameter;
    }

    public Parameter getParameter() {
        return parameter;
    }
    
    @Override
    public String toString() {
        return parameter.getQualifiedName();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy