public code v1

This commit is contained in:
Francisco Jesús Martínez Mimbrera
2026-05-23 00:32:57 +02:00
commit 759a8968a2
4357 changed files with 163763 additions and 0 deletions
@@ -0,0 +1,64 @@
package flintstones.method.linguistic.elicit;
import java.util.HashMap;
import javax.inject.Inject;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.services.nls.Translation;
import flintstones.entity.method.Method;
import flintstones.entity.validatedmethod.ValidatedMethod;
import flintstones.entity.valuation.Valuation;
import flintstones.helper.chainvalidator.ChainValidator;
import flintstones.helper.chainvalidator.operation.method.ValuationTypeOperation;
import flintstones.helper.faq.interfaces.IMarkdownFAQ;
import flintstones.method.linguistic.elicit.messages.Messages;
import flintstones.valuation.elicit.ELICIT;
import flintstones.valuation.hesitant.HesitantValuation;
public class ELICITMethod extends ValidatedMethod implements IMarkdownFAQ {
@Inject
@Translation
Messages messages;
@Override
public String getName() {
return messages.Method_name;
}
@Override
protected void reloadValidator() {
validator = ContextInjectionFactory.make(ChainValidator.class, context);
int numDomains = domainService.getAll().length;
String numDomainEntity = domainMessages.Domain_count;
Valuation[] valuations = valuationService.getAll();
String valuationsEntity = valuationMessages.Valuation_entity;
ValuationTypeOperation valuationTypeOperator =
new ValuationTypeOperation(valuationsEntity, HesitantValuation.class.getSimpleName(), valuations);
validator.setReturn(this.getName())
.greaterThan(numDomainEntity, numDomains, 0)
.named("numDomains")//$NON-NLS-1$
.custom(valuationTypeOperator)
.named("valuations");//$NON-NLS-1$
}
@Override
protected HashMap<String, Object> exportData() {
HashMap<String, Object> map = new HashMap<String, Object>();
map.put(Method.TYPE_OF_VALUATION, ELICIT.ID);
return map;
}
@Override
public String getFAQFile() {
return "faq/faq";
}
}
@@ -0,0 +1,11 @@
//This file has been auto-generated
package flintstones.method.linguistic.elicit.messages;
import org.eclipse.e4.core.services.nls.Message;
@Message
@SuppressWarnings("javadoc")
public class Messages {
public String Method_name;
public String Method_description;
}
@@ -0,0 +1,2 @@
Method_name=ELICIT computational model
Method_description=Method which uses hesitant complex terms which are represented by means of 2-tuple
@@ -0,0 +1,2 @@
Method_name=Modelo computacional ELICIT
Method_description=Method which uses hesitant complex terms which are represented by means of 2-tuple