31 lines
598 B
Java
31 lines
598 B
Java
package flintstones.domain.fuzzyset.instance;
|
|
|
|
import flintstones.domain.fuzzyset.FuzzySet;
|
|
import flintstones.entity.domain.Domain;
|
|
import flintstones.entity.domain.DomainInstance;
|
|
|
|
public class LinguisticS7Instance extends DomainInstance {
|
|
|
|
@Override
|
|
public Domain getInstance() {
|
|
FuzzySet domain = (FuzzySet) getDomain();
|
|
|
|
String[] labels = new String[] {
|
|
"Nothing",
|
|
"Very Low",
|
|
"Low",
|
|
"Medium",
|
|
"High",
|
|
"Very High",
|
|
"Perfect"
|
|
};
|
|
|
|
String name = getLabel();
|
|
|
|
domain.createTrapezoidalFunction(labels);
|
|
domain.setName(name);
|
|
return domain;
|
|
|
|
}
|
|
}
|