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,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>flintstones.group</groupId>
<artifactId>flintstones.bundles</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>flintstones.method.linguistic.heterogeneous.fusion</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<name>[bundle] HeterogeneousFusion</name>
</project>
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>flintstones.method.linguistic.heterogeneous.fusion</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1779484362677</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
@@ -0,0 +1,14 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: flintstones.method.linguistic.heterogeneous.fusion;singleton:=true
Bundle-Version: 1.0.0.qualifier
Automatic-Module-Name: flintstones.method.heterogeneous.fusion
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: flintstones.entity.validatedmethod,
flintstones.valuation.twoTuple,
flintstones.helper.faq,
flintstones.valuation.numeric.real,
flintstones.valuation.numeric.integer,
flintstones.valuation.numeric.real.interval,
flintstones.valuation.numeric.integer.interval
@@ -0,0 +1,2 @@
#Properties file for flintstones.method.linguistic.heterogeneous.fusion
Bundle-Name = HeterogeneousFusion
@@ -0,0 +1,2 @@
#Properties file for flintstones.method.linguistic.heterogeneous.fusion
Bundle-Name = HeterogeneousFusion
@@ -0,0 +1,7 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml,\
OSGI-INF/,\
faq/
@@ -0,0 +1 @@
In decision making may occur when experts elicit their knowledge with nonhomegenous information such as numerical, linguistic, interval-valued and so on. In decision problems with multiple experts or criteria this is not a rare situation. For this type of framework a 2-tuple linguistic based model was introduced to manage and operate with such type of information.
@@ -0,0 +1 @@
In decision making may occur when experts elicit their knowledge with nonhomegenous information such as numerical, linguistic, interval-valued and so on. In decision problems with multiple experts or criteria this is not a rare situation. For this type of framework a 2-tuple linguistic based model was introduced to manage and operate with such type of information.
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="flintstones.method.extension">
<method
category="flintstones.entity.method.heterogeneous"
uid="flintstones.method.heterogeneous.fusion.method"
implementation="flintstones.method.linguistic.heterogeneous.fusion.HeterogeneousFusionMethod">
<phase
uid="flintstones.method.common.phase.selectBLTS">
</phase>
<phase
uid="flintstones.method.common.unification.unification">
</phase>
<phase
uid="flintstones.method.common.phase.aggregation">
</phase>
<phase
uid="flintstones.method.common.phase.sensitiveanalysis">
</phase>
</method>
</extension>
</plugin>
@@ -0,0 +1,132 @@
<?xml version="1.0" ?>
<resolution.scheme>
<resolution.phase id="flintstones.resolutionphase.framework.problemelements" version="4.0">
<elements>
<Experts>
<Expert name="e1"></Expert>
<Expert name="e2"></Expert>
<Expert name="e3"></Expert>
</Experts>
<Alternatives>
<Alternative name="Jonh"></Alternative>
<Alternative name="Marie"></Alternative>
<Alternative name="Paul"></Alternative>
<Alternative name="Peter"></Alternative>
</Alternatives>
<Criteria>
<Criterion name="CV" cost="false"></Criterion>
</Criteria>
</elements>
</resolution.phase>
<resolution.phase id="flintstones.resolutionphase.framework.domains" version="4.0">
<domains>
<domain type="flintstones.domain.numeric.real.intervalar" name="interval" inRange="true" min="0.0" max="1.0"></domain>
<domain type="flintstones.domain.numeric.real" name="numeric" inRange="true" min="0.0" max="1.0"></domain>
<domain type="flintstones.domain.linguistic" name="s7">
<values>
<value v="0.0"></value>
<value v="0.0"></value>
<value v="0.0"></value>
<value v="0.0"></value>
<value v="0.0"></value>
<value v="0.0"></value>
<value v="0.0"></value>
</values>
<labelSet>
<label name="N">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.0" b="0.0" c="0.0" d="0.16667"></semantic>
</label>
<label name="VL">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.0" b="0.16667" c="0.16667" d="0.33333"></semantic>
</label>
<label name="L">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.16667" b="0.33333" c="0.33333" d="0.5"></semantic>
</label>
<label name="M">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.33333" b="0.5" c="0.5" d="0.66667"></semantic>
</label>
<label name="H">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.5" b="0.66667" c="0.66667" d="0.83333"></semantic>
</label>
<label name="VH">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.66667" b="0.83333" c="0.83333" d="1.0"></semantic>
</label>
<label name="A">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.83333" b="1.0" c="1.0" d="1.0"></semantic>
</label>
</labelSet>
</domain>
</domains>
</resolution.phase>
<resolution.phase id="flintstones.resolutionphase.frameworkstructuring" version="4.0">
<domain-assignments>
<assignment Expert="e3" Alternative="Marie" Criterion="CV" Domain="interval" Valuation="flintstones.valuation.real.interval"></assignment>
<assignment Expert="e1" Alternative="Peter" Criterion="CV" Domain="numeric" Valuation="flintstones.valuation.real"></assignment>
<assignment Expert="e3" Alternative="Jonh" Criterion="CV" Domain="interval" Valuation="flintstones.valuation.real.interval"></assignment>
<assignment Expert="e3" Alternative="Peter" Criterion="CV" Domain="interval" Valuation="flintstones.valuation.real.interval"></assignment>
<assignment Expert="e1" Alternative="Marie" Criterion="CV" Domain="numeric" Valuation="flintstones.valuation.real"></assignment>
<assignment Expert="e3" Alternative="Paul" Criterion="CV" Domain="interval" Valuation="flintstones.valuation.real.interval"></assignment>
<assignment Expert="e1" Alternative="Paul" Criterion="CV" Domain="numeric" Valuation="flintstones.valuation.real"></assignment>
<assignment Expert="e1" Alternative="Jonh" Criterion="CV" Domain="numeric" Valuation="flintstones.valuation.real"></assignment>
<assignment Expert="e2" Alternative="Marie" Criterion="CV" Domain="s7" Valuation="flintstones.valuation.linguistic"></assignment>
<assignment Expert="e2" Alternative="Peter" Criterion="CV" Domain="s7" Valuation="flintstones.valuation.linguistic"></assignment>
<assignment Expert="e2" Alternative="Jonh" Criterion="CV" Domain="s7" Valuation="flintstones.valuation.linguistic"></assignment>
<assignment Expert="e2" Alternative="Paul" Criterion="CV" Domain="s7" Valuation="flintstones.valuation.linguistic"></assignment>
</domain-assignments>
</resolution.phase>
<resolution.phase id="flintstones.resolutionphase.gathering" version="4.0">
<valuations>
<Valuation type="flintstones.valuation.numeric.real.interval.RealIntervalValuation" domain="interval" Alternative="Marie" Criterion="CV" Expert="e3" min="0.35" max="0.5"></Valuation>
<Valuation type="flintstones.valuation.numeric.real.RealValuation" domain="numeric" Alternative="Peter" Criterion="CV" Expert="e1" value="0.8"></Valuation>
<Valuation type="flintstones.valuation.numeric.real.interval.RealIntervalValuation" domain="interval" Alternative="Jonh" Criterion="CV" Expert="e3" min="0.7" max="0.8"></Valuation>
<Valuation type="flintstones.valuation.numeric.real.interval.RealIntervalValuation" domain="interval" Alternative="Peter" Criterion="CV" Expert="e3" min="0.8" max="0.9"></Valuation>
<Valuation type="flintstones.valuation.numeric.real.RealValuation" domain="numeric" Alternative="Marie" Criterion="CV" Expert="e1" value="0.7"></Valuation>
<Valuation type="flintstones.valuation.numeric.real.interval.RealIntervalValuation" domain="interval" Alternative="Paul" Criterion="CV" Expert="e3" min="0.65" max="0.7"></Valuation>
<Valuation type="flintstones.valuation.numeric.real.RealValuation" domain="numeric" Alternative="Paul" Criterion="CV" Expert="e1" value="0.8"></Valuation>
<Valuation type="flintstones.valuation.numeric.real.RealValuation" domain="numeric" Alternative="Jonh" Criterion="CV" Expert="e1" value="0.6"></Valuation>
<Valuation type="flintstones.valuation.linguistic.LinguisticValuation" domain="s7" Alternative="Marie" Criterion="CV" Expert="e2">
<labelValuations>
<labelValuation label="H">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.5" b="0.66667" c="0.66667" d="0.83333"></semantic>
</labelValuation>
</labelValuations>
</Valuation>
<Valuation type="flintstones.valuation.linguistic.LinguisticValuation" domain="s7" Alternative="Peter" Criterion="CV" Expert="e2">
<labelValuations>
<labelValuation label="M">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.33333" b="0.5" c="0.5" d="0.66667"></semantic>
</labelValuation>
</labelValuations>
</Valuation>
<Valuation type="flintstones.valuation.linguistic.LinguisticValuation" domain="s7" Alternative="Jonh" Criterion="CV" Expert="e2">
<labelValuations>
<labelValuation label="L">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.16667" b="0.33333" c="0.33333" d="0.5"></semantic>
</labelValuation>
</labelValuations>
</Valuation>
<Valuation type="flintstones.valuation.linguistic.LinguisticValuation" domain="s7" Alternative="Paul" Criterion="CV" Expert="e2">
<labelValuations>
<labelValuation label="VH">
<semantic type="flintstones.domain.fuzzyset.function.types.TrapezoidalFunction" a="0.66667" b="0.83333" c="0.83333" d="1.0"></semantic>
</labelValuation>
</labelValuations>
</Valuation>
</valuations>
</resolution.phase>
<resolution.phase id="flintstones.resolutionphase.gathering.preferences" version="4.0">
<preferences>
<PreferenceCollections></PreferenceCollections>
</preferences>
</resolution.phase>
<resolution.phase id="flintstones.resolutionphase.gathering.preferences.assignments" version="4.0">
<assignment>
<ProfileAssignments></ProfileAssignments>
</assignment>
</resolution.phase>
<resolution.phase id="flintstones.resolutionphase.gathering.ahp" version="4.0">
<references>
<AHPSortReferencences></AHPSortReferencences>
</references>
</resolution.phase>
</resolution.scheme>
@@ -0,0 +1,92 @@
package flintstones.method.linguistic.heterogeneous.fusion;
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.domain.fuzzyset.FuzzySet;
import flintstones.entity.domain.Domain;
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.ValidBLTSDomainOperation;
import flintstones.helper.chainvalidator.operation.method.ValuationTypeOperation;
import flintstones.helper.faq.interfaces.IMarkdownFAQ;
import flintstones.method.linguistic.heterogeneous.fusion.messages.Messages;
import flintstones.valuation.linguistic.LinguisticValuation;
import flintstones.valuation.numeric.integer.IntegerValuation;
import flintstones.valuation.numeric.integer.interval.IntegerIntervalValuation;
import flintstones.valuation.numeric.real.RealValuation;
import flintstones.valuation.numeric.real.interval.RealIntervalValuation;
import flintstones.valuation.twoTuple.TwoTupleValuation;
public class HeterogeneousFusionMethod extends ValidatedMethod implements IMarkdownFAQ {
@Inject
@Translation
private flintstones.entity.domain.messages.Messages domainMessages;
@Inject
@Translation
private 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;
Domain[] fuzzysetDomains = domainService.getAll(FuzzySet.ID);
String fuzzysetDomainsEntity = domainMessages.Domain_type_entities;
Valuation[] valuations = valuationService.getAll();
String valuationsEntity = valuationMessages.Valuation_entity;
String[] validTypes = new String[5];
validTypes[0] = RealValuation.class.getSimpleName();
validTypes[1] = IntegerValuation.class.getSimpleName();
validTypes[2] = RealIntervalValuation.class.getSimpleName();
validTypes[3] = IntegerIntervalValuation.class.getSimpleName();
validTypes[4] = LinguisticValuation.class.getSimpleName();
boolean superClass = false;
ValuationTypeOperation valuationTypeOperator = new ValuationTypeOperation(valuationsEntity, validTypes,
valuations, superClass);
ValidBLTSDomainOperation validBLTSDomainOperation = new ValidBLTSDomainOperation(fuzzysetDomainsEntity,
fuzzysetDomains);
validator.setReturn(this.getName())
.greaterThan(numDomainEntity, numDomains, 0)
.named("numDomains")//$NON-NLS-1$
.custom(validBLTSDomainOperation)
.named("fuzzySetDomains")//$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, TwoTupleValuation.ID);
return map;
}
@Override
public String getFAQFile() {
return "faq/faq";
}
}
@@ -0,0 +1,12 @@
package flintstones.method.linguistic.heterogeneous.fusion.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=Fusion approach for managing heterogeneous information
Method_Description=F. Herrera, L. Martnez, P.J. Snchez, Managing non-homogeneous information in group decision making. European Journal of Operational Research, vol. 166, issue 1, pp. 115-132, 2005.
@@ -0,0 +1,2 @@
Method_Name=Enfoque de fusión para el manejo de información heterogénea
Method_Description=F. Herrera, L. Martnez, P.J. Snchez, Managing non-homogeneous information in group decision making. European Journal of Operational Research, vol. 166, issue 1, pp. 115-132, 2005.