
org.monarchinitiative.phenol.analysis.mgsa.IntegerParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phenol-analysis Show documentation
Show all versions of phenol-analysis Show documentation
phenol-analysis implements some algorithms for working with ontology data
The newest version!
package org.monarchinitiative.phenol.analysis.mgsa;
class IntegerParam extends MgsaParam {
private int val;
public IntegerParam(Type type, int val) {
super(type);
this.val = val;
}
public IntegerParam(Type type) {
super(type);
if (type == Type.FIXED) throw new IllegalArgumentException("Parameter could not be instantiated of type Fixed.");
}
public IntegerParam(IntegerParam p) {
super(p);
this.val = p.val;
}
int getValue()
{
return val;
}
void setValue(int newVal) {
this.val = newVal;
setType(Type.FIXED);
}
@Override
public String toString() {
if (isFixed()) return Integer.toString(val);
return getType().toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy