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-11"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>flintstones.method.dEvaluation</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>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
@@ -0,0 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=11
@@ -0,0 +1,13 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: DEvaluation
Bundle-SymbolicName: flintstones.method.dEvaluation;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: Sinbad2
Automatic-Module-Name: flintstones.method.dEvaluation
Bundle-RequiredExecutionEnvironment: JavaSE-11
Require-Bundle: flintstones.valuation.numeric.real,
flintstones.valuation.numeric.integer,
flintstones.valuation.linguistic,
flintstones.valuation.fuzzy,
flintstones.entity.validatedmethod
@@ -0,0 +1,5 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml
@@ -0,0 +1,102 @@
Expert 1;0.219
Expert 2;0.063
Expert 3;0.094
Expert 4;0.281
Expert 5;0.063
Expert 6;0.281
Expert 1;Passenger preference;0.255
Expert 1;Competition;0.147
Expert 1;Slot availability;0.143
Expert 1;Connection;0.455
Expert 2;Passenger preference;0.467
Expert 2;Competition;0.284
Expert 2;Slot availability;0.107
Expert 2;Connection;0.142
Expert 3;Passenger preference;0.479
Expert 3;Competition;0.229
Expert 3;Slot availability;0.181
Expert 3;Connection;0.111
Expert 4;Passenger preference;0.504
Expert 4;Competition;0.19
Expert 4;Slot availability;0.19
Expert 4;Connection;0.116
Expert 5;Passenger preference;0.575
Expert 5;Competition;0.174
Expert 5;Slot availability;0.176
Expert 5;Connection;0.075
Expert 6;Passenger preference;0.171
Expert 6;Competition;0.083
Expert 6;Slot availability;0.294
Expert 6;Connection;0.452
Expert 1;Hub local departure time;0.375
Expert 1;Destination local arrival time;0.125
Expert 1;Destination local departure time;0.125
Expert 1;Hub local arrival time;0.375
Expert 2;Hub local departure time;0.333
Expert 2;Destination local arrival time;0.167
Expert 2;Destination local departure time;0.167
Expert 2;Hub local arrival time;0.333
Expert 3;Hub local departure time;0.375
Expert 3;Destination local arrival time;0.125
Expert 3;Destination local departure time;0.125
Expert 3;Hub local arrival time;0.375
Expert 4;Hub local departure time;0.4
Expert 4;Destination local arrival time;0.1
Expert 4;Destination local departure time;0.1
Expert 4;Hub local arrival time;0.4
Expert 5;Hub local departure time;0.1
Expert 5;Destination local arrival time;0.3
Expert 5;Destination local departure time;0.3
Expert 5;Hub local arrival time;0.3
Expert 6;Hub local departure time;0.125
Expert 6;Destination local arrival time;0.25
Expert 6;Destination local departure time;0.5
Expert 6;Hub local arrival time;0.125
Expert 1;Schedule time of competitor aerlines;0.75
Expert 1;Cannibalization effect current schedule;0.25
Expert 2;Schedule time of competitor aerlines;0.8
Expert 2;Cannibalization effect current schedule;0.2
Expert 3;Schedule time of competitor aerlines;0.875
Expert 3;Cannibalization effect current schedule;0.125
Expert 4;Schedule time of competitor aerlines;0.8
Expert 4;Cannibalization effect current schedule;0.2
Expert 5;Schedule time of competitor aerlines;0.833
Expert 5;Cannibalization effect current schedule;0.167
Expert 6;Schedule time of competitor aerlines;0.857
Expert 6;Cannibalization effect current schedule;0.143
Expert 1;Hub slot availability;0.167
Expert 1;Dest slot availability;0.833
Expert 2;Hub slot availability;0
Expert 2;Dest slot availability;1
Expert 3;Hub slot availability;0.333
Expert 3;Dest slot availability;0.667
Expert 4;Hub slot availability;0.25
Expert 4;Dest slot availability;0.75
Expert 5;Hub slot availability;0.143
Expert 5;Dest slot availability;0.857
Expert 6;Hub slot availability;0.2
Expert 6;Dest slot availability;0.8
Expert 1;Departure connectivity;0.228
Expert 1;Arrival connectivity;0.228
Expert 1;Codeshare connectivity;0.055
Expert 1;Dep_Arr connection potential;0.489
Expert 2;Departure connectivity;0.192
Expert 2;Arrival connectivity;0.192
Expert 2;Codeshare connectivity;0.067
Expert 2;Dep_Arr connection potential;0.549
Expert 3;Departure connectivity;0.243
Expert 3;Arrival connectivity;0.243
Expert 3;Codeshare connectivity;0.063
Expert 3;Dep_Arr connection potential;0.451
Expert 4;Departure connectivity;0.231
Expert 4;Arrival connectivity;0.231
Expert 4;Codeshare connectivity;0.077
Expert 4;Dep_Arr connection potential;0.461
Expert 5;Departure connectivity;0.178
Expert 5;Arrival connectivity;0.178
Expert 5;Codeshare connectivity;0.082
Expert 5;Dep_Arr connection potential;0.562
Expert 6;Departure connectivity;0.215
Expert 6;Arrival connectivity;0.215
Expert 6;Codeshare connectivity;0.098
Expert 6;Dep_Arr connection potential;0.472
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="flintstones.method.extension">
<method
category="flintstones.entity.method.multicriteria"
implementation="flintstones.method.dEvaluation.DEvaluationMethod"
uid="dEvaluation">
<phase
uid="flintstones.method.common.unification.unification">
</phase>
<phase
uid="flintstones.method.dEvaluation.phase.aggregation">
</phase>
<phase
uid="flintstones.method.topsisFuzzy.phase.results">
</phase>
<phase
uid="flintstones.method.common.phase.sensitiveanalysis">
</phase>
</method>
</extension>
</plugin>
@@ -0,0 +1,82 @@
package flintstones.method.dEvaluation;
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.method.dEvaluation.messages.Messages;
import flintstones.valuation.fuzzy.FuzzyValuation;
import flintstones.valuation.linguistic.LinguisticValuation;
import flintstones.valuation.numeric.integer.IntegerValuation;
import flintstones.valuation.numeric.real.RealValuation;
public class DEvaluationMethod extends ValidatedMethod {
@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[3];
validTypes[0] = RealValuation.class.getSimpleName();
validTypes[1] = IntegerValuation.class.getSimpleName();
validTypes[2] = 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, FuzzyValuation.ID);
return map;
}
}
@@ -0,0 +1,13 @@
//This file has been auto-generated
package flintstones.method.dEvaluation.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=dEvaluation
Method_description=
@@ -0,0 +1,2 @@
Method_name=dEvaluation
Method_description=