Skip to content
Snippets Groups Projects
Commit a201a33a authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

add algorithm related models

parent 0cd0adcf
No related branches found
No related tags found
No related merge requests found
package org.hbp.mip.model.algorithm;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
/**
* Created by mirco on 17.06.16.
*/
@ApiModel
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AlgoConstraint {
private ConstrVariable variable;
private ConstrMinMax groupings;
private ConstrMinMax covariables;
private Boolean mixed;
public ConstrVariable getVariable() {
return variable;
}
public void setVariable(ConstrVariable variable) {
this.variable = variable;
}
public ConstrMinMax getGroupings() {
return groupings;
}
public void setGroupings(ConstrMinMax groupings) {
this.groupings = groupings;
}
public ConstrMinMax getCovariables() {
return covariables;
}
public void setCovariables(ConstrMinMax covariables) {
this.covariables = covariables;
}
public Boolean getMixed() {
return mixed;
}
public void setMixed(Boolean mixed) {
this.mixed = mixed;
}
}
package org.hbp.mip.model.algorithm;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
/**
* Created by mirco on 17.06.16.
*/
@ApiModel
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AlgoParameter {
private String code;
private String label;
private Integer defaultValue;
private String type;
private ParamConstraint constraints;
private String description;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public Integer getDefaultValue() {
return defaultValue;
}
public void setDefaultValue(Integer defaultValue) {
this.defaultValue = defaultValue;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public ParamConstraint getConstraints() {
return constraints;
}
public void setConstraints(ParamConstraint constraints) {
this.constraints = constraints;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
package org.hbp.mip.model.algorithm;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import java.util.List;
/**
* Created by mirco on 17.06.16.
*/
@ApiModel
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Algorithm {
private String code;
private String label;
private List type;
private String environment;
private String description;
private List<AlgoParameter> parameters;
@JsonProperty("docker_image")
private String dockerImage;
private AlgoConstraint constraints;
private Boolean disable;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public List getType() {
return type;
}
public void setType(List type) {
this.type = type;
}
public String getEnvironment() {
return environment;
}
public void setEnvironment(String environment) {
this.environment = environment;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public List<AlgoParameter> getParameters() {
return parameters;
}
public void setParameters(List<AlgoParameter> parameters) {
this.parameters = parameters;
}
public String getDockerImage() {
return dockerImage;
}
public void setDockerImage(String dockerImage) {
this.dockerImage = dockerImage;
}
public AlgoConstraint getConstraints() {
return constraints;
}
public void setConstraints(AlgoConstraint constraints) {
this.constraints = constraints;
}
public Boolean getDisable() {
return disable;
}
public void setDisable(Boolean disable) {
this.disable = disable;
}
}
package org.hbp.mip.model.algorithm;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import java.util.List;
/**
* Created by mirco on 17.06.16.
*/
@ApiModel
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Catalog {
private List<Algorithm> algorithms;
private List<Algorithm> validations;
public List<Algorithm> getAlgorithms() {
return algorithms;
}
public void setAlgorithms(List<Algorithm> algorithms) {
this.algorithms = algorithms;
}
}
package org.hbp.mip.model.algorithm;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
/**
* Created by mirco on 17.06.16.
*/
@ApiModel
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ConstrMinMax {
@JsonProperty("min_count")
private Integer minCount;
@JsonProperty("max_count")
private Integer maxCount;
public Integer getMinCount() {
return minCount;
}
public void setMinCount(Integer minCount) {
this.minCount = minCount;
}
public Integer getMaxCount() {
return maxCount;
}
public void setMaxCount(Integer maxCount) {
this.maxCount = maxCount;
}
}
package org.hbp.mip.model.algorithm;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
/**
* Created by mirco on 17.06.16.
*/
@ApiModel
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ConstrVariable {
private Boolean real;
private Boolean binomial;
private Boolean polynomial;
public Boolean getReal() {
return real;
}
public void setReal(Boolean real) {
this.real = real;
}
public Boolean getBinomial() {
return binomial;
}
public void setBinomial(Boolean binomial) {
this.binomial = binomial;
}
public Boolean getPolynomial() {
return polynomial;
}
public void setPolynomial(Boolean polynomial) {
this.polynomial = polynomial;
}
}
package org.hbp.mip.model.algorithm;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
/**
* Created by mirco on 17.06.16.
*/
@ApiModel
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ParamConstraint {
private Integer min;
private Integer max;
public Integer getMin() {
return min;
}
public void setMin(Integer min) {
this.min = min;
}
public Integer getMax() {
return max;
}
public void setMax(Integer max) {
this.max = max;
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment