From ac2da1b7eee2c88f4435ffcffd76888cf75bae2e Mon Sep 17 00:00:00 2001 From: James Harbin Date: Thu, 25 Jan 2024 18:34:49 +0000 Subject: [PATCH] Changes for integration - new metamodel fix --- run_standalone_generator_new.sh | 4 + .../models/TestingMM.ecore | 61 +- .../models/TestingMM.emf | 975 ++++--- .../models/TestingMM.genmodel | 38 +- .../CoverageBoostingStrategy.java | 26 + .../generated/TestingPackage/DimensionID.java | 23 +- .../TestingPackage/DimensionInterval.java | 24 + .../FixedNSGACoverageBoostingStrategy.java | 70 + .../CustomFuzzingOperation.java | 23 + .../FuzzingOperations/FuzzingOperation.java | 68 +- .../FuzzingOperationsFactory.java | 108 - .../FuzzingOperationsPackage.java | 2472 ++++------------- .../LatencyNetworkOperation.java | 24 + .../impl/CPULoadTypeImpl.java | 37 - .../impl/CustomFuzzingOperationImpl.java | 69 + .../impl/DiskLoadTypeImpl.java | 37 - .../impl/FuzzingOperationImpl.java | 159 +- .../impl/FuzzingOperationsFactoryImpl.java | 132 - .../impl/FuzzingOperationsPackageImpl.java | 380 +-- .../impl/IOLoadTypeImpl.java | 37 - .../impl/LatencyNetworkOperationImpl.java | 67 + .../impl/LoadResourceOperationImpl.java | 156 -- .../FuzzingOperations/impl/LoadTypeImpl.java | 217 -- .../impl/MemoryLoadTypeImpl.java | 37 - .../MultipleMessagesNetworkOperationImpl.java | 175 -- .../impl/ProcessKillerStateOperatonImpl.java | 162 -- .../impl/ResourceFuzzingOperationImpl.java | 37 - .../impl/ShutdownStateOperatonImpl.java | 37 - .../impl/StateFuzzingOperationImpl.java | 37 - .../impl/TimeTravelStateOperatonImpl.java | 175 -- .../util/FuzzingOperationsAdapterFactory.java | 216 -- .../util/FuzzingOperationsSwitch.java | 268 -- .../LinearNSGACoverageBoostingStrategy.java | 115 + .../MRSPackage/MRSPackagePackage.java | 86 +- .../MRSPackage/TTSSimulator.java | 72 + .../impl/MRSPackagePackageImpl.java | 33 + .../MRSPackage/impl/TTSSimulatorImpl.java | 162 ++ .../Metrics/MetricsFactory.java | 9 - .../Metrics/MetricsPackage.java | 155 +- .../impl/ConditionalPropertyMetricImpl.java | 162 -- .../Metrics/impl/MetricsFactoryImpl.java | 11 - .../Metrics/impl/MetricsPackageImpl.java | 34 - .../Metrics/util/MetricsAdapterFactory.java | 18 - .../Metrics/util/MetricsSwitch.java | 23 - .../TestingPackage/NSGAWithCoverageCells.java | 46 +- .../StandardGrammar/ConditionConstraint.java | 18 + .../StandardGrammar/ContainsInteger.java | 68 + .../StandardGrammar/ContainsVariable.java | 46 + .../StandardGrammarFactory.java | 18 + .../StandardGrammarPackage.java | 232 +- .../impl/ConditionConstraintImpl.java | 39 + .../impl/ContainsIntegerImpl.java | 216 ++ .../impl/ContainsVariableImpl.java | 157 ++ .../impl/StandardGrammarFactoryImpl.java | 22 + .../impl/StandardGrammarPackageImpl.java | 98 + .../util/StandardGrammarAdapterFactory.java | 54 + .../util/StandardGrammarSwitch.java | 65 + .../TestingPackage/TestingPackageFactory.java | 18 + .../TestingPackage/TestingPackagePackage.java | 444 ++- .../impl/CoverageBoostingStrategyImpl.java | 68 + .../impl/DimensionIntervalImpl.java | 54 + ...FixedNSGACoverageBoostingStrategyImpl.java | 216 ++ ...inearNSGACoverageBoostingStrategyImpl.java | 324 +++ .../impl/NSGAWithCoverageCellsImpl.java | 121 +- .../impl/TestingPackageFactoryImpl.java | 22 + .../impl/TestingPackagePackageImpl.java | 180 +- .../util/TestingPackageAdapterFactory.java | 54 + .../util/TestingPackageSwitch.java | 65 + .../evolutionary/EvolutionaryExpt.java | 2 +- .../models/TestingPAL-custom-2566.model | 173 ++ .../models/TestingPAL.model | 167 ++ .../testingKUKA_A50_cutdown_eddiEarly.model | 122 + .../testingKUKA_A50_cutdown_jan18.model | 113 + 73 files changed, 5325 insertions(+), 5128 deletions(-) create mode 100755 run_standalone_generator_new.sh create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/CoverageBoostingStrategy.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FixedNSGACoverageBoostingStrategy.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/CPULoadTypeImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/DiskLoadTypeImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/IOLoadTypeImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LoadResourceOperationImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LoadTypeImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/MemoryLoadTypeImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/MultipleMessagesNetworkOperationImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ProcessKillerStateOperatonImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ResourceFuzzingOperationImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ShutdownStateOperatonImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/StateFuzzingOperationImpl.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/TimeTravelStateOperatonImpl.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/LinearNSGACoverageBoostingStrategy.java delete mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/ConditionalPropertyMetricImpl.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ConditionConstraint.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ContainsInteger.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ContainsVariable.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ConditionConstraintImpl.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ContainsIntegerImpl.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ContainsVariableImpl.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/CoverageBoostingStrategyImpl.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/FixedNSGACoverageBoostingStrategyImpl.java create mode 100644 uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/LinearNSGACoverageBoostingStrategyImpl.java create mode 100644 uk.ac.york.sesame.testing.standalone.generator/models/TestingPAL-custom-2566.model create mode 100644 uk.ac.york.sesame.testing.standalone.generator/models/TestingPAL.model create mode 100644 uk.ac.york.sesame.testing.standalone.generator/models/testingKUKA_A50_cutdown_eddiEarly.model create mode 100644 uk.ac.york.sesame.testing.standalone.generator/models/testingKUKA_A50_cutdown_jan18.model diff --git a/run_standalone_generator_new.sh b/run_standalone_generator_new.sh new file mode 100755 index 00000000..27e84daf --- /dev/null +++ b/run_standalone_generator_new.sh @@ -0,0 +1,4 @@ +./run_standalone_generator_params.sh /home/jharbin/academic/sesame/WP6/ /home/jharbin/academic/sesame/WP6/uk.ac.york.sesame.testing.standalone.generator/models/testingKUKA_A50_cutdown_eddiEarly.model /tmp/codegen1/ +./run_standalone_generator_params.sh /home/jharbin/academic/sesame/WP6/ /home/jharbin/academic/sesame/WP6/uk.ac.york.sesame.testing.standalone.generator/models/testingKUKA_A50_cutdown_jan18.model /tmp/codegen2/ +./run_standalone_generator_params.sh /home/jharbin/academic/sesame/WP6/ /home/jharbin/academic/sesame/WP6/uk.ac.york.sesame.testing.standalone.generator/models/TestingPAL.model /tmp/codegen3/ +./run_standalone_generator_params.sh /home/jharbin/academic/sesame/WP6/ /home/jharbin/academic/sesame/WP6/uk.ac.york.sesame.testing.standalone.generator/models/TestingPAL-custom-2566.model /tmp/codegen4/ diff --git a/uk.ac.york.sesame.testing.dsl/models/TestingMM.ecore b/uk.ac.york.sesame.testing.dsl/models/TestingMM.ecore index ec9f454c..8aca4958 100644 --- a/uk.ac.york.sesame.testing.dsl/models/TestingMM.ecore +++ b/uk.ac.york.sesame.testing.dsl/models/TestingMM.ecore @@ -81,14 +81,39 @@ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDouble"/> - + + + + + + + + + + + + + + + + + + + @@ -99,6 +124,7 @@ + - + + + + @@ -149,6 +182,7 @@ + @@ -226,6 +260,8 @@ + - + @@ -330,6 +366,15 @@ + + + + + + + + @@ -399,6 +444,12 @@ + + + diff --git a/uk.ac.york.sesame.testing.dsl/models/TestingMM.emf b/uk.ac.york.sesame.testing.dsl/models/TestingMM.emf index ea46ff9a..e0138802 100644 --- a/uk.ac.york.sesame.testing.dsl/models/TestingMM.emf +++ b/uk.ac.york.sesame.testing.dsl/models/TestingMM.emf @@ -1,499 +1,478 @@ -@namespace(uri="TestingMM", prefix="TestingMM") - -package TestingPackage; - -// MRS model is currently integrated into the model under the testing space -//import "http://ExSceMM"; - -// TestingSpace - which specifies the boundaries of the testing space -// (the possible attacks), a grammar used for conditions, -// and the metrics to be used. -class TestingSpace { - attr String name; - val Metrics.Metric[*] metrics; - val FuzzingOperations.FuzzingOperation[*] possibleFuzzingOperations; - //val GrammarSpec.GrammarSpecification[0..1] grammarSpecification; - val TestCampaign[*] campaigns; - val MRSPackage.MRS[1] mrs; -} - -// TestingCampaign - specifies an experiment -// (evolutionary process, selected metrics/attacks, and any constraints upon the grammar for this run) - -class TestCampaign { - attr String name; - ref Metrics.Metric[*] metrics; - ref Metrics.Metric[*] conditionMetrics; - - // TODO: for some reason, elements under TestCampaign tend to be lost when the model is saved? - val ActivationGenerationMethod activationGeneration; - ref FuzzingOperations.FuzzingOperation[*] includedOperations; - val TestGenerationApproach[1] approach; - val Test[*]#parentCampaign performedTests; - val CampaignResultSet[*] resultSets; - val ExecutionEndTrigger[1] endTrigger; -} - -class Test { - attr String name; - val FuzzingOperations.FuzzingOperation[*]#containingTest operations; - val Metrics.MetricInstance[*] metrics; - // developedFrom can contain e.g. the evolutionary history of this Test, - // which other tests it was developed from - ref Test[*] developedFrom; - readonly transient ref TestCampaign[1]#performedTests parentCampaign; - val TestDebuggingFlags[*] debugFlags; -} - -abstract class TestDebuggingFlags { - -} - -class PassiveMonitorOnly extends TestDebuggingFlags { - -} - -// This selects either condition-based or time-based fuzzing for this test, -// and its parameters -abstract class ActivationGenerationMethod { +@namespace(uri="TestingMM", prefix="TestingMM") +package TestingPackage; + +class TestingSpace { + attr String name; + val Metrics.Metric[*] metrics; + val FuzzingOperations.FuzzingOperation[*] possibleFuzzingOperations; + val TestCampaign[*] campaigns; + val MRSPackage.MRS[1] mrs; +} + +class TestCampaign { + attr String name; + ref Metrics.Metric[*] metrics; + ref Metrics.Metric[*] conditionMetrics; + val ActivationGenerationMethod activationGeneration; + ref FuzzingOperations.FuzzingOperation[*] includedOperations; + val TestGenerationApproach[1] approach; + val Test[*]#parentCampaign performedTests; + val CampaignResultSet[*] resultSets; + val ExecutionEndTrigger[1] endTrigger; +} + +class Test { + attr String name; + val FuzzingOperations.FuzzingOperation[*]#containingTest operations; + val Metrics.MetricInstance[*] metrics; + ref Test[*] developedFrom; + readonly transient ref TestCampaign[1]#performedTests parentCampaign; + val TestDebuggingFlags[*] debugFlags; +} + +abstract class TestDebuggingFlags { +} + +class PassiveMonitorOnly extends TestDebuggingFlags { +} + +abstract class ActivationGenerationMethod { +} + +class TimeBasedActivationGenerationMethod extends ActivationGenerationMethod { +} + +class ConditionBasedActivationGenerationMethod extends ActivationGenerationMethod { + attr int conditionDepth; +} + +enum ResultSetStatus { + FINAL = 1; + INTERMEDIATE = 2; +} + +class CampaignResultSet { + attr String name; + attr ResultSetStatus status; + ref Test[*] results; +} + +abstract class ExecutionEndTrigger { +} + +class TimeBasedEnd extends ExecutionEndTrigger { + attr long timeLimitSeconds; +} + +abstract class TestGenerationApproach { +} + +class RandomTestGeneration extends TestGenerationApproach { +} + +abstract class EvolutionaryAlgorithm extends TestGenerationApproach { +} + +class NSGAEvolutionaryAlgorithm extends EvolutionaryAlgorithm { + attr int populationSize; + attr int iterations; +} + +class NSGAWithCoverageCells extends NSGAEvolutionaryAlgorithm { + attr int coveragePerCell; + attr double targetCoverageProportion; + val DimensionInterval[+] dimensionRecords; + val CoverageBoostingStrategy coverageBoostingStrategy; +} + +abstract class CoverageBoostingStrategy { + op boolean elementShouldUseCoverageBoosting(int i, int genNum, int boostingCountThisGeneration); +} + +class FixedNSGACoverageBoostingStrategy extends CoverageBoostingStrategy { + attr int useBoostingOnceEveryGenerations = 2; + attr int useBoostingOnceEveryIterations = 2; +} + +class LinearNSGACoverageBoostingStrategy extends CoverageBoostingStrategy { + attr int useBoostingOnceEveryGenerations = 2; + attr int startingBoostingCount; + attr int endingBoostingCount; + attr int countDropEveryGeneration; +} + +class DimensionInterval { + attr DimensionID dimID; + attr double minValue; + attr double maxValue; + attr int count; + attr int extraData = -1; +} + +enum DimensionID { + T1_TIME_MIDPOINT_MEAN = 1; + T2_TIME_LENGTH_MEAN = 2; + T3_TIME_MIDPOINT_VAR = 3; + P1_PARAMETER_MEAN = 4; + P2_PARAMETER_VARIANCE = 5; + O1_FUZZRANGE_COUNT = 6; + O2_DELAY_COUNT = 7; + O3_DELETION_COUNT = 8; + O0_TOTAL_COUNT = 9; +} + +class RepeatedExecution extends TestGenerationApproach { + ref Test[1] testToRepeat; + attr int repeatCount; +} + +@namespace(uri="FuzzingOperations", prefix="") +package FuzzingOperations { + abstract class FuzzingOperation { + attr String name; + attr int priority; + val Activation[1] activation; + ref MRSPackage.Variable variableToAffect; + attr boolean messagesFromAllComponenents = true; + ref MRSPackage.Node[*] fromNodes; + attr boolean messagesToAllComponenents = true; + ref MRSPackage.Node[*] toNodes; + ref MRSPackage.Node nodeToFuzz; + attr boolean allPublishingVars = false; + ref MRSPackage.Variable[*] publishingVars; + attr boolean allSubscribingVars = false; + ref MRSPackage.Variable[*] subscribingVars; + ref FuzzingOperation fromTemplate; + readonly transient ref Test#operations containingTest; + val FixedTimeActivation recordedTimings; + attr long seed; + attr int sequenceNumInTest; + attr double inclusionProbability = "1"; + attr boolean includeInTiming = true; + val StandardGrammar.ConditionConstraint[*] conditionConstraints; + } + + class OfflineFuzzingOperation extends FuzzingOperation { + attr OfflineOperationTime operationTime; + } + + enum OfflineOperationTime { + PRE = 0; + POST = 1; + } + + class CustomFuzzingOperation extends FuzzingOperation { + val ValueSet[*] params; + attr String customProcessClass; + } + + class CustomOfflineFuzzingOperation extends OfflineFuzzingOperation { + } + + abstract class Activation { + } + + class FixedTimeActivation extends Activation { + attr double startTime; + attr double endTime; + } + + class ConditionBasedActivation extends Activation { + val StandardGrammar.Condition starting; + val StandardGrammar.Condition ending; + attr int maximumActivations = 1; + } + + class ConditionBasedTimeLimited extends Activation { + val StandardGrammar.Condition starting; + attr double length; + attr int maximumActivations = 1; + } + + class FuzzTestingOperation extends FuzzingOperation { + } + + class ComponentOperation extends FuzzTestingOperation { + } + + class ComponentPropertyOperation extends FuzzTestingOperation { + ref MRSPackage.ComponentProperty propertyToAffect; + } + + class ComponentSubPropertyOperation extends FuzzTestingOperation { + ref MRSPackage.ComponentProperty propertyToAffect; + ref MRSPackage.Type subProperty; + } + + class VariableOperation extends FuzzTestingOperation { + ref MRSPackage.Parameter[*] subParameters; + } + + class RandomValueFuzzingOperation extends ComponentOperation { + } + + class RandomValueFromSetOperation extends RandomValueFuzzingOperation { + val ValueSet[*] valueSet; + attr boolean isRelative = false; + } + + class ValueSet { + attr String propertyName; + } + + abstract class ValueRange extends ValueSet { + } + + class IntRange extends ValueRange { + attr int lowerBound; + attr int upperBound; + } + + class DoubleRange extends ValueRange { + attr double lowerBound; + attr double upperBound; + } + + class Point { + attr double x; + attr double y; + attr double z; + } + + class PointRange extends ValueRange { + val Point[1] minPoint; + val Point[1] maxPoint; + } + + class StringSet extends ValueSet { + attr String[*] choices; + } + + class ExternalResourceSet extends ValueSet { + attr String location; + } + + class NetworkFuzzingOperation extends FuzzingOperation { + } + + class BlackholeNetworkOperation extends NetworkFuzzingOperation { + } + + class LatencyNetworkOperation extends NetworkFuzzingOperation { + val DoubleRange[1] latency; + attr boolean randomised = false; + } + + class PacketLossNetworkOperation extends NetworkFuzzingOperation { + val DoubleRange[1] frequency; + } + +} + +@namespace(uri="Metrics", prefix="") +package Metrics { + abstract class SimStream { + } + + class InputStream extends SimStream { + } + + class OutputStream extends SimStream { + } + + enum MetricOptimisationDirection { + HIGHEST = 1; + LOWEST = 2; + } + + abstract class Metric { + attr String name; + attr MetricOptimisationDirection dir; + ref MRSPackage.Variable[*] relatedVariables; + val MetricDefault valueIfNotReceived; + val MetricDefault[1] initValue; + attr boolean useInOptimisation; + } + + class MetricDefault { + attr double defaultVal; + } + + class VariableMetric extends Metric { + ref MRSPackage.Variable[1] chosenVariables; + } + + class MetricInstance { + ref Metric[1] metric; + val Results.Result[1] result; + } + + abstract class PropertyMetric extends Metric { + ref MRSPackage.ComponentProperty[1] property; + } + + class StreamMetric extends Metric { + val SimStream[*] streams; + val StreamResult res; + } + + abstract class SpecialMetric extends StreamMetric { + } + + abstract class DirectMessageGenerationMetric extends StreamMetric { + } + + class StartEndTimingMetric extends DirectMessageGenerationMetric { + } + + class FuzzingOperationTimesMetric extends SpecialMetric { + } + + abstract class StreamResult { + } + + class FileStreamResult extends StreamResult { + attr String filename; + } + +} + +@namespace(uri="Results", prefix="") +package Results { + class Result { + attr String name; + attr double value; + } + +} + +@namespace(uri="StandardGrammar", prefix="") +package StandardGrammar { + abstract class ConditionElement { + } + + class CompositeCondition extends ConditionElement { + val ConditionElement[1] left; + attr BinaryLogicalOperation[1] binop; + val ConditionElement[1] right; + } + + class BasicCondition extends ConditionElement { + val ConditionVariable[1] left; + attr BinaryComparisonOperation[1] bincomp; + val ConditionExpr[1] right; + } + + abstract class ConditionExpr { + } + + class ConditionInteger extends ConditionExpr { + attr int value; + } + + class ConditionVariable extends ConditionExpr { + ref Metrics.Metric[1] metric; + } + + enum BinaryComparisonOperation { + LESS_THAN = 1; + GREATER_THAN = 2; + EQUALS = 3; + } + + enum BinaryLogicalOperation { + AND = 1; + OR = 2; + } + + class Condition { + attr String name; + val ConditionElement[1] c; + } + + abstract class ConditionConstraint { -} - -class TimeBasedActivationGenerationMethod extends ActivationGenerationMethod { - -} - -class ConditionBasedActivationGenerationMethod extends ActivationGenerationMethod { - attr int conditionDepth; -} - -enum ResultSetStatus { - FINAL = 1; - INTERMEDIATE = 2; -} - -class CampaignResultSet { - attr String name; - attr ResultSetStatus status; - ref Test[*] results; -} - -abstract class ExecutionEndTrigger { - -} - -class TimeBasedEnd extends ExecutionEndTrigger { - attr long timeLimitSeconds; -} - -abstract class TestGenerationApproach { - -} - -class RandomTestGeneration extends TestGenerationApproach { - -} - -abstract class EvolutionaryAlgorithm extends TestGenerationApproach { - -} - -class NSGAEvolutionaryAlgorithm extends EvolutionaryAlgorithm { - attr int populationSize; - attr int iterations; -} - -// Coverage-tracking / boosting GA -class NSGAWithCoverageCells extends NSGAEvolutionaryAlgorithm { - attr int coveragePerCell; - attr double targetCoverageProportion; - val DimensionInterval[1..*] dimensionRecords; - attr boolean useMutationEnhancingCoverage = false; -} - -// Dimension min-max and cell count for the coverage-tracking GA -class DimensionInterval { - attr DimensionID dimID; - attr double minValue; - attr double maxValue; - attr int count; -} - -enum DimensionID { - T1_TIME_MIDPOINT_MEAN = 1; - T2_TIME_LENGTH_MEAN = 2; - T3_TIME_MIDPOINT_VAR = 3; - P1_PARAMETER_MEAN = 4; - P2_PARAMETER_VARIANCE = 5; - O1_FUZZRANGE_COUNT = 6; - O2_DELAY_COUNT = 7; - O3_DELETION_COUNT = 8; -} - -class RepeatedExecution extends TestGenerationApproach { - ref Test[1] testToRepeat; - attr int repeatCount; -} - -package FuzzingOperations { - -abstract class FuzzingOperation { - attr String name; - attr int priority; - - val Activation[1] activation; // FuzzingOperation only has a single activation - ref MRSPackage.Variable[0..1] variableToAffect; - attr boolean messagesFromAllComponenents = true; - ref MRSPackage.Node[*] fromNodes; - attr boolean messagesToAllComponenents = true; - ref MRSPackage.Node[*] toNodes; - ref MRSPackage.Node[0..1] nodeToFuzz; - attr boolean allPublishingVars = false; - ref MRSPackage.Variable[*] publishingVars; - attr boolean allSubscribingVars = false; - ref MRSPackage.Variable[*] subscribingVars; - ref FuzzingOperation[0..1] fromTemplate; - readonly transient ref Test[0..1]#operations containingTest; - val FixedTimeActivation[0..1] recordedTimings; - attr int seed; - attr int sequenceNumInTest; -} - -class OfflineFuzzingOperation extends FuzzingOperation { - attr OfflineOperationTime operationTime; -} - -enum OfflineOperationTime { - PRE; - POST; -} - -class CustomFuzzingOperation extends FuzzingOperation { - // These parameters will be used for the custom fuzzing operation - val ValueSet[*] params; -} - -class CustomOfflineFuzzingOperation extends OfflineFuzzingOperation { - -} - -abstract class Activation { - -} - -class FixedTimeActivation extends Activation { - attr double startTime; - attr double endTime; -} - -class ConditionBasedActivation extends Activation { - val StandardGrammar.Condition starting; - val StandardGrammar.Condition ending; - attr int maximumActivations = 1; -} - -class ConditionBasedTimeLimited extends Activation { - val StandardGrammar.Condition starting; - attr double length; - attr int maximumActivations = 1; -} - -class FuzzTestingOperation extends FuzzingOperation { - -} - -class ComponentOperation extends FuzzTestingOperation { - -} - -class ComponentPropertyOperation extends FuzzTestingOperation { - ref MRSPackage.ComponentProperty[0..1] propertyToAffect; -} - -class ComponentSubPropertyOperation extends FuzzTestingOperation { - ref MRSPackage.ComponentProperty[0..1] propertyToAffect; - ref MRSPackage.Type[0..1] subProperty; -} - -class VariableOperation extends FuzzTestingOperation { - ref MRSPackage.Parameter[*] subParameters; -} - -class RandomValueFuzzingOperation extends ComponentOperation { - -} - -class RandomValueFromSetOperation extends RandomValueFuzzingOperation { - val ValueSet[*] valueSet; - attr boolean isRelative = false; -} - -// Value Sets -class ValueSet { - // This might be a ref to the MRSPackage.ComponentProperty? - attr String propertyName; -} - -abstract class ValueRange extends ValueSet { - -} - -class IntRange extends ValueRange { - attr int lowerBound; - attr int upperBound; -} - -class DoubleRange extends ValueRange { - attr double lowerBound; - attr double upperBound; -} - -class Point { - attr double x; - attr double y; - attr double z; -} - -class PointRange extends ValueRange { - val Point[1] minPoint; - val Point[1] maxPoint; -} - -class StringSet extends ValueSet { - attr String[*] choices; -} - -class ExternalResourceSet extends ValueSet { - attr String location; -} -// End of Value Sets - - -class NetworkFuzzingOperation extends FuzzingOperation { - - -} - -class BlackholeNetworkOperation extends NetworkFuzzingOperation { - -} - -class LatencyNetworkOperation extends NetworkFuzzingOperation { - val DoubleRange[1] latency; -} - -class PacketLossNetworkOperation extends NetworkFuzzingOperation { - val DoubleRange[1] frequency; -} - -// TODO: implement this operation -//class MultipleMessagesNetworkOperation extends NetworkFuzzingOperation { -// val IntRange[1] howManyClones; -//} - -} - -package Metrics { -abstract class SimStream { - -} - -class InputStream extends SimStream { - -} - -class OutputStream extends SimStream { - -} - -enum MetricOptimisationDirection { - HIGHEST = 1; - LOWEST = 2; -} - -abstract class Metric { - attr String name; - attr MetricOptimisationDirection dir; - ref MRSPackage.Variable[*] relatedVariables; - // valueIfNotReceived - this is stored as the output value if no metric message is ever received - // this is then applied for the optimisation algorithm - val MetricDefault[0..1] valueIfNotReceived; - // initValue is used as an intialisation value in computing the conditions - val MetricDefault[0..1] initValue; - attr boolean useInOptimisation; -} - -class MetricDefault { - attr double defaultVal; -} - -class VariableMetric extends Metric { - ref MRSPackage.Variable[1] chosenVariables; -} - -class MetricInstance { - ref Metrics.Metric[1] metric; - val Results.Result[1] result; -} - -abstract class PropertyMetric extends Metric { - ref MRSPackage.ComponentProperty[1] property; -} - -class StreamMetric extends Metric { - val SimStream[*] streams; - val StreamResult res; -} - -abstract class SpecialMetric extends StreamMetric { - -} - -abstract class DirectMessageGenerationMetric extends StreamMetric { - -} - -class StartEndTimingMetric extends DirectMessageGenerationMetric { - -} - -class FuzzingOperationTimesMetric extends SpecialMetric { - -} - -abstract class StreamResult { - -} - -class FileStreamResult extends StreamResult { - attr String filename; -} -} - -package Results { - class Result { - attr String name; - attr double value; - } -} - -// This is the defined standard grammar - supports basic and composite -// conditions as in the MODELS'22 paper -package StandardGrammar { - -abstract class ConditionElement { - -} - -class CompositeCondition extends ConditionElement { - val ConditionElement[1] left; - attr BinaryLogicalOperation[1] binop; - val ConditionElement[1] right; -} - -class BasicCondition extends ConditionElement { - val ConditionVariable[1] left; - attr BinaryComparisonOperation[1] bincomp; - val ConditionExpr[1] right; -} - -abstract class ConditionExpr { - -} - -class ConditionInteger extends ConditionExpr { - attr int value; -} - -// Variables reference the metrics that supply their values -class ConditionVariable extends ConditionExpr { - ref Metrics.Metric[1] metric; -} - -enum BinaryComparisonOperation { - LESS_THAN = 1; - GREATER_THAN = 2; - EQUALS = 3; -} - -enum BinaryLogicalOperation { - AND = 1; - OR = 2; -} - -class Condition { - attr String name; - val StandardGrammar.ConditionElement[1] c; -} -} - -//------------------------------------------------------------ - -package MRSPackage { - class MRS { - val Variable[*] variables; - attr String launchFileLocation; - attr int launchDelaySeconds = 40; - attr String customTerminateFileLocation; - attr String recordFileLocation; - val Node[*] nodes; - val Simulator[1] simulator; - val Type[*] propertyType; - } - - class Node { - attr String name; - ref Variable[*] subscriber; - ref Variable[*] publisher; - ref ComponentProperty[*] properties; - } - - class Variable { - attr String name; - ref Type[1] type; - } - - class Type { - attr String name; - attr ParsingMethod[1] parsingMethod; - val Parameter[*] parameters; - //ref Type[*] subTypes; - } - - enum ParsingMethod { - JSON; - CSV; - CUSTOM; - STRING; - } - - class Parameter { - attr String name; - val Parameter[*] subparameters; - ref Type[1] type; - } - - class ComponentProperty { - attr String name; - ref Type[1] type; - } - - abstract class Simulator { - - } - - class ROSSimulator extends Simulator { - attr String hostname; - attr String port; - } - - class MOOSSimulator extends Simulator { - attr String hostname; - attr String port; - } - - class TTSSimulator extends Simulator { - attr String hostname; - attr String port; - } -} \ No newline at end of file + } + + class ContainsVariable extends ConditionConstraint { + ref Metrics.Metric[1] metric; + } + + class ContainsInteger extends ConditionConstraint { + attr int minValue; + attr int maxValue; + } +} + +@namespace(uri="MRSPackage", prefix="") +package MRSPackage { + class MRS { + val Variable[*] variables; + attr String launchFileLocation; + attr int launchDelaySeconds = 40; + attr String customTerminateFileLocation; + attr String recordFileLocation; + val Node[*] nodes; + val Simulator[1] simulator; + val Type[*] propertyType; + } + + class Node { + attr String name; + ref Variable[*] subscriber; + ref Variable[*] publisher; + ref ComponentProperty[*] properties; + } + + class Variable { + attr String name; + ref Type[1] type; + } + + class Type { + attr String name; + attr ParsingMethod[1] parsingMethod; + val Parameter[*] parameters; + } + + enum ParsingMethod { + JSON = 0; + CSV = 1; + CUSTOM = 2; + STRING = 3; + } + + class Parameter { + attr String name; + val Parameter[*] subparameters; + ref Type[1] type; + } + + class ComponentProperty { + attr String name; + ref Type[1] type; + } + + abstract class Simulator { + } + + class ROSSimulator extends Simulator { + attr String hostname; + attr String port; + } + + class MOOSSimulator extends Simulator { + attr String hostname; + attr String port; + } + + class TTSSimulator extends Simulator { + attr String hostname; + attr String port; + attr double stepSizeMillis = "20"; + attr boolean useStepping = false; + attr boolean useGUI = false; + } + +} + diff --git a/uk.ac.york.sesame.testing.dsl/models/TestingMM.genmodel b/uk.ac.york.sesame.testing.dsl/models/TestingMM.genmodel index 672c6542..1fd08519 100644 --- a/uk.ac.york.sesame.testing.dsl/models/TestingMM.genmodel +++ b/uk.ac.york.sesame.testing.dsl/models/TestingMM.genmodel @@ -20,6 +20,7 @@ + @@ -74,13 +75,31 @@ - + + + + + + + + + + + + + + + + + + + @@ -118,12 +137,16 @@ + + + + @@ -193,6 +216,7 @@ + @@ -283,6 +307,15 @@ + + + + + + + + @@ -343,6 +376,9 @@ + + + diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/CoverageBoostingStrategy.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/CoverageBoostingStrategy.java new file mode 100644 index 00000000..7ef98e74 --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/CoverageBoostingStrategy.java @@ -0,0 +1,26 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Coverage Boosting Strategy'. + * + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getCoverageBoostingStrategy() + * @model abstract="true" + * @generated + */ +public interface CoverageBoostingStrategy extends EObject { + /** + * + * + * @model + * @generated + */ + boolean elementShouldUseCoverageBoosting(int i, int genNum, int boostingCountThisGeneration); + +} // CoverageBoostingStrategy diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/DimensionID.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/DimensionID.java index df03e139..1083c792 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/DimensionID.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/DimensionID.java @@ -96,7 +96,15 @@ public enum DimensionID implements Enumerator { * @generated * @ordered */ - O3_DELETION_COUNT(8, "O3_DELETION_COUNT", "O3_DELETION_COUNT"); + O3_DELETION_COUNT(8, "O3_DELETION_COUNT", "O3_DELETION_COUNT"), /** + * The 'O0 TOTAL COUNT' literal object. + * + * + * @see #O0_TOTAL_COUNT_VALUE + * @generated + * @ordered + */ + O0_TOTAL_COUNT(9, "O0_TOTAL_COUNT", "O0_TOTAL_COUNT"); /** * The 'T1 TIME MIDPOINT MEAN' literal value. @@ -186,6 +194,17 @@ public enum DimensionID implements Enumerator { */ public static final int O3_DELETION_COUNT_VALUE = 8; + /** + * The 'O0 TOTAL COUNT' literal value. + * + * + * @see #O0_TOTAL_COUNT + * @model + * @generated + * @ordered + */ + public static final int O0_TOTAL_COUNT_VALUE = 9; + /** * An array of all the 'Dimension ID' enumerators. * @@ -202,6 +221,7 @@ public enum DimensionID implements Enumerator { O1_FUZZRANGE_COUNT, O2_DELAY_COUNT, O3_DELETION_COUNT, + O0_TOTAL_COUNT, }; /** @@ -266,6 +286,7 @@ public static DimensionID get(int value) { case O1_FUZZRANGE_COUNT_VALUE: return O1_FUZZRANGE_COUNT; case O2_DELAY_COUNT_VALUE: return O2_DELAY_COUNT; case O3_DELETION_COUNT_VALUE: return O3_DELETION_COUNT; + case O0_TOTAL_COUNT_VALUE: return O0_TOTAL_COUNT; } return null; } diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/DimensionInterval.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/DimensionInterval.java index d893dfa8..a574754a 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/DimensionInterval.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/DimensionInterval.java @@ -17,6 +17,7 @@ *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval#getMinValue Min Value}
  • *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval#getMaxValue Max Value}
  • *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval#getCount Count}
  • + *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval#getExtraData Extra Data}
  • * * * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getDimensionInterval() @@ -115,4 +116,27 @@ public interface DimensionInterval extends EObject { */ void setCount(int value); + /** + * Returns the value of the 'Extra Data' attribute. + * The default value is "-1". + * + * + * @return the value of the 'Extra Data' attribute. + * @see #setExtraData(int) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getDimensionInterval_ExtraData() + * @model default="-1" + * @generated + */ + int getExtraData(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval#getExtraData Extra Data}' attribute. + * + * + * @param value the new value of the 'Extra Data' attribute. + * @see #getExtraData() + * @generated + */ + void setExtraData(int value); + } // DimensionInterval diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FixedNSGACoverageBoostingStrategy.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FixedNSGACoverageBoostingStrategy.java new file mode 100644 index 00000000..86b2395a --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FixedNSGACoverageBoostingStrategy.java @@ -0,0 +1,70 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage; + + +/** + * + * A representation of the model object 'Fixed NSGA Coverage Boosting Strategy'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy#getUseBoostingOnceEveryGenerations Use Boosting Once Every Generations}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy#getUseBoostingOnceEveryIterations Use Boosting Once Every Iterations}
    • + *
    + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getFixedNSGACoverageBoostingStrategy() + * @model + * @generated + */ +public interface FixedNSGACoverageBoostingStrategy extends CoverageBoostingStrategy { + /** + * Returns the value of the 'Use Boosting Once Every Generations' attribute. + * The default value is "2". + * + * + * @return the value of the 'Use Boosting Once Every Generations' attribute. + * @see #setUseBoostingOnceEveryGenerations(int) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getFixedNSGACoverageBoostingStrategy_UseBoostingOnceEveryGenerations() + * @model default="2" + * @generated + */ + int getUseBoostingOnceEveryGenerations(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy#getUseBoostingOnceEveryGenerations Use Boosting Once Every Generations}' attribute. + * + * + * @param value the new value of the 'Use Boosting Once Every Generations' attribute. + * @see #getUseBoostingOnceEveryGenerations() + * @generated + */ + void setUseBoostingOnceEveryGenerations(int value); + + /** + * Returns the value of the 'Use Boosting Once Every Iterations' attribute. + * The default value is "2". + * + * + * @return the value of the 'Use Boosting Once Every Iterations' attribute. + * @see #setUseBoostingOnceEveryIterations(int) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getFixedNSGACoverageBoostingStrategy_UseBoostingOnceEveryIterations() + * @model default="2" + * @generated + */ + int getUseBoostingOnceEveryIterations(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy#getUseBoostingOnceEveryIterations Use Boosting Once Every Iterations}' attribute. + * + * + * @param value the new value of the 'Use Boosting Once Every Iterations' attribute. + * @see #getUseBoostingOnceEveryIterations() + * @generated + */ + void setUseBoostingOnceEveryIterations(int value); + +} // FixedNSGACoverageBoostingStrategy diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/CustomFuzzingOperation.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/CustomFuzzingOperation.java index 7868b7d7..d36be768 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/CustomFuzzingOperation.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/CustomFuzzingOperation.java @@ -15,6 +15,7 @@ *

    *
      *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomFuzzingOperation#getParams Params}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomFuzzingOperation#getCustomProcessClass Custom Process Class}
    • *
    * * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage#getCustomFuzzingOperation() @@ -34,4 +35,26 @@ public interface CustomFuzzingOperation extends FuzzingOperation { * @generated */ EList getParams(); + + /** + * Returns the value of the 'Custom Process Class' attribute. + * + * + * @return the value of the 'Custom Process Class' attribute. + * @see #setCustomProcessClass(String) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage#getCustomFuzzingOperation_CustomProcessClass() + * @model + * @generated + */ + String getCustomProcessClass(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomFuzzingOperation#getCustomProcessClass Custom Process Class}' attribute. + * + * + * @param value the new value of the 'Custom Process Class' attribute. + * @see #getCustomProcessClass() + * @generated + */ + void setCustomProcessClass(String value); } // CustomFuzzingOperation diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperation.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperation.java index a208270a..1c0ab798 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperation.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperation.java @@ -9,6 +9,7 @@ import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.Node; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.Variable; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionConstraint; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Test; /** @@ -38,6 +39,9 @@ *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getRecordedTimings Recorded Timings}
  • *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getSeed Seed}
  • *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getSequenceNumInTest Sequence Num In Test}
  • + *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getInclusionProbability Inclusion Probability}
  • + *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#isIncludeInTiming Include In Timing}
  • + *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getConditionConstraints Condition Constraints}
  • * * * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage#getFuzzingOperation() @@ -357,12 +361,12 @@ public interface FuzzingOperation extends EObject { * * * @return the value of the 'Seed' attribute. - * @see #setSeed(int) + * @see #setSeed(long) * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage#getFuzzingOperation_Seed() * @model * @generated */ - int getSeed(); + long getSeed(); /** * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getSeed Seed}' attribute. @@ -372,7 +376,7 @@ public interface FuzzingOperation extends EObject { * @see #getSeed() * @generated */ - void setSeed(int value); + void setSeed(long value); /** * Returns the value of the 'Sequence Num In Test' attribute. @@ -396,4 +400,62 @@ public interface FuzzingOperation extends EObject { */ void setSequenceNumInTest(int value); + /** + * Returns the value of the 'Inclusion Probability' attribute. + * The default value is "1". + * + * + * @return the value of the 'Inclusion Probability' attribute. + * @see #setInclusionProbability(double) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage#getFuzzingOperation_InclusionProbability() + * @model default="1" + * @generated + */ + double getInclusionProbability(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getInclusionProbability Inclusion Probability}' attribute. + * + * + * @param value the new value of the 'Inclusion Probability' attribute. + * @see #getInclusionProbability() + * @generated + */ + void setInclusionProbability(double value); + + /** + * Returns the value of the 'Include In Timing' attribute. + * The default value is "true". + * + * + * @return the value of the 'Include In Timing' attribute. + * @see #setIncludeInTiming(boolean) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage#getFuzzingOperation_IncludeInTiming() + * @model default="true" + * @generated + */ + boolean isIncludeInTiming(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#isIncludeInTiming Include In Timing}' attribute. + * + * + * @param value the new value of the 'Include In Timing' attribute. + * @see #isIncludeInTiming() + * @generated + */ + void setIncludeInTiming(boolean value); + + /** + * Returns the value of the 'Condition Constraints' containment reference list. + * The list contents are of type {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionConstraint}. + * + * + * @return the value of the 'Condition Constraints' containment reference list. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage#getFuzzingOperation_ConditionConstraints() + * @model containment="true" + * @generated + */ + EList getConditionConstraints(); + } // FuzzingOperation diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperationsFactory.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperationsFactory.java index 5278d6f4..d50cb84b 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperationsFactory.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperationsFactory.java @@ -201,24 +201,6 @@ public interface FuzzingOperationsFactory extends EFactory { */ ExternalResourceSet createExternalResourceSet(); - /** - * Returns a new object of class 'Resource Fuzzing Operation'. - * - * - * @return a new object of class 'Resource Fuzzing Operation'. - * @generated - */ - ResourceFuzzingOperation createResourceFuzzingOperation(); - - /** - * Returns a new object of class 'State Fuzzing Operation'. - * - * - * @return a new object of class 'State Fuzzing Operation'. - * @generated - */ - StateFuzzingOperation createStateFuzzingOperation(); - /** * Returns a new object of class 'Network Fuzzing Operation'. * @@ -228,87 +210,6 @@ public interface FuzzingOperationsFactory extends EFactory { */ NetworkFuzzingOperation createNetworkFuzzingOperation(); - /** - * Returns a new object of class 'Load Resource Operation'. - * - * - * @return a new object of class 'Load Resource Operation'. - * @generated - */ - LoadResourceOperation createLoadResourceOperation(); - - /** - * Returns a new object of class 'Load Type'. - * - * - * @return a new object of class 'Load Type'. - * @generated - */ - LoadType createLoadType(); - - /** - * Returns a new object of class 'CPU Load Type'. - * - * - * @return a new object of class 'CPU Load Type'. - * @generated - */ - CPULoadType createCPULoadType(); - - /** - * Returns a new object of class 'Memory Load Type'. - * - * - * @return a new object of class 'Memory Load Type'. - * @generated - */ - MemoryLoadType createMemoryLoadType(); - - /** - * Returns a new object of class 'IO Load Type'. - * - * - * @return a new object of class 'IO Load Type'. - * @generated - */ - IOLoadType createIOLoadType(); - - /** - * Returns a new object of class 'Disk Load Type'. - * - * - * @return a new object of class 'Disk Load Type'. - * @generated - */ - DiskLoadType createDiskLoadType(); - - /** - * Returns a new object of class 'Shutdown State Operaton'. - * - * - * @return a new object of class 'Shutdown State Operaton'. - * @generated - */ - ShutdownStateOperaton createShutdownStateOperaton(); - - /** - * Returns a new object of class 'Time Travel State Operaton'. - * - * - * @return a new object of class 'Time Travel State Operaton'. - * @generated - */ - TimeTravelStateOperaton createTimeTravelStateOperaton(); - - /** - * Returns a new object of class 'Process Killer State Operaton'. - * - * - * @return a new object of class 'Process Killer State Operaton'. - * @generated - */ - ProcessKillerStateOperaton createProcessKillerStateOperaton(); - /** * Returns a new object of class 'Blackhole Network Operation'. * @@ -336,15 +237,6 @@ public interface FuzzingOperationsFactory extends EFactory { */ PacketLossNetworkOperation createPacketLossNetworkOperation(); - /** - * Returns a new object of class 'Multiple Messages Network Operation'. - * - * - * @return a new object of class 'Multiple Messages Network Operation'. - * @generated - */ - MultipleMessagesNetworkOperation createMultipleMessagesNetworkOperation(); - /** * Returns the package supported by this factory. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperationsPackage.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperationsPackage.java index e4e28baa..f03511cf 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperationsPackage.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/FuzzingOperationsPackage.java @@ -229,6 +229,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST = 17; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int FUZZING_OPERATION__INCLUSION_PROBABILITY = 18; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int FUZZING_OPERATION__INCLUDE_IN_TIMING = 19; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int FUZZING_OPERATION__CONDITION_CONSTRAINTS = 20; + /** * The number of structural features of the 'Fuzzing Operation' class. * @@ -236,7 +263,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int FUZZING_OPERATION_FEATURE_COUNT = 18; + int FUZZING_OPERATION_FEATURE_COUNT = 21; /** * The number of operations of the 'Fuzzing Operation' class. @@ -419,6 +446,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int OFFLINE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int OFFLINE_FUZZING_OPERATION__INCLUSION_PROBABILITY = FUZZING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int OFFLINE_FUZZING_OPERATION__INCLUDE_IN_TIMING = FUZZING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int OFFLINE_FUZZING_OPERATION__CONDITION_CONSTRAINTS = FUZZING_OPERATION__CONDITION_CONSTRAINTS; + /** * The feature id for the 'Operation Time' attribute. * @@ -618,6 +672,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int CUSTOM_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_FUZZING_OPERATION__INCLUSION_PROBABILITY = FUZZING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_FUZZING_OPERATION__INCLUDE_IN_TIMING = FUZZING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int CUSTOM_FUZZING_OPERATION__CONDITION_CONSTRAINTS = FUZZING_OPERATION__CONDITION_CONSTRAINTS; + /** * The feature id for the 'Params' containment reference list. * @@ -627,6 +708,15 @@ public interface FuzzingOperationsPackage extends EPackage { */ int CUSTOM_FUZZING_OPERATION__PARAMS = FUZZING_OPERATION_FEATURE_COUNT + 0; + /** + * The feature id for the 'Custom Process Class' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_FUZZING_OPERATION__CUSTOM_PROCESS_CLASS = FUZZING_OPERATION_FEATURE_COUNT + 1; + /** * The number of structural features of the 'Custom Fuzzing Operation' class. * @@ -634,7 +724,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int CUSTOM_FUZZING_OPERATION_FEATURE_COUNT = FUZZING_OPERATION_FEATURE_COUNT + 1; + int CUSTOM_FUZZING_OPERATION_FEATURE_COUNT = FUZZING_OPERATION_FEATURE_COUNT + 2; /** * The number of operations of the 'Custom Fuzzing Operation' class. @@ -817,6 +907,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int CUSTOM_OFFLINE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST = OFFLINE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_OFFLINE_FUZZING_OPERATION__INCLUSION_PROBABILITY = OFFLINE_FUZZING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int CUSTOM_OFFLINE_FUZZING_OPERATION__INCLUDE_IN_TIMING = OFFLINE_FUZZING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int CUSTOM_OFFLINE_FUZZING_OPERATION__CONDITION_CONSTRAINTS = OFFLINE_FUZZING_OPERATION__CONDITION_CONSTRAINTS; + /** * The feature id for the 'Operation Time' attribute. * @@ -1200,6 +1317,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int FUZZ_TESTING_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int FUZZ_TESTING_OPERATION__INCLUSION_PROBABILITY = FUZZING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int FUZZ_TESTING_OPERATION__INCLUDE_IN_TIMING = FUZZING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int FUZZ_TESTING_OPERATION__CONDITION_CONSTRAINTS = FUZZING_OPERATION__CONDITION_CONSTRAINTS; + /** * The number of structural features of the 'Fuzz Testing Operation' class. * @@ -1390,6 +1534,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int COMPONENT_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZ_TESTING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int COMPONENT_OPERATION__INCLUSION_PROBABILITY = FUZZ_TESTING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int COMPONENT_OPERATION__INCLUDE_IN_TIMING = FUZZ_TESTING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int COMPONENT_OPERATION__CONDITION_CONSTRAINTS = FUZZ_TESTING_OPERATION__CONDITION_CONSTRAINTS; + /** * The number of structural features of the 'Component Operation' class. * @@ -1580,6 +1751,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int COMPONENT_PROPERTY_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZ_TESTING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int COMPONENT_PROPERTY_OPERATION__INCLUSION_PROBABILITY = FUZZ_TESTING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int COMPONENT_PROPERTY_OPERATION__INCLUDE_IN_TIMING = FUZZ_TESTING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int COMPONENT_PROPERTY_OPERATION__CONDITION_CONSTRAINTS = FUZZ_TESTING_OPERATION__CONDITION_CONSTRAINTS; + /** * The feature id for the 'Property To Affect' reference. * @@ -1779,6 +1977,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int COMPONENT_SUB_PROPERTY_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZ_TESTING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int COMPONENT_SUB_PROPERTY_OPERATION__INCLUSION_PROBABILITY = FUZZ_TESTING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int COMPONENT_SUB_PROPERTY_OPERATION__INCLUDE_IN_TIMING = FUZZ_TESTING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int COMPONENT_SUB_PROPERTY_OPERATION__CONDITION_CONSTRAINTS = FUZZ_TESTING_OPERATION__CONDITION_CONSTRAINTS; + /** * The feature id for the 'Property To Affect' reference. * @@ -1987,6 +2212,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int VARIABLE_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZ_TESTING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int VARIABLE_OPERATION__INCLUSION_PROBABILITY = FUZZ_TESTING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int VARIABLE_OPERATION__INCLUDE_IN_TIMING = FUZZ_TESTING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int VARIABLE_OPERATION__CONDITION_CONSTRAINTS = FUZZ_TESTING_OPERATION__CONDITION_CONSTRAINTS; + /** * The feature id for the 'Sub Parameters' reference list. * @@ -2186,6 +2438,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int RANDOM_VALUE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST = COMPONENT_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int RANDOM_VALUE_FUZZING_OPERATION__INCLUSION_PROBABILITY = COMPONENT_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int RANDOM_VALUE_FUZZING_OPERATION__INCLUDE_IN_TIMING = COMPONENT_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int RANDOM_VALUE_FUZZING_OPERATION__CONDITION_CONSTRAINTS = COMPONENT_OPERATION__CONDITION_CONSTRAINTS; + /** * The number of structural features of the 'Random Value Fuzzing Operation' class. * @@ -2376,6 +2655,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int RANDOM_VALUE_FROM_SET_OPERATION__SEQUENCE_NUM_IN_TEST = RANDOM_VALUE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int RANDOM_VALUE_FROM_SET_OPERATION__INCLUSION_PROBABILITY = RANDOM_VALUE_FUZZING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int RANDOM_VALUE_FROM_SET_OPERATION__INCLUDE_IN_TIMING = RANDOM_VALUE_FUZZING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int RANDOM_VALUE_FROM_SET_OPERATION__CONDITION_CONSTRAINTS = RANDOM_VALUE_FUZZING_OPERATION__CONDITION_CONSTRAINTS; + /** * The feature id for the 'Value Set' containment reference list. * @@ -2799,14 +3105,14 @@ public interface FuzzingOperationsPackage extends EPackage { int EXTERNAL_RESOURCE_SET_OPERATION_COUNT = VALUE_SET_OPERATION_COUNT + 0; /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ResourceFuzzingOperationImpl Resource Fuzzing Operation}' class. + * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.NetworkFuzzingOperationImpl Network Fuzzing Operation}' class. * * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ResourceFuzzingOperationImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getResourceFuzzingOperation() + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.NetworkFuzzingOperationImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getNetworkFuzzingOperation() * @generated */ - int RESOURCE_FUZZING_OPERATION = 23; + int NETWORK_FUZZING_OPERATION = 23; /** * The feature id for the 'Name' attribute. @@ -2815,7 +3121,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__NAME = FUZZING_OPERATION__NAME; + int NETWORK_FUZZING_OPERATION__NAME = FUZZING_OPERATION__NAME; /** * The feature id for the 'Priority' attribute. @@ -2824,7 +3130,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__PRIORITY = FUZZING_OPERATION__PRIORITY; + int NETWORK_FUZZING_OPERATION__PRIORITY = FUZZING_OPERATION__PRIORITY; /** * The feature id for the 'Activation' containment reference. @@ -2833,7 +3139,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__ACTIVATION = FUZZING_OPERATION__ACTIVATION; + int NETWORK_FUZZING_OPERATION__ACTIVATION = FUZZING_OPERATION__ACTIVATION; /** * The feature id for the 'Variable To Affect' reference. @@ -2842,7 +3148,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__VARIABLE_TO_AFFECT = FUZZING_OPERATION__VARIABLE_TO_AFFECT; + int NETWORK_FUZZING_OPERATION__VARIABLE_TO_AFFECT = FUZZING_OPERATION__VARIABLE_TO_AFFECT; /** * The feature id for the 'Messages From All Componenents' attribute. @@ -2851,7 +3157,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS = FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS; + int NETWORK_FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS = FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS; /** * The feature id for the 'From Nodes' reference list. @@ -2860,7 +3166,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__FROM_NODES = FUZZING_OPERATION__FROM_NODES; + int NETWORK_FUZZING_OPERATION__FROM_NODES = FUZZING_OPERATION__FROM_NODES; /** * The feature id for the 'Messages To All Componenents' attribute. @@ -2869,7 +3175,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS = FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS; + int NETWORK_FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS = FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS; /** * The feature id for the 'To Nodes' reference list. @@ -2878,7 +3184,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__TO_NODES = FUZZING_OPERATION__TO_NODES; + int NETWORK_FUZZING_OPERATION__TO_NODES = FUZZING_OPERATION__TO_NODES; /** * The feature id for the 'Node To Fuzz' reference. @@ -2887,7 +3193,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__NODE_TO_FUZZ = FUZZING_OPERATION__NODE_TO_FUZZ; + int NETWORK_FUZZING_OPERATION__NODE_TO_FUZZ = FUZZING_OPERATION__NODE_TO_FUZZ; /** * The feature id for the 'All Publishing Vars' attribute. @@ -2896,7 +3202,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__ALL_PUBLISHING_VARS = FUZZING_OPERATION__ALL_PUBLISHING_VARS; + int NETWORK_FUZZING_OPERATION__ALL_PUBLISHING_VARS = FUZZING_OPERATION__ALL_PUBLISHING_VARS; /** * The feature id for the 'Publishing Vars' reference list. @@ -2905,7 +3211,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__PUBLISHING_VARS = FUZZING_OPERATION__PUBLISHING_VARS; + int NETWORK_FUZZING_OPERATION__PUBLISHING_VARS = FUZZING_OPERATION__PUBLISHING_VARS; /** * The feature id for the 'All Subscribing Vars' attribute. @@ -2914,7 +3220,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__ALL_SUBSCRIBING_VARS = FUZZING_OPERATION__ALL_SUBSCRIBING_VARS; + int NETWORK_FUZZING_OPERATION__ALL_SUBSCRIBING_VARS = FUZZING_OPERATION__ALL_SUBSCRIBING_VARS; /** * The feature id for the 'Subscribing Vars' reference list. @@ -2923,7 +3229,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__SUBSCRIBING_VARS = FUZZING_OPERATION__SUBSCRIBING_VARS; + int NETWORK_FUZZING_OPERATION__SUBSCRIBING_VARS = FUZZING_OPERATION__SUBSCRIBING_VARS; /** * The feature id for the 'From Template' reference. @@ -2932,7 +3238,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__FROM_TEMPLATE = FUZZING_OPERATION__FROM_TEMPLATE; + int NETWORK_FUZZING_OPERATION__FROM_TEMPLATE = FUZZING_OPERATION__FROM_TEMPLATE; /** * The feature id for the 'Containing Test' container reference. @@ -2941,7 +3247,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__CONTAINING_TEST = FUZZING_OPERATION__CONTAINING_TEST; + int NETWORK_FUZZING_OPERATION__CONTAINING_TEST = FUZZING_OPERATION__CONTAINING_TEST; /** * The feature id for the 'Recorded Timings' containment reference. @@ -2950,1440 +3256,70 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int RESOURCE_FUZZING_OPERATION__RECORDED_TIMINGS = FUZZING_OPERATION__RECORDED_TIMINGS; - - /** - * The feature id for the 'Seed' attribute. - * - * - * @generated - * @ordered - */ - int RESOURCE_FUZZING_OPERATION__SEED = FUZZING_OPERATION__SEED; - - /** - * The feature id for the 'Sequence Num In Test' attribute. - * - * - * @generated - * @ordered - */ - int RESOURCE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; - - /** - * The number of structural features of the 'Resource Fuzzing Operation' class. - * - * - * @generated - * @ordered - */ - int RESOURCE_FUZZING_OPERATION_FEATURE_COUNT = FUZZING_OPERATION_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Resource Fuzzing Operation' class. - * - * - * @generated - * @ordered - */ - int RESOURCE_FUZZING_OPERATION_OPERATION_COUNT = FUZZING_OPERATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.StateFuzzingOperationImpl State Fuzzing Operation}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.StateFuzzingOperationImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getStateFuzzingOperation() - * @generated - */ - int STATE_FUZZING_OPERATION = 24; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__NAME = FUZZING_OPERATION__NAME; - - /** - * The feature id for the 'Priority' attribute. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__PRIORITY = FUZZING_OPERATION__PRIORITY; - - /** - * The feature id for the 'Activation' containment reference. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__ACTIVATION = FUZZING_OPERATION__ACTIVATION; - - /** - * The feature id for the 'Variable To Affect' reference. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__VARIABLE_TO_AFFECT = FUZZING_OPERATION__VARIABLE_TO_AFFECT; - - /** - * The feature id for the 'Messages From All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS = FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS; - - /** - * The feature id for the 'From Nodes' reference list. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__FROM_NODES = FUZZING_OPERATION__FROM_NODES; - - /** - * The feature id for the 'Messages To All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS = FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS; - - /** - * The feature id for the 'To Nodes' reference list. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__TO_NODES = FUZZING_OPERATION__TO_NODES; - - /** - * The feature id for the 'Node To Fuzz' reference. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__NODE_TO_FUZZ = FUZZING_OPERATION__NODE_TO_FUZZ; - - /** - * The feature id for the 'All Publishing Vars' attribute. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__ALL_PUBLISHING_VARS = FUZZING_OPERATION__ALL_PUBLISHING_VARS; - - /** - * The feature id for the 'Publishing Vars' reference list. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__PUBLISHING_VARS = FUZZING_OPERATION__PUBLISHING_VARS; - - /** - * The feature id for the 'All Subscribing Vars' attribute. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__ALL_SUBSCRIBING_VARS = FUZZING_OPERATION__ALL_SUBSCRIBING_VARS; - - /** - * The feature id for the 'Subscribing Vars' reference list. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__SUBSCRIBING_VARS = FUZZING_OPERATION__SUBSCRIBING_VARS; - - /** - * The feature id for the 'From Template' reference. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__FROM_TEMPLATE = FUZZING_OPERATION__FROM_TEMPLATE; - - /** - * The feature id for the 'Containing Test' container reference. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__CONTAINING_TEST = FUZZING_OPERATION__CONTAINING_TEST; - - /** - * The feature id for the 'Recorded Timings' containment reference. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__RECORDED_TIMINGS = FUZZING_OPERATION__RECORDED_TIMINGS; - - /** - * The feature id for the 'Seed' attribute. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__SEED = FUZZING_OPERATION__SEED; - - /** - * The feature id for the 'Sequence Num In Test' attribute. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; - - /** - * The number of structural features of the 'State Fuzzing Operation' class. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION_FEATURE_COUNT = FUZZING_OPERATION_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'State Fuzzing Operation' class. - * - * - * @generated - * @ordered - */ - int STATE_FUZZING_OPERATION_OPERATION_COUNT = FUZZING_OPERATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.NetworkFuzzingOperationImpl Network Fuzzing Operation}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.NetworkFuzzingOperationImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getNetworkFuzzingOperation() - * @generated - */ - int NETWORK_FUZZING_OPERATION = 25; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__NAME = FUZZING_OPERATION__NAME; - - /** - * The feature id for the 'Priority' attribute. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__PRIORITY = FUZZING_OPERATION__PRIORITY; - - /** - * The feature id for the 'Activation' containment reference. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__ACTIVATION = FUZZING_OPERATION__ACTIVATION; - - /** - * The feature id for the 'Variable To Affect' reference. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__VARIABLE_TO_AFFECT = FUZZING_OPERATION__VARIABLE_TO_AFFECT; - - /** - * The feature id for the 'Messages From All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS = FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS; - - /** - * The feature id for the 'From Nodes' reference list. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__FROM_NODES = FUZZING_OPERATION__FROM_NODES; - - /** - * The feature id for the 'Messages To All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS = FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS; - - /** - * The feature id for the 'To Nodes' reference list. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__TO_NODES = FUZZING_OPERATION__TO_NODES; - - /** - * The feature id for the 'Node To Fuzz' reference. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__NODE_TO_FUZZ = FUZZING_OPERATION__NODE_TO_FUZZ; - - /** - * The feature id for the 'All Publishing Vars' attribute. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__ALL_PUBLISHING_VARS = FUZZING_OPERATION__ALL_PUBLISHING_VARS; - - /** - * The feature id for the 'Publishing Vars' reference list. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__PUBLISHING_VARS = FUZZING_OPERATION__PUBLISHING_VARS; - - /** - * The feature id for the 'All Subscribing Vars' attribute. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__ALL_SUBSCRIBING_VARS = FUZZING_OPERATION__ALL_SUBSCRIBING_VARS; - - /** - * The feature id for the 'Subscribing Vars' reference list. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__SUBSCRIBING_VARS = FUZZING_OPERATION__SUBSCRIBING_VARS; - - /** - * The feature id for the 'From Template' reference. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__FROM_TEMPLATE = FUZZING_OPERATION__FROM_TEMPLATE; - - /** - * The feature id for the 'Containing Test' container reference. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__CONTAINING_TEST = FUZZING_OPERATION__CONTAINING_TEST; - - /** - * The feature id for the 'Recorded Timings' containment reference. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__RECORDED_TIMINGS = FUZZING_OPERATION__RECORDED_TIMINGS; - - /** - * The feature id for the 'Seed' attribute. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__SEED = FUZZING_OPERATION__SEED; - - /** - * The feature id for the 'Sequence Num In Test' attribute. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; - - /** - * The number of structural features of the 'Network Fuzzing Operation' class. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION_FEATURE_COUNT = FUZZING_OPERATION_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Network Fuzzing Operation' class. - * - * - * @generated - * @ordered - */ - int NETWORK_FUZZING_OPERATION_OPERATION_COUNT = FUZZING_OPERATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadResourceOperationImpl Load Resource Operation}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadResourceOperationImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getLoadResourceOperation() - * @generated - */ - int LOAD_RESOURCE_OPERATION = 26; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__NAME = RESOURCE_FUZZING_OPERATION__NAME; - - /** - * The feature id for the 'Priority' attribute. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__PRIORITY = RESOURCE_FUZZING_OPERATION__PRIORITY; - - /** - * The feature id for the 'Activation' containment reference. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__ACTIVATION = RESOURCE_FUZZING_OPERATION__ACTIVATION; - - /** - * The feature id for the 'Variable To Affect' reference. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__VARIABLE_TO_AFFECT = RESOURCE_FUZZING_OPERATION__VARIABLE_TO_AFFECT; - - /** - * The feature id for the 'Messages From All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS = RESOURCE_FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS; - - /** - * The feature id for the 'From Nodes' reference list. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__FROM_NODES = RESOURCE_FUZZING_OPERATION__FROM_NODES; - - /** - * The feature id for the 'Messages To All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__MESSAGES_TO_ALL_COMPONENENTS = RESOURCE_FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS; - - /** - * The feature id for the 'To Nodes' reference list. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__TO_NODES = RESOURCE_FUZZING_OPERATION__TO_NODES; - - /** - * The feature id for the 'Node To Fuzz' reference. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__NODE_TO_FUZZ = RESOURCE_FUZZING_OPERATION__NODE_TO_FUZZ; - - /** - * The feature id for the 'All Publishing Vars' attribute. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__ALL_PUBLISHING_VARS = RESOURCE_FUZZING_OPERATION__ALL_PUBLISHING_VARS; - - /** - * The feature id for the 'Publishing Vars' reference list. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__PUBLISHING_VARS = RESOURCE_FUZZING_OPERATION__PUBLISHING_VARS; - - /** - * The feature id for the 'All Subscribing Vars' attribute. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__ALL_SUBSCRIBING_VARS = RESOURCE_FUZZING_OPERATION__ALL_SUBSCRIBING_VARS; - - /** - * The feature id for the 'Subscribing Vars' reference list. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__SUBSCRIBING_VARS = RESOURCE_FUZZING_OPERATION__SUBSCRIBING_VARS; - - /** - * The feature id for the 'From Template' reference. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__FROM_TEMPLATE = RESOURCE_FUZZING_OPERATION__FROM_TEMPLATE; - - /** - * The feature id for the 'Containing Test' container reference. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__CONTAINING_TEST = RESOURCE_FUZZING_OPERATION__CONTAINING_TEST; - - /** - * The feature id for the 'Recorded Timings' containment reference. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__RECORDED_TIMINGS = RESOURCE_FUZZING_OPERATION__RECORDED_TIMINGS; - - /** - * The feature id for the 'Seed' attribute. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__SEED = RESOURCE_FUZZING_OPERATION__SEED; - - /** - * The feature id for the 'Sequence Num In Test' attribute. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__SEQUENCE_NUM_IN_TEST = RESOURCE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; - - /** - * The feature id for the 'Load Type' reference. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION__LOAD_TYPE = RESOURCE_FUZZING_OPERATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Load Resource Operation' class. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION_FEATURE_COUNT = RESOURCE_FUZZING_OPERATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Load Resource Operation' class. - * - * - * @generated - * @ordered - */ - int LOAD_RESOURCE_OPERATION_OPERATION_COUNT = RESOURCE_FUZZING_OPERATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadTypeImpl Load Type}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadTypeImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getLoadType() - * @generated - */ - int LOAD_TYPE = 27; - - /** - * The feature id for the 'Min' attribute. - * - * - * @generated - * @ordered - */ - int LOAD_TYPE__MIN = 0; - - /** - * The feature id for the 'Max' attribute. - * - * - * @generated - * @ordered - */ - int LOAD_TYPE__MAX = 1; - - /** - * The number of structural features of the 'Load Type' class. - * - * - * @generated - * @ordered - */ - int LOAD_TYPE_FEATURE_COUNT = 2; - - /** - * The number of operations of the 'Load Type' class. - * - * - * @generated - * @ordered - */ - int LOAD_TYPE_OPERATION_COUNT = 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.CPULoadTypeImpl CPU Load Type}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.CPULoadTypeImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getCPULoadType() - * @generated - */ - int CPU_LOAD_TYPE = 28; - - /** - * The feature id for the 'Min' attribute. - * - * - * @generated - * @ordered - */ - int CPU_LOAD_TYPE__MIN = LOAD_TYPE__MIN; - - /** - * The feature id for the 'Max' attribute. - * - * - * @generated - * @ordered - */ - int CPU_LOAD_TYPE__MAX = LOAD_TYPE__MAX; - - /** - * The number of structural features of the 'CPU Load Type' class. - * - * - * @generated - * @ordered - */ - int CPU_LOAD_TYPE_FEATURE_COUNT = LOAD_TYPE_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'CPU Load Type' class. - * - * - * @generated - * @ordered - */ - int CPU_LOAD_TYPE_OPERATION_COUNT = LOAD_TYPE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.MemoryLoadTypeImpl Memory Load Type}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.MemoryLoadTypeImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getMemoryLoadType() - * @generated - */ - int MEMORY_LOAD_TYPE = 29; - - /** - * The feature id for the 'Min' attribute. - * - * - * @generated - * @ordered - */ - int MEMORY_LOAD_TYPE__MIN = LOAD_TYPE__MIN; - - /** - * The feature id for the 'Max' attribute. - * - * - * @generated - * @ordered - */ - int MEMORY_LOAD_TYPE__MAX = LOAD_TYPE__MAX; - - /** - * The number of structural features of the 'Memory Load Type' class. - * - * - * @generated - * @ordered - */ - int MEMORY_LOAD_TYPE_FEATURE_COUNT = LOAD_TYPE_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Memory Load Type' class. - * - * - * @generated - * @ordered - */ - int MEMORY_LOAD_TYPE_OPERATION_COUNT = LOAD_TYPE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.IOLoadTypeImpl IO Load Type}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.IOLoadTypeImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getIOLoadType() - * @generated - */ - int IO_LOAD_TYPE = 30; - - /** - * The feature id for the 'Min' attribute. - * - * - * @generated - * @ordered - */ - int IO_LOAD_TYPE__MIN = LOAD_TYPE__MIN; - - /** - * The feature id for the 'Max' attribute. - * - * - * @generated - * @ordered - */ - int IO_LOAD_TYPE__MAX = LOAD_TYPE__MAX; - - /** - * The number of structural features of the 'IO Load Type' class. - * - * - * @generated - * @ordered - */ - int IO_LOAD_TYPE_FEATURE_COUNT = LOAD_TYPE_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'IO Load Type' class. - * - * - * @generated - * @ordered - */ - int IO_LOAD_TYPE_OPERATION_COUNT = LOAD_TYPE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.DiskLoadTypeImpl Disk Load Type}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.DiskLoadTypeImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getDiskLoadType() - * @generated - */ - int DISK_LOAD_TYPE = 31; - - /** - * The feature id for the 'Min' attribute. - * - * - * @generated - * @ordered - */ - int DISK_LOAD_TYPE__MIN = LOAD_TYPE__MIN; - - /** - * The feature id for the 'Max' attribute. - * - * - * @generated - * @ordered - */ - int DISK_LOAD_TYPE__MAX = LOAD_TYPE__MAX; - - /** - * The number of structural features of the 'Disk Load Type' class. - * - * - * @generated - * @ordered - */ - int DISK_LOAD_TYPE_FEATURE_COUNT = LOAD_TYPE_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Disk Load Type' class. - * - * - * @generated - * @ordered - */ - int DISK_LOAD_TYPE_OPERATION_COUNT = LOAD_TYPE_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ShutdownStateOperatonImpl Shutdown State Operaton}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ShutdownStateOperatonImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getShutdownStateOperaton() - * @generated - */ - int SHUTDOWN_STATE_OPERATON = 32; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__NAME = STATE_FUZZING_OPERATION__NAME; - - /** - * The feature id for the 'Priority' attribute. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__PRIORITY = STATE_FUZZING_OPERATION__PRIORITY; - - /** - * The feature id for the 'Activation' containment reference. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__ACTIVATION = STATE_FUZZING_OPERATION__ACTIVATION; - - /** - * The feature id for the 'Variable To Affect' reference. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__VARIABLE_TO_AFFECT = STATE_FUZZING_OPERATION__VARIABLE_TO_AFFECT; - - /** - * The feature id for the 'Messages From All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__MESSAGES_FROM_ALL_COMPONENENTS = STATE_FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS; - - /** - * The feature id for the 'From Nodes' reference list. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__FROM_NODES = STATE_FUZZING_OPERATION__FROM_NODES; - - /** - * The feature id for the 'Messages To All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__MESSAGES_TO_ALL_COMPONENENTS = STATE_FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS; - - /** - * The feature id for the 'To Nodes' reference list. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__TO_NODES = STATE_FUZZING_OPERATION__TO_NODES; - - /** - * The feature id for the 'Node To Fuzz' reference. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__NODE_TO_FUZZ = STATE_FUZZING_OPERATION__NODE_TO_FUZZ; - - /** - * The feature id for the 'All Publishing Vars' attribute. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__ALL_PUBLISHING_VARS = STATE_FUZZING_OPERATION__ALL_PUBLISHING_VARS; - - /** - * The feature id for the 'Publishing Vars' reference list. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__PUBLISHING_VARS = STATE_FUZZING_OPERATION__PUBLISHING_VARS; - - /** - * The feature id for the 'All Subscribing Vars' attribute. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__ALL_SUBSCRIBING_VARS = STATE_FUZZING_OPERATION__ALL_SUBSCRIBING_VARS; - - /** - * The feature id for the 'Subscribing Vars' reference list. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__SUBSCRIBING_VARS = STATE_FUZZING_OPERATION__SUBSCRIBING_VARS; - - /** - * The feature id for the 'From Template' reference. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__FROM_TEMPLATE = STATE_FUZZING_OPERATION__FROM_TEMPLATE; - - /** - * The feature id for the 'Containing Test' container reference. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__CONTAINING_TEST = STATE_FUZZING_OPERATION__CONTAINING_TEST; - - /** - * The feature id for the 'Recorded Timings' containment reference. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__RECORDED_TIMINGS = STATE_FUZZING_OPERATION__RECORDED_TIMINGS; - - /** - * The feature id for the 'Seed' attribute. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__SEED = STATE_FUZZING_OPERATION__SEED; - - /** - * The feature id for the 'Sequence Num In Test' attribute. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON__SEQUENCE_NUM_IN_TEST = STATE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; - - /** - * The number of structural features of the 'Shutdown State Operaton' class. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON_FEATURE_COUNT = STATE_FUZZING_OPERATION_FEATURE_COUNT + 0; - - /** - * The number of operations of the 'Shutdown State Operaton' class. - * - * - * @generated - * @ordered - */ - int SHUTDOWN_STATE_OPERATON_OPERATION_COUNT = STATE_FUZZING_OPERATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.TimeTravelStateOperatonImpl Time Travel State Operaton}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.TimeTravelStateOperatonImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getTimeTravelStateOperaton() - * @generated - */ - int TIME_TRAVEL_STATE_OPERATON = 33; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__NAME = STATE_FUZZING_OPERATION__NAME; - - /** - * The feature id for the 'Priority' attribute. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__PRIORITY = STATE_FUZZING_OPERATION__PRIORITY; - - /** - * The feature id for the 'Activation' containment reference. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__ACTIVATION = STATE_FUZZING_OPERATION__ACTIVATION; - - /** - * The feature id for the 'Variable To Affect' reference. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__VARIABLE_TO_AFFECT = STATE_FUZZING_OPERATION__VARIABLE_TO_AFFECT; - - /** - * The feature id for the 'Messages From All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__MESSAGES_FROM_ALL_COMPONENENTS = STATE_FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS; - - /** - * The feature id for the 'From Nodes' reference list. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__FROM_NODES = STATE_FUZZING_OPERATION__FROM_NODES; - - /** - * The feature id for the 'Messages To All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__MESSAGES_TO_ALL_COMPONENENTS = STATE_FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS; - - /** - * The feature id for the 'To Nodes' reference list. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__TO_NODES = STATE_FUZZING_OPERATION__TO_NODES; - - /** - * The feature id for the 'Node To Fuzz' reference. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__NODE_TO_FUZZ = STATE_FUZZING_OPERATION__NODE_TO_FUZZ; - - /** - * The feature id for the 'All Publishing Vars' attribute. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__ALL_PUBLISHING_VARS = STATE_FUZZING_OPERATION__ALL_PUBLISHING_VARS; - - /** - * The feature id for the 'Publishing Vars' reference list. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__PUBLISHING_VARS = STATE_FUZZING_OPERATION__PUBLISHING_VARS; - - /** - * The feature id for the 'All Subscribing Vars' attribute. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__ALL_SUBSCRIBING_VARS = STATE_FUZZING_OPERATION__ALL_SUBSCRIBING_VARS; - - /** - * The feature id for the 'Subscribing Vars' reference list. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__SUBSCRIBING_VARS = STATE_FUZZING_OPERATION__SUBSCRIBING_VARS; - - /** - * The feature id for the 'From Template' reference. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__FROM_TEMPLATE = STATE_FUZZING_OPERATION__FROM_TEMPLATE; - - /** - * The feature id for the 'Containing Test' container reference. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__CONTAINING_TEST = STATE_FUZZING_OPERATION__CONTAINING_TEST; - - /** - * The feature id for the 'Recorded Timings' containment reference. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__RECORDED_TIMINGS = STATE_FUZZING_OPERATION__RECORDED_TIMINGS; - - /** - * The feature id for the 'Seed' attribute. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__SEED = STATE_FUZZING_OPERATION__SEED; - - /** - * The feature id for the 'Sequence Num In Test' attribute. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__SEQUENCE_NUM_IN_TEST = STATE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; - - /** - * The feature id for the 'Time Travel Value' containment reference. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE = STATE_FUZZING_OPERATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Time Travel State Operaton' class. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON_FEATURE_COUNT = STATE_FUZZING_OPERATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Time Travel State Operaton' class. - * - * - * @generated - * @ordered - */ - int TIME_TRAVEL_STATE_OPERATON_OPERATION_COUNT = STATE_FUZZING_OPERATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ProcessKillerStateOperatonImpl Process Killer State Operaton}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ProcessKillerStateOperatonImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getProcessKillerStateOperaton() - * @generated - */ - int PROCESS_KILLER_STATE_OPERATON = 34; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__NAME = STATE_FUZZING_OPERATION__NAME; - - /** - * The feature id for the 'Priority' attribute. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__PRIORITY = STATE_FUZZING_OPERATION__PRIORITY; - - /** - * The feature id for the 'Activation' containment reference. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__ACTIVATION = STATE_FUZZING_OPERATION__ACTIVATION; - - /** - * The feature id for the 'Variable To Affect' reference. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__VARIABLE_TO_AFFECT = STATE_FUZZING_OPERATION__VARIABLE_TO_AFFECT; - - /** - * The feature id for the 'Messages From All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__MESSAGES_FROM_ALL_COMPONENENTS = STATE_FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS; - - /** - * The feature id for the 'From Nodes' reference list. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__FROM_NODES = STATE_FUZZING_OPERATION__FROM_NODES; - - /** - * The feature id for the 'Messages To All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__MESSAGES_TO_ALL_COMPONENENTS = STATE_FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS; - - /** - * The feature id for the 'To Nodes' reference list. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__TO_NODES = STATE_FUZZING_OPERATION__TO_NODES; - - /** - * The feature id for the 'Node To Fuzz' reference. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__NODE_TO_FUZZ = STATE_FUZZING_OPERATION__NODE_TO_FUZZ; - - /** - * The feature id for the 'All Publishing Vars' attribute. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__ALL_PUBLISHING_VARS = STATE_FUZZING_OPERATION__ALL_PUBLISHING_VARS; - - /** - * The feature id for the 'Publishing Vars' reference list. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__PUBLISHING_VARS = STATE_FUZZING_OPERATION__PUBLISHING_VARS; - - /** - * The feature id for the 'All Subscribing Vars' attribute. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__ALL_SUBSCRIBING_VARS = STATE_FUZZING_OPERATION__ALL_SUBSCRIBING_VARS; - - /** - * The feature id for the 'Subscribing Vars' reference list. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__SUBSCRIBING_VARS = STATE_FUZZING_OPERATION__SUBSCRIBING_VARS; - - /** - * The feature id for the 'From Template' reference. - * - * - * @generated - * @ordered - */ - int PROCESS_KILLER_STATE_OPERATON__FROM_TEMPLATE = STATE_FUZZING_OPERATION__FROM_TEMPLATE; + int NETWORK_FUZZING_OPERATION__RECORDED_TIMINGS = FUZZING_OPERATION__RECORDED_TIMINGS; /** - * The feature id for the 'Containing Test' container reference. + * The feature id for the 'Seed' attribute. * * * @generated * @ordered */ - int PROCESS_KILLER_STATE_OPERATON__CONTAINING_TEST = STATE_FUZZING_OPERATION__CONTAINING_TEST; + int NETWORK_FUZZING_OPERATION__SEED = FUZZING_OPERATION__SEED; /** - * The feature id for the 'Recorded Timings' containment reference. + * The feature id for the 'Sequence Num In Test' attribute. * * * @generated * @ordered */ - int PROCESS_KILLER_STATE_OPERATON__RECORDED_TIMINGS = STATE_FUZZING_OPERATION__RECORDED_TIMINGS; + int NETWORK_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST = FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; /** - * The feature id for the 'Seed' attribute. + * The feature id for the 'Inclusion Probability' attribute. * * * @generated * @ordered */ - int PROCESS_KILLER_STATE_OPERATON__SEED = STATE_FUZZING_OPERATION__SEED; + int NETWORK_FUZZING_OPERATION__INCLUSION_PROBABILITY = FUZZING_OPERATION__INCLUSION_PROBABILITY; /** - * The feature id for the 'Sequence Num In Test' attribute. + * The feature id for the 'Include In Timing' attribute. * * * @generated * @ordered */ - int PROCESS_KILLER_STATE_OPERATON__SEQUENCE_NUM_IN_TEST = STATE_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; + int NETWORK_FUZZING_OPERATION__INCLUDE_IN_TIMING = FUZZING_OPERATION__INCLUDE_IN_TIMING; /** - * The feature id for the 'Process Id' attribute. + * The feature id for the 'Condition Constraints' containment reference list. * * * @generated * @ordered */ - int PROCESS_KILLER_STATE_OPERATON__PROCESS_ID = STATE_FUZZING_OPERATION_FEATURE_COUNT + 0; + int NETWORK_FUZZING_OPERATION__CONDITION_CONSTRAINTS = FUZZING_OPERATION__CONDITION_CONSTRAINTS; /** - * The number of structural features of the 'Process Killer State Operaton' class. + * The number of structural features of the 'Network Fuzzing Operation' class. * * * @generated * @ordered */ - int PROCESS_KILLER_STATE_OPERATON_FEATURE_COUNT = STATE_FUZZING_OPERATION_FEATURE_COUNT + 1; + int NETWORK_FUZZING_OPERATION_FEATURE_COUNT = FUZZING_OPERATION_FEATURE_COUNT + 0; /** - * The number of operations of the 'Process Killer State Operaton' class. + * The number of operations of the 'Network Fuzzing Operation' class. * * * @generated * @ordered */ - int PROCESS_KILLER_STATE_OPERATON_OPERATION_COUNT = STATE_FUZZING_OPERATION_OPERATION_COUNT + 0; + int NETWORK_FUZZING_OPERATION_OPERATION_COUNT = FUZZING_OPERATION_OPERATION_COUNT + 0; /** * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.BlackholeNetworkOperationImpl Blackhole Network Operation}' class. @@ -4393,7 +3329,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getBlackholeNetworkOperation() * @generated */ - int BLACKHOLE_NETWORK_OPERATION = 35; + int BLACKHOLE_NETWORK_OPERATION = 24; /** * The feature id for the 'Name' attribute. @@ -4557,6 +3493,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int BLACKHOLE_NETWORK_OPERATION__SEQUENCE_NUM_IN_TEST = NETWORK_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int BLACKHOLE_NETWORK_OPERATION__INCLUSION_PROBABILITY = NETWORK_FUZZING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int BLACKHOLE_NETWORK_OPERATION__INCLUDE_IN_TIMING = NETWORK_FUZZING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int BLACKHOLE_NETWORK_OPERATION__CONDITION_CONSTRAINTS = NETWORK_FUZZING_OPERATION__CONDITION_CONSTRAINTS; + /** * The number of structural features of the 'Blackhole Network Operation' class. * @@ -4583,7 +3546,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getLatencyNetworkOperation() * @generated */ - int LATENCY_NETWORK_OPERATION = 36; + int LATENCY_NETWORK_OPERATION = 25; /** * The feature id for the 'Name' attribute. @@ -4747,6 +3710,33 @@ public interface FuzzingOperationsPackage extends EPackage { */ int LATENCY_NETWORK_OPERATION__SEQUENCE_NUM_IN_TEST = NETWORK_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; + /** + * The feature id for the 'Inclusion Probability' attribute. + * + * + * @generated + * @ordered + */ + int LATENCY_NETWORK_OPERATION__INCLUSION_PROBABILITY = NETWORK_FUZZING_OPERATION__INCLUSION_PROBABILITY; + + /** + * The feature id for the 'Include In Timing' attribute. + * + * + * @generated + * @ordered + */ + int LATENCY_NETWORK_OPERATION__INCLUDE_IN_TIMING = NETWORK_FUZZING_OPERATION__INCLUDE_IN_TIMING; + + /** + * The feature id for the 'Condition Constraints' containment reference list. + * + * + * @generated + * @ordered + */ + int LATENCY_NETWORK_OPERATION__CONDITION_CONSTRAINTS = NETWORK_FUZZING_OPERATION__CONDITION_CONSTRAINTS; + /** * The feature id for the 'Latency' containment reference. * @@ -4756,6 +3746,15 @@ public interface FuzzingOperationsPackage extends EPackage { */ int LATENCY_NETWORK_OPERATION__LATENCY = NETWORK_FUZZING_OPERATION_FEATURE_COUNT + 0; + /** + * The feature id for the 'Randomised' attribute. + * + * + * @generated + * @ordered + */ + int LATENCY_NETWORK_OPERATION__RANDOMISED = NETWORK_FUZZING_OPERATION_FEATURE_COUNT + 1; + /** * The number of structural features of the 'Latency Network Operation' class. * @@ -4763,7 +3762,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @generated * @ordered */ - int LATENCY_NETWORK_OPERATION_FEATURE_COUNT = NETWORK_FUZZING_OPERATION_FEATURE_COUNT + 1; + int LATENCY_NETWORK_OPERATION_FEATURE_COUNT = NETWORK_FUZZING_OPERATION_FEATURE_COUNT + 2; /** * The number of operations of the 'Latency Network Operation' class. @@ -4782,7 +3781,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getPacketLossNetworkOperation() * @generated */ - int PACKET_LOSS_NETWORK_OPERATION = 37; + int PACKET_LOSS_NETWORK_OPERATION = 26; /** * The feature id for the 'Name' attribute. @@ -4947,230 +3946,58 @@ public interface FuzzingOperationsPackage extends EPackage { int PACKET_LOSS_NETWORK_OPERATION__SEQUENCE_NUM_IN_TEST = NETWORK_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; /** - * The feature id for the 'Frequency' containment reference. - * - * - * @generated - * @ordered - */ - int PACKET_LOSS_NETWORK_OPERATION__FREQUENCY = NETWORK_FUZZING_OPERATION_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Packet Loss Network Operation' class. - * - * - * @generated - * @ordered - */ - int PACKET_LOSS_NETWORK_OPERATION_FEATURE_COUNT = NETWORK_FUZZING_OPERATION_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Packet Loss Network Operation' class. - * - * - * @generated - * @ordered - */ - int PACKET_LOSS_NETWORK_OPERATION_OPERATION_COUNT = NETWORK_FUZZING_OPERATION_OPERATION_COUNT + 0; - - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.MultipleMessagesNetworkOperationImpl Multiple Messages Network Operation}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.MultipleMessagesNetworkOperationImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getMultipleMessagesNetworkOperation() - * @generated - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION = 38; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__NAME = NETWORK_FUZZING_OPERATION__NAME; - - /** - * The feature id for the 'Priority' attribute. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__PRIORITY = NETWORK_FUZZING_OPERATION__PRIORITY; - - /** - * The feature id for the 'Activation' containment reference. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__ACTIVATION = NETWORK_FUZZING_OPERATION__ACTIVATION; - - /** - * The feature id for the 'Variable To Affect' reference. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__VARIABLE_TO_AFFECT = NETWORK_FUZZING_OPERATION__VARIABLE_TO_AFFECT; - - /** - * The feature id for the 'Messages From All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS = NETWORK_FUZZING_OPERATION__MESSAGES_FROM_ALL_COMPONENENTS; - - /** - * The feature id for the 'From Nodes' reference list. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__FROM_NODES = NETWORK_FUZZING_OPERATION__FROM_NODES; - - /** - * The feature id for the 'Messages To All Componenents' attribute. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__MESSAGES_TO_ALL_COMPONENENTS = NETWORK_FUZZING_OPERATION__MESSAGES_TO_ALL_COMPONENENTS; - - /** - * The feature id for the 'To Nodes' reference list. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__TO_NODES = NETWORK_FUZZING_OPERATION__TO_NODES; - - /** - * The feature id for the 'Node To Fuzz' reference. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__NODE_TO_FUZZ = NETWORK_FUZZING_OPERATION__NODE_TO_FUZZ; - - /** - * The feature id for the 'All Publishing Vars' attribute. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__ALL_PUBLISHING_VARS = NETWORK_FUZZING_OPERATION__ALL_PUBLISHING_VARS; - - /** - * The feature id for the 'Publishing Vars' reference list. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__PUBLISHING_VARS = NETWORK_FUZZING_OPERATION__PUBLISHING_VARS; - - /** - * The feature id for the 'All Subscribing Vars' attribute. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__ALL_SUBSCRIBING_VARS = NETWORK_FUZZING_OPERATION__ALL_SUBSCRIBING_VARS; - - /** - * The feature id for the 'Subscribing Vars' reference list. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__SUBSCRIBING_VARS = NETWORK_FUZZING_OPERATION__SUBSCRIBING_VARS; - - /** - * The feature id for the 'From Template' reference. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__FROM_TEMPLATE = NETWORK_FUZZING_OPERATION__FROM_TEMPLATE; - - /** - * The feature id for the 'Containing Test' container reference. - * - * - * @generated - * @ordered - */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__CONTAINING_TEST = NETWORK_FUZZING_OPERATION__CONTAINING_TEST; - - /** - * The feature id for the 'Recorded Timings' containment reference. + * The feature id for the 'Inclusion Probability' attribute. * * * @generated * @ordered */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__RECORDED_TIMINGS = NETWORK_FUZZING_OPERATION__RECORDED_TIMINGS; + int PACKET_LOSS_NETWORK_OPERATION__INCLUSION_PROBABILITY = NETWORK_FUZZING_OPERATION__INCLUSION_PROBABILITY; /** - * The feature id for the 'Seed' attribute. + * The feature id for the 'Include In Timing' attribute. * * * @generated * @ordered */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__SEED = NETWORK_FUZZING_OPERATION__SEED; + int PACKET_LOSS_NETWORK_OPERATION__INCLUDE_IN_TIMING = NETWORK_FUZZING_OPERATION__INCLUDE_IN_TIMING; /** - * The feature id for the 'Sequence Num In Test' attribute. + * The feature id for the 'Condition Constraints' containment reference list. * * * @generated * @ordered */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__SEQUENCE_NUM_IN_TEST = NETWORK_FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST; + int PACKET_LOSS_NETWORK_OPERATION__CONDITION_CONSTRAINTS = NETWORK_FUZZING_OPERATION__CONDITION_CONSTRAINTS; /** - * The feature id for the 'How Many Clones' containment reference. + * The feature id for the 'Frequency' containment reference. * * * @generated * @ordered */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES = NETWORK_FUZZING_OPERATION_FEATURE_COUNT + 0; + int PACKET_LOSS_NETWORK_OPERATION__FREQUENCY = NETWORK_FUZZING_OPERATION_FEATURE_COUNT + 0; /** - * The number of structural features of the 'Multiple Messages Network Operation' class. + * The number of structural features of the 'Packet Loss Network Operation' class. * * * @generated * @ordered */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION_FEATURE_COUNT = NETWORK_FUZZING_OPERATION_FEATURE_COUNT + 1; + int PACKET_LOSS_NETWORK_OPERATION_FEATURE_COUNT = NETWORK_FUZZING_OPERATION_FEATURE_COUNT + 1; /** - * The number of operations of the 'Multiple Messages Network Operation' class. + * The number of operations of the 'Packet Loss Network Operation' class. * * * @generated * @ordered */ - int MULTIPLE_MESSAGES_NETWORK_OPERATION_OPERATION_COUNT = NETWORK_FUZZING_OPERATION_OPERATION_COUNT + 0; + int PACKET_LOSS_NETWORK_OPERATION_OPERATION_COUNT = NETWORK_FUZZING_OPERATION_OPERATION_COUNT + 0; /** * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.OfflineOperationTime Offline Operation Time}' enum. @@ -5180,7 +4007,7 @@ public interface FuzzingOperationsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getOfflineOperationTime() * @generated */ - int OFFLINE_OPERATION_TIME = 39; + int OFFLINE_OPERATION_TIME = 27; /** @@ -5391,6 +4218,39 @@ public interface FuzzingOperationsPackage extends EPackage { */ EAttribute getFuzzingOperation_SequenceNumInTest(); + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getInclusionProbability Inclusion Probability}'. + * + * + * @return the meta object for the attribute 'Inclusion Probability'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getInclusionProbability() + * @see #getFuzzingOperation() + * @generated + */ + EAttribute getFuzzingOperation_InclusionProbability(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#isIncludeInTiming Include In Timing}'. + * + * + * @return the meta object for the attribute 'Include In Timing'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#isIncludeInTiming() + * @see #getFuzzingOperation() + * @generated + */ + EAttribute getFuzzingOperation_IncludeInTiming(); + + /** + * Returns the meta object for the containment reference list '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getConditionConstraints Condition Constraints}'. + * + * + * @return the meta object for the containment reference list 'Condition Constraints'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation#getConditionConstraints() + * @see #getFuzzingOperation() + * @generated + */ + EReference getFuzzingOperation_ConditionConstraints(); + /** * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.OfflineFuzzingOperation Offline Fuzzing Operation}'. * @@ -5426,12 +4286,23 @@ public interface FuzzingOperationsPackage extends EPackage { * Returns the meta object for the containment reference list '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomFuzzingOperation#getParams Params}'. * * - * @return the meta object for the containment reference list 'Params'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomFuzzingOperation#getParams() + * @return the meta object for the containment reference list 'Params'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomFuzzingOperation#getParams() + * @see #getCustomFuzzingOperation() + * @generated + */ + EReference getCustomFuzzingOperation_Params(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomFuzzingOperation#getCustomProcessClass Custom Process Class}'. + * + * + * @return the meta object for the attribute 'Custom Process Class'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomFuzzingOperation#getCustomProcessClass() * @see #getCustomFuzzingOperation() * @generated */ - EReference getCustomFuzzingOperation_Params(); + EAttribute getCustomFuzzingOperation_CustomProcessClass(); /** * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomOfflineFuzzingOperation Custom Offline Fuzzing Operation}'. @@ -5919,26 +4790,6 @@ public interface FuzzingOperationsPackage extends EPackage { */ EAttribute getExternalResourceSet_Location(); - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ResourceFuzzingOperation Resource Fuzzing Operation}'. - * - * - * @return the meta object for class 'Resource Fuzzing Operation'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ResourceFuzzingOperation - * @generated - */ - EClass getResourceFuzzingOperation(); - - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.StateFuzzingOperation State Fuzzing Operation}'. - * - * - * @return the meta object for class 'State Fuzzing Operation'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.StateFuzzingOperation - * @generated - */ - EClass getStateFuzzingOperation(); - /** * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.NetworkFuzzingOperation Network Fuzzing Operation}'. * @@ -5949,151 +4800,6 @@ public interface FuzzingOperationsPackage extends EPackage { */ EClass getNetworkFuzzingOperation(); - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadResourceOperation Load Resource Operation}'. - * - * - * @return the meta object for class 'Load Resource Operation'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadResourceOperation - * @generated - */ - EClass getLoadResourceOperation(); - - /** - * Returns the meta object for the reference '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadResourceOperation#getLoadType Load Type}'. - * - * - * @return the meta object for the reference 'Load Type'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadResourceOperation#getLoadType() - * @see #getLoadResourceOperation() - * @generated - */ - EReference getLoadResourceOperation_LoadType(); - - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType Load Type}'. - * - * - * @return the meta object for class 'Load Type'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType - * @generated - */ - EClass getLoadType(); - - /** - * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType#getMin Min}'. - * - * - * @return the meta object for the attribute 'Min'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType#getMin() - * @see #getLoadType() - * @generated - */ - EAttribute getLoadType_Min(); - - /** - * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType#getMax Max}'. - * - * - * @return the meta object for the attribute 'Max'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType#getMax() - * @see #getLoadType() - * @generated - */ - EAttribute getLoadType_Max(); - - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CPULoadType CPU Load Type}'. - * - * - * @return the meta object for class 'CPU Load Type'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CPULoadType - * @generated - */ - EClass getCPULoadType(); - - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MemoryLoadType Memory Load Type}'. - * - * - * @return the meta object for class 'Memory Load Type'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MemoryLoadType - * @generated - */ - EClass getMemoryLoadType(); - - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.IOLoadType IO Load Type}'. - * - * - * @return the meta object for class 'IO Load Type'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.IOLoadType - * @generated - */ - EClass getIOLoadType(); - - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.DiskLoadType Disk Load Type}'. - * - * - * @return the meta object for class 'Disk Load Type'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.DiskLoadType - * @generated - */ - EClass getDiskLoadType(); - - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ShutdownStateOperaton Shutdown State Operaton}'. - * - * - * @return the meta object for class 'Shutdown State Operaton'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ShutdownStateOperaton - * @generated - */ - EClass getShutdownStateOperaton(); - - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.TimeTravelStateOperaton Time Travel State Operaton}'. - * - * - * @return the meta object for class 'Time Travel State Operaton'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.TimeTravelStateOperaton - * @generated - */ - EClass getTimeTravelStateOperaton(); - - /** - * Returns the meta object for the containment reference '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.TimeTravelStateOperaton#getTimeTravelValue Time Travel Value}'. - * - * - * @return the meta object for the containment reference 'Time Travel Value'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.TimeTravelStateOperaton#getTimeTravelValue() - * @see #getTimeTravelStateOperaton() - * @generated - */ - EReference getTimeTravelStateOperaton_TimeTravelValue(); - - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ProcessKillerStateOperaton Process Killer State Operaton}'. - * - * - * @return the meta object for class 'Process Killer State Operaton'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ProcessKillerStateOperaton - * @generated - */ - EClass getProcessKillerStateOperaton(); - - /** - * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ProcessKillerStateOperaton#getProcessId Process Id}'. - * - * - * @return the meta object for the attribute 'Process Id'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ProcessKillerStateOperaton#getProcessId() - * @see #getProcessKillerStateOperaton() - * @generated - */ - EAttribute getProcessKillerStateOperaton_ProcessId(); - /** * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.BlackholeNetworkOperation Blackhole Network Operation}'. * @@ -6125,6 +4831,17 @@ public interface FuzzingOperationsPackage extends EPackage { */ EReference getLatencyNetworkOperation_Latency(); + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LatencyNetworkOperation#isRandomised Randomised}'. + * + * + * @return the meta object for the attribute 'Randomised'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LatencyNetworkOperation#isRandomised() + * @see #getLatencyNetworkOperation() + * @generated + */ + EAttribute getLatencyNetworkOperation_Randomised(); + /** * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.PacketLossNetworkOperation Packet Loss Network Operation}'. * @@ -6146,27 +4863,6 @@ public interface FuzzingOperationsPackage extends EPackage { */ EReference getPacketLossNetworkOperation_Frequency(); - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MultipleMessagesNetworkOperation Multiple Messages Network Operation}'. - * - * - * @return the meta object for class 'Multiple Messages Network Operation'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MultipleMessagesNetworkOperation - * @generated - */ - EClass getMultipleMessagesNetworkOperation(); - - /** - * Returns the meta object for the containment reference '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MultipleMessagesNetworkOperation#getHowManyClones How Many Clones}'. - * - * - * @return the meta object for the containment reference 'How Many Clones'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MultipleMessagesNetworkOperation#getHowManyClones() - * @see #getMultipleMessagesNetworkOperation() - * @generated - */ - EReference getMultipleMessagesNetworkOperation_HowManyClones(); - /** * Returns the meta object for enum '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.OfflineOperationTime Offline Operation Time}'. * @@ -6354,6 +5050,30 @@ interface Literals { */ EAttribute FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST = eINSTANCE.getFuzzingOperation_SequenceNumInTest(); + /** + * The meta object literal for the 'Inclusion Probability' attribute feature. + * + * + * @generated + */ + EAttribute FUZZING_OPERATION__INCLUSION_PROBABILITY = eINSTANCE.getFuzzingOperation_InclusionProbability(); + + /** + * The meta object literal for the 'Include In Timing' attribute feature. + * + * + * @generated + */ + EAttribute FUZZING_OPERATION__INCLUDE_IN_TIMING = eINSTANCE.getFuzzingOperation_IncludeInTiming(); + + /** + * The meta object literal for the 'Condition Constraints' containment reference list feature. + * + * + * @generated + */ + EReference FUZZING_OPERATION__CONDITION_CONSTRAINTS = eINSTANCE.getFuzzingOperation_ConditionConstraints(); + /** * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.OfflineFuzzingOperationImpl Offline Fuzzing Operation}' class. * @@ -6390,6 +5110,14 @@ interface Literals { */ EReference CUSTOM_FUZZING_OPERATION__PARAMS = eINSTANCE.getCustomFuzzingOperation_Params(); + /** + * The meta object literal for the 'Custom Process Class' attribute feature. + * + * + * @generated + */ + EAttribute CUSTOM_FUZZING_OPERATION__CUSTOM_PROCESS_CLASS = eINSTANCE.getCustomFuzzingOperation_CustomProcessClass(); + /** * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.CustomOfflineFuzzingOperationImpl Custom Offline Fuzzing Operation}' class. * @@ -6798,26 +5526,6 @@ interface Literals { */ EAttribute EXTERNAL_RESOURCE_SET__LOCATION = eINSTANCE.getExternalResourceSet_Location(); - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ResourceFuzzingOperationImpl Resource Fuzzing Operation}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ResourceFuzzingOperationImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getResourceFuzzingOperation() - * @generated - */ - EClass RESOURCE_FUZZING_OPERATION = eINSTANCE.getResourceFuzzingOperation(); - - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.StateFuzzingOperationImpl State Fuzzing Operation}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.StateFuzzingOperationImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getStateFuzzingOperation() - * @generated - */ - EClass STATE_FUZZING_OPERATION = eINSTANCE.getStateFuzzingOperation(); - /** * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.NetworkFuzzingOperationImpl Network Fuzzing Operation}' class. * @@ -6828,136 +5536,6 @@ interface Literals { */ EClass NETWORK_FUZZING_OPERATION = eINSTANCE.getNetworkFuzzingOperation(); - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadResourceOperationImpl Load Resource Operation}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadResourceOperationImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getLoadResourceOperation() - * @generated - */ - EClass LOAD_RESOURCE_OPERATION = eINSTANCE.getLoadResourceOperation(); - - /** - * The meta object literal for the 'Load Type' reference feature. - * - * - * @generated - */ - EReference LOAD_RESOURCE_OPERATION__LOAD_TYPE = eINSTANCE.getLoadResourceOperation_LoadType(); - - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadTypeImpl Load Type}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadTypeImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getLoadType() - * @generated - */ - EClass LOAD_TYPE = eINSTANCE.getLoadType(); - - /** - * The meta object literal for the 'Min' attribute feature. - * - * - * @generated - */ - EAttribute LOAD_TYPE__MIN = eINSTANCE.getLoadType_Min(); - - /** - * The meta object literal for the 'Max' attribute feature. - * - * - * @generated - */ - EAttribute LOAD_TYPE__MAX = eINSTANCE.getLoadType_Max(); - - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.CPULoadTypeImpl CPU Load Type}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.CPULoadTypeImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getCPULoadType() - * @generated - */ - EClass CPU_LOAD_TYPE = eINSTANCE.getCPULoadType(); - - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.MemoryLoadTypeImpl Memory Load Type}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.MemoryLoadTypeImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getMemoryLoadType() - * @generated - */ - EClass MEMORY_LOAD_TYPE = eINSTANCE.getMemoryLoadType(); - - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.IOLoadTypeImpl IO Load Type}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.IOLoadTypeImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getIOLoadType() - * @generated - */ - EClass IO_LOAD_TYPE = eINSTANCE.getIOLoadType(); - - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.DiskLoadTypeImpl Disk Load Type}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.DiskLoadTypeImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getDiskLoadType() - * @generated - */ - EClass DISK_LOAD_TYPE = eINSTANCE.getDiskLoadType(); - - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ShutdownStateOperatonImpl Shutdown State Operaton}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ShutdownStateOperatonImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getShutdownStateOperaton() - * @generated - */ - EClass SHUTDOWN_STATE_OPERATON = eINSTANCE.getShutdownStateOperaton(); - - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.TimeTravelStateOperatonImpl Time Travel State Operaton}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.TimeTravelStateOperatonImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getTimeTravelStateOperaton() - * @generated - */ - EClass TIME_TRAVEL_STATE_OPERATON = eINSTANCE.getTimeTravelStateOperaton(); - - /** - * The meta object literal for the 'Time Travel Value' containment reference feature. - * - * - * @generated - */ - EReference TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE = eINSTANCE.getTimeTravelStateOperaton_TimeTravelValue(); - - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ProcessKillerStateOperatonImpl Process Killer State Operaton}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ProcessKillerStateOperatonImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getProcessKillerStateOperaton() - * @generated - */ - EClass PROCESS_KILLER_STATE_OPERATON = eINSTANCE.getProcessKillerStateOperaton(); - - /** - * The meta object literal for the 'Process Id' attribute feature. - * - * - * @generated - */ - EAttribute PROCESS_KILLER_STATE_OPERATON__PROCESS_ID = eINSTANCE.getProcessKillerStateOperaton_ProcessId(); - /** * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.BlackholeNetworkOperationImpl Blackhole Network Operation}' class. * @@ -6987,40 +5565,30 @@ interface Literals { EReference LATENCY_NETWORK_OPERATION__LATENCY = eINSTANCE.getLatencyNetworkOperation_Latency(); /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.PacketLossNetworkOperationImpl Packet Loss Network Operation}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.PacketLossNetworkOperationImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getPacketLossNetworkOperation() - * @generated - */ - EClass PACKET_LOSS_NETWORK_OPERATION = eINSTANCE.getPacketLossNetworkOperation(); - - /** - * The meta object literal for the 'Frequency' containment reference feature. + * The meta object literal for the 'Randomised' attribute feature. * * * @generated */ - EReference PACKET_LOSS_NETWORK_OPERATION__FREQUENCY = eINSTANCE.getPacketLossNetworkOperation_Frequency(); + EAttribute LATENCY_NETWORK_OPERATION__RANDOMISED = eINSTANCE.getLatencyNetworkOperation_Randomised(); /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.MultipleMessagesNetworkOperationImpl Multiple Messages Network Operation}' class. + * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.PacketLossNetworkOperationImpl Packet Loss Network Operation}' class. * * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.MultipleMessagesNetworkOperationImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getMultipleMessagesNetworkOperation() + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.PacketLossNetworkOperationImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl#getPacketLossNetworkOperation() * @generated */ - EClass MULTIPLE_MESSAGES_NETWORK_OPERATION = eINSTANCE.getMultipleMessagesNetworkOperation(); + EClass PACKET_LOSS_NETWORK_OPERATION = eINSTANCE.getPacketLossNetworkOperation(); /** - * The meta object literal for the 'How Many Clones' containment reference feature. + * The meta object literal for the 'Frequency' containment reference feature. * * * @generated */ - EReference MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES = eINSTANCE.getMultipleMessagesNetworkOperation_HowManyClones(); + EReference PACKET_LOSS_NETWORK_OPERATION__FREQUENCY = eINSTANCE.getPacketLossNetworkOperation_Frequency(); /** * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.OfflineOperationTime Offline Operation Time}' enum. diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/LatencyNetworkOperation.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/LatencyNetworkOperation.java index 9710406b..778a544f 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/LatencyNetworkOperation.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/LatencyNetworkOperation.java @@ -13,6 +13,7 @@ *

    *
      *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LatencyNetworkOperation#getLatency Latency}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LatencyNetworkOperation#isRandomised Randomised}
    • *
    * * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage#getLatencyNetworkOperation() @@ -42,4 +43,27 @@ public interface LatencyNetworkOperation extends NetworkFuzzingOperation { */ void setLatency(DoubleRange value); + /** + * Returns the value of the 'Randomised' attribute. + * The default value is "false". + * + * + * @return the value of the 'Randomised' attribute. + * @see #setRandomised(boolean) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage#getLatencyNetworkOperation_Randomised() + * @model default="false" + * @generated + */ + boolean isRandomised(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LatencyNetworkOperation#isRandomised Randomised}' attribute. + * + * + * @param value the new value of the 'Randomised' attribute. + * @see #isRandomised() + * @generated + */ + void setRandomised(boolean value); + } // LatencyNetworkOperation diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/CPULoadTypeImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/CPULoadTypeImpl.java deleted file mode 100644 index d24459d7..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/CPULoadTypeImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.ecore.EClass; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CPULoadType; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; - -/** - * - * An implementation of the model object 'CPU Load Type'. - * - * - * @generated - */ -public class CPULoadTypeImpl extends LoadTypeImpl implements CPULoadType { - /** - * - * - * @generated - */ - protected CPULoadTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.CPU_LOAD_TYPE; - } - -} //CPULoadTypeImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/CustomFuzzingOperationImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/CustomFuzzingOperationImpl.java index b4330f50..444717c8 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/CustomFuzzingOperationImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/CustomFuzzingOperationImpl.java @@ -3,11 +3,13 @@ package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomFuzzingOperation; @@ -23,6 +25,7 @@ *

    *
      *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.CustomFuzzingOperationImpl#getParams Params}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.CustomFuzzingOperationImpl#getCustomProcessClass Custom Process Class}
    • *
    * * @generated @@ -38,6 +41,25 @@ public class CustomFuzzingOperationImpl extends FuzzingOperationImpl implements */ protected EList params; + /** + * The default value of the '{@link #getCustomProcessClass() Custom Process Class}' attribute. + * + * + * @see #getCustomProcessClass() + * @generated + * @ordered + */ + protected static final String CUSTOM_PROCESS_CLASS_EDEFAULT = null; + /** + * The cached value of the '{@link #getCustomProcessClass() Custom Process Class}' attribute. + * + * + * @see #getCustomProcessClass() + * @generated + * @ordered + */ + protected String customProcessClass = CUSTOM_PROCESS_CLASS_EDEFAULT; + /** * * @@ -69,6 +91,27 @@ public EList getParams() { return params; } + /** + * + * + * @generated + */ + public String getCustomProcessClass() { + return customProcessClass; + } + + /** + * + * + * @generated + */ + public void setCustomProcessClass(String newCustomProcessClass) { + String oldCustomProcessClass = customProcessClass; + customProcessClass = newCustomProcessClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.CUSTOM_FUZZING_OPERATION__CUSTOM_PROCESS_CLASS, oldCustomProcessClass, customProcessClass)); + } + /** * * @@ -93,6 +136,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case FuzzingOperationsPackage.CUSTOM_FUZZING_OPERATION__PARAMS: return getParams(); + case FuzzingOperationsPackage.CUSTOM_FUZZING_OPERATION__CUSTOM_PROCESS_CLASS: + return getCustomProcessClass(); } return super.eGet(featureID, resolve, coreType); } @@ -110,6 +155,9 @@ public void eSet(int featureID, Object newValue) { getParams().clear(); getParams().addAll((Collection)newValue); return; + case FuzzingOperationsPackage.CUSTOM_FUZZING_OPERATION__CUSTOM_PROCESS_CLASS: + setCustomProcessClass((String)newValue); + return; } super.eSet(featureID, newValue); } @@ -125,6 +173,9 @@ public void eUnset(int featureID) { case FuzzingOperationsPackage.CUSTOM_FUZZING_OPERATION__PARAMS: getParams().clear(); return; + case FuzzingOperationsPackage.CUSTOM_FUZZING_OPERATION__CUSTOM_PROCESS_CLASS: + setCustomProcessClass(CUSTOM_PROCESS_CLASS_EDEFAULT); + return; } super.eUnset(featureID); } @@ -139,8 +190,26 @@ public boolean eIsSet(int featureID) { switch (featureID) { case FuzzingOperationsPackage.CUSTOM_FUZZING_OPERATION__PARAMS: return params != null && !params.isEmpty(); + case FuzzingOperationsPackage.CUSTOM_FUZZING_OPERATION__CUSTOM_PROCESS_CLASS: + return CUSTOM_PROCESS_CLASS_EDEFAULT == null ? customProcessClass != null : !CUSTOM_PROCESS_CLASS_EDEFAULT.equals(customProcessClass); } return super.eIsSet(featureID); } + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (customProcessClass: "); + result.append(customProcessClass); + result.append(')'); + return result.toString(); + } + } //CustomFuzzingOperationImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/DiskLoadTypeImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/DiskLoadTypeImpl.java deleted file mode 100644 index 52b7e485..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/DiskLoadTypeImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.ecore.EClass; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.DiskLoadType; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; - -/** - * - * An implementation of the model object 'Disk Load Type'. - * - * - * @generated - */ -public class DiskLoadTypeImpl extends LoadTypeImpl implements DiskLoadType { - /** - * - * - * @generated - */ - protected DiskLoadTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.DISK_LOAD_TYPE; - } - -} //DiskLoadTypeImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationImpl.java index a2e94aeb..7ec14cd0 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationImpl.java @@ -15,8 +15,10 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.Activation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FixedTimeActivation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation; @@ -25,6 +27,7 @@ import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.Node; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.Variable; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionConstraint; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Test; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage; @@ -54,6 +57,9 @@ *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationImpl#getRecordedTimings Recorded Timings}
  • *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationImpl#getSeed Seed}
  • *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationImpl#getSequenceNumInTest Sequence Num In Test}
  • + *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationImpl#getInclusionProbability Inclusion Probability}
  • + *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationImpl#isIncludeInTiming Include In Timing}
  • + *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationImpl#getConditionConstraints Condition Constraints}
  • * * * @generated @@ -277,7 +283,7 @@ public abstract class FuzzingOperationImpl extends MinimalEObjectImpl.Container * @generated * @ordered */ - protected static final int SEED_EDEFAULT = 0; + protected static final long SEED_EDEFAULT = 0L; /** * The cached value of the '{@link #getSeed() Seed}' attribute. @@ -287,7 +293,7 @@ public abstract class FuzzingOperationImpl extends MinimalEObjectImpl.Container * @generated * @ordered */ - protected int seed = SEED_EDEFAULT; + protected long seed = SEED_EDEFAULT; /** * The default value of the '{@link #getSequenceNumInTest() Sequence Num In Test}' attribute. @@ -309,6 +315,56 @@ public abstract class FuzzingOperationImpl extends MinimalEObjectImpl.Container */ protected int sequenceNumInTest = SEQUENCE_NUM_IN_TEST_EDEFAULT; + /** + * The default value of the '{@link #getInclusionProbability() Inclusion Probability}' attribute. + * + * + * @see #getInclusionProbability() + * @generated + * @ordered + */ + protected static final double INCLUSION_PROBABILITY_EDEFAULT = 1.0; + + /** + * The cached value of the '{@link #getInclusionProbability() Inclusion Probability}' attribute. + * + * + * @see #getInclusionProbability() + * @generated + * @ordered + */ + protected double inclusionProbability = INCLUSION_PROBABILITY_EDEFAULT; + + /** + * The default value of the '{@link #isIncludeInTiming() Include In Timing}' attribute. + * + * + * @see #isIncludeInTiming() + * @generated + * @ordered + */ + protected static final boolean INCLUDE_IN_TIMING_EDEFAULT = true; + + /** + * The cached value of the '{@link #isIncludeInTiming() Include In Timing}' attribute. + * + * + * @see #isIncludeInTiming() + * @generated + * @ordered + */ + protected boolean includeInTiming = INCLUDE_IN_TIMING_EDEFAULT; + + /** + * The cached value of the '{@link #getConditionConstraints() Condition Constraints}' containment reference list. + * + * + * @see #getConditionConstraints() + * @generated + * @ordered + */ + protected EList conditionConstraints; + /** * * @@ -717,7 +773,7 @@ else if (eNotificationRequired()) * * @generated */ - public int getSeed() { + public long getSeed() { return seed; } @@ -726,8 +782,8 @@ public int getSeed() { * * @generated */ - public void setSeed(int newSeed) { - int oldSeed = seed; + public void setSeed(long newSeed) { + long oldSeed = seed; seed = newSeed; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.FUZZING_OPERATION__SEED, oldSeed, seed)); @@ -754,6 +810,60 @@ public void setSequenceNumInTest(int newSequenceNumInTest) { eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST, oldSequenceNumInTest, sequenceNumInTest)); } + /** + * + * + * @generated + */ + public double getInclusionProbability() { + return inclusionProbability; + } + + /** + * + * + * @generated + */ + public void setInclusionProbability(double newInclusionProbability) { + double oldInclusionProbability = inclusionProbability; + inclusionProbability = newInclusionProbability; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.FUZZING_OPERATION__INCLUSION_PROBABILITY, oldInclusionProbability, inclusionProbability)); + } + + /** + * + * + * @generated + */ + public boolean isIncludeInTiming() { + return includeInTiming; + } + + /** + * + * + * @generated + */ + public void setIncludeInTiming(boolean newIncludeInTiming) { + boolean oldIncludeInTiming = includeInTiming; + includeInTiming = newIncludeInTiming; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.FUZZING_OPERATION__INCLUDE_IN_TIMING, oldIncludeInTiming, includeInTiming)); + } + + /** + * + * + * @generated + */ + public EList getConditionConstraints() { + if (conditionConstraints == null) { + conditionConstraints = new EObjectContainmentEList(ConditionConstraint.class, this, FuzzingOperationsPackage.FUZZING_OPERATION__CONDITION_CONSTRAINTS); + } + return conditionConstraints; + } + /** * * @@ -784,6 +894,8 @@ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, return eBasicSetContainer(null, FuzzingOperationsPackage.FUZZING_OPERATION__CONTAINING_TEST, msgs); case FuzzingOperationsPackage.FUZZING_OPERATION__RECORDED_TIMINGS: return basicSetRecordedTimings(null, msgs); + case FuzzingOperationsPackage.FUZZING_OPERATION__CONDITION_CONSTRAINTS: + return ((InternalEList)getConditionConstraints()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } @@ -849,6 +961,12 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { return getSeed(); case FuzzingOperationsPackage.FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST: return getSequenceNumInTest(); + case FuzzingOperationsPackage.FUZZING_OPERATION__INCLUSION_PROBABILITY: + return getInclusionProbability(); + case FuzzingOperationsPackage.FUZZING_OPERATION__INCLUDE_IN_TIMING: + return isIncludeInTiming(); + case FuzzingOperationsPackage.FUZZING_OPERATION__CONDITION_CONSTRAINTS: + return getConditionConstraints(); } return super.eGet(featureID, resolve, coreType); } @@ -912,11 +1030,21 @@ public void eSet(int featureID, Object newValue) { setRecordedTimings((FixedTimeActivation)newValue); return; case FuzzingOperationsPackage.FUZZING_OPERATION__SEED: - setSeed((Integer)newValue); + setSeed((Long)newValue); return; case FuzzingOperationsPackage.FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST: setSequenceNumInTest((Integer)newValue); return; + case FuzzingOperationsPackage.FUZZING_OPERATION__INCLUSION_PROBABILITY: + setInclusionProbability((Double)newValue); + return; + case FuzzingOperationsPackage.FUZZING_OPERATION__INCLUDE_IN_TIMING: + setIncludeInTiming((Boolean)newValue); + return; + case FuzzingOperationsPackage.FUZZING_OPERATION__CONDITION_CONSTRAINTS: + getConditionConstraints().clear(); + getConditionConstraints().addAll((Collection)newValue); + return; } super.eSet(featureID, newValue); } @@ -980,6 +1108,15 @@ public void eUnset(int featureID) { case FuzzingOperationsPackage.FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST: setSequenceNumInTest(SEQUENCE_NUM_IN_TEST_EDEFAULT); return; + case FuzzingOperationsPackage.FUZZING_OPERATION__INCLUSION_PROBABILITY: + setInclusionProbability(INCLUSION_PROBABILITY_EDEFAULT); + return; + case FuzzingOperationsPackage.FUZZING_OPERATION__INCLUDE_IN_TIMING: + setIncludeInTiming(INCLUDE_IN_TIMING_EDEFAULT); + return; + case FuzzingOperationsPackage.FUZZING_OPERATION__CONDITION_CONSTRAINTS: + getConditionConstraints().clear(); + return; } super.eUnset(featureID); } @@ -1028,6 +1165,12 @@ public boolean eIsSet(int featureID) { return seed != SEED_EDEFAULT; case FuzzingOperationsPackage.FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST: return sequenceNumInTest != SEQUENCE_NUM_IN_TEST_EDEFAULT; + case FuzzingOperationsPackage.FUZZING_OPERATION__INCLUSION_PROBABILITY: + return inclusionProbability != INCLUSION_PROBABILITY_EDEFAULT; + case FuzzingOperationsPackage.FUZZING_OPERATION__INCLUDE_IN_TIMING: + return includeInTiming != INCLUDE_IN_TIMING_EDEFAULT; + case FuzzingOperationsPackage.FUZZING_OPERATION__CONDITION_CONSTRAINTS: + return conditionConstraints != null && !conditionConstraints.isEmpty(); } return super.eIsSet(featureID); } @@ -1058,6 +1201,10 @@ public String toString() { result.append(seed); result.append(", sequenceNumInTest: "); result.append(sequenceNumInTest); + result.append(", inclusionProbability: "); + result.append(inclusionProbability); + result.append(", includeInTiming: "); + result.append(includeInTiming); result.append(')'); return result.toString(); } diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationsFactoryImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationsFactoryImpl.java index a9501ca1..50ccc9a6 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationsFactoryImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationsFactoryImpl.java @@ -77,22 +77,10 @@ public EObject create(EClass eClass) { case FuzzingOperationsPackage.POINT_RANGE: return createPointRange(); case FuzzingOperationsPackage.STRING_SET: return createStringSet(); case FuzzingOperationsPackage.EXTERNAL_RESOURCE_SET: return createExternalResourceSet(); - case FuzzingOperationsPackage.RESOURCE_FUZZING_OPERATION: return createResourceFuzzingOperation(); - case FuzzingOperationsPackage.STATE_FUZZING_OPERATION: return createStateFuzzingOperation(); case FuzzingOperationsPackage.NETWORK_FUZZING_OPERATION: return createNetworkFuzzingOperation(); - case FuzzingOperationsPackage.LOAD_RESOURCE_OPERATION: return createLoadResourceOperation(); - case FuzzingOperationsPackage.LOAD_TYPE: return createLoadType(); - case FuzzingOperationsPackage.CPU_LOAD_TYPE: return createCPULoadType(); - case FuzzingOperationsPackage.MEMORY_LOAD_TYPE: return createMemoryLoadType(); - case FuzzingOperationsPackage.IO_LOAD_TYPE: return createIOLoadType(); - case FuzzingOperationsPackage.DISK_LOAD_TYPE: return createDiskLoadType(); - case FuzzingOperationsPackage.SHUTDOWN_STATE_OPERATON: return createShutdownStateOperaton(); - case FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON: return createTimeTravelStateOperaton(); - case FuzzingOperationsPackage.PROCESS_KILLER_STATE_OPERATON: return createProcessKillerStateOperaton(); case FuzzingOperationsPackage.BLACKHOLE_NETWORK_OPERATION: return createBlackholeNetworkOperation(); case FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION: return createLatencyNetworkOperation(); case FuzzingOperationsPackage.PACKET_LOSS_NETWORK_OPERATION: return createPacketLossNetworkOperation(); - case FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION: return createMultipleMessagesNetworkOperation(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } @@ -328,26 +316,6 @@ public ExternalResourceSet createExternalResourceSet() { return externalResourceSet; } - /** - * - * - * @generated - */ - public ResourceFuzzingOperation createResourceFuzzingOperation() { - ResourceFuzzingOperationImpl resourceFuzzingOperation = new ResourceFuzzingOperationImpl(); - return resourceFuzzingOperation; - } - - /** - * - * - * @generated - */ - public StateFuzzingOperation createStateFuzzingOperation() { - StateFuzzingOperationImpl stateFuzzingOperation = new StateFuzzingOperationImpl(); - return stateFuzzingOperation; - } - /** * * @@ -358,96 +326,6 @@ public NetworkFuzzingOperation createNetworkFuzzingOperation() { return networkFuzzingOperation; } - /** - * - * - * @generated - */ - public LoadResourceOperation createLoadResourceOperation() { - LoadResourceOperationImpl loadResourceOperation = new LoadResourceOperationImpl(); - return loadResourceOperation; - } - - /** - * - * - * @generated - */ - public LoadType createLoadType() { - LoadTypeImpl loadType = new LoadTypeImpl(); - return loadType; - } - - /** - * - * - * @generated - */ - public CPULoadType createCPULoadType() { - CPULoadTypeImpl cpuLoadType = new CPULoadTypeImpl(); - return cpuLoadType; - } - - /** - * - * - * @generated - */ - public MemoryLoadType createMemoryLoadType() { - MemoryLoadTypeImpl memoryLoadType = new MemoryLoadTypeImpl(); - return memoryLoadType; - } - - /** - * - * - * @generated - */ - public IOLoadType createIOLoadType() { - IOLoadTypeImpl ioLoadType = new IOLoadTypeImpl(); - return ioLoadType; - } - - /** - * - * - * @generated - */ - public DiskLoadType createDiskLoadType() { - DiskLoadTypeImpl diskLoadType = new DiskLoadTypeImpl(); - return diskLoadType; - } - - /** - * - * - * @generated - */ - public ShutdownStateOperaton createShutdownStateOperaton() { - ShutdownStateOperatonImpl shutdownStateOperaton = new ShutdownStateOperatonImpl(); - return shutdownStateOperaton; - } - - /** - * - * - * @generated - */ - public TimeTravelStateOperaton createTimeTravelStateOperaton() { - TimeTravelStateOperatonImpl timeTravelStateOperaton = new TimeTravelStateOperatonImpl(); - return timeTravelStateOperaton; - } - - /** - * - * - * @generated - */ - public ProcessKillerStateOperaton createProcessKillerStateOperaton() { - ProcessKillerStateOperatonImpl processKillerStateOperaton = new ProcessKillerStateOperatonImpl(); - return processKillerStateOperaton; - } - /** * * @@ -478,16 +356,6 @@ public PacketLossNetworkOperation createPacketLossNetworkOperation() { return packetLossNetworkOperation; } - /** - * - * - * @generated - */ - public MultipleMessagesNetworkOperation createMultipleMessagesNetworkOperation() { - MultipleMessagesNetworkOperationImpl multipleMessagesNetworkOperation = new MultipleMessagesNetworkOperationImpl(); - return multipleMessagesNetworkOperation; - } - /** * * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationsPackageImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationsPackageImpl.java index 8b619b10..b16fe8b2 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationsPackageImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/FuzzingOperationsPackageImpl.java @@ -12,7 +12,6 @@ import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.Activation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.BlackholeNetworkOperation; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CPULoadType; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ComponentOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ComponentPropertyOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ComponentSubPropertyOperation; @@ -20,7 +19,6 @@ import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ConditionBasedTimeLimited; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomFuzzingOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CustomOfflineFuzzingOperation; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.DiskLoadType; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.DoubleRange; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ExternalResourceSet; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FixedTimeActivation; @@ -28,27 +26,17 @@ import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsFactory; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.IOLoadType; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.IntRange; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LatencyNetworkOperation; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadResourceOperation; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MemoryLoadType; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MultipleMessagesNetworkOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.NetworkFuzzingOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.OfflineFuzzingOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.OfflineOperationTime; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.PacketLossNetworkOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.Point; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.PointRange; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ProcessKillerStateOperaton; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.RandomValueFromSetOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.RandomValueFuzzingOperation; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ResourceFuzzingOperation; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ShutdownStateOperaton; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.StateFuzzingOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.StringSet; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.TimeTravelStateOperaton; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ValueRange; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ValueSet; @@ -241,20 +229,6 @@ public class FuzzingOperationsPackageImpl extends EPackageImpl implements Fuzzin */ private EClass externalResourceSetEClass = null; - /** - * - * - * @generated - */ - private EClass resourceFuzzingOperationEClass = null; - - /** - * - * - * @generated - */ - private EClass stateFuzzingOperationEClass = null; - /** * * @@ -262,69 +236,6 @@ public class FuzzingOperationsPackageImpl extends EPackageImpl implements Fuzzin */ private EClass networkFuzzingOperationEClass = null; - /** - * - * - * @generated - */ - private EClass loadResourceOperationEClass = null; - - /** - * - * - * @generated - */ - private EClass loadTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass cpuLoadTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass memoryLoadTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass ioLoadTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass diskLoadTypeEClass = null; - - /** - * - * - * @generated - */ - private EClass shutdownStateOperatonEClass = null; - - /** - * - * - * @generated - */ - private EClass timeTravelStateOperatonEClass = null; - - /** - * - * - * @generated - */ - private EClass processKillerStateOperatonEClass = null; - /** * * @@ -346,13 +257,6 @@ public class FuzzingOperationsPackageImpl extends EPackageImpl implements Fuzzin */ private EClass packetLossNetworkOperationEClass = null; - /** - * - * - * @generated - */ - private EClass multipleMessagesNetworkOperationEClass = null; - /** * * @@ -614,6 +518,33 @@ public EAttribute getFuzzingOperation_SequenceNumInTest() { return (EAttribute)fuzzingOperationEClass.getEStructuralFeatures().get(17); } + /** + * + * + * @generated + */ + public EAttribute getFuzzingOperation_InclusionProbability() { + return (EAttribute)fuzzingOperationEClass.getEStructuralFeatures().get(18); + } + + /** + * + * + * @generated + */ + public EAttribute getFuzzingOperation_IncludeInTiming() { + return (EAttribute)fuzzingOperationEClass.getEStructuralFeatures().get(19); + } + + /** + * + * + * @generated + */ + public EReference getFuzzingOperation_ConditionConstraints() { + return (EReference)fuzzingOperationEClass.getEStructuralFeatures().get(20); + } + /** * * @@ -650,6 +581,15 @@ public EReference getCustomFuzzingOperation_Params() { return (EReference)customFuzzingOperationEClass.getEStructuralFeatures().get(0); } + /** + * + * + * @generated + */ + public EAttribute getCustomFuzzingOperation_CustomProcessClass() { + return (EAttribute)customFuzzingOperationEClass.getEStructuralFeatures().get(1); + } + /** * * @@ -1064,24 +1004,6 @@ public EAttribute getExternalResourceSet_Location() { return (EAttribute)externalResourceSetEClass.getEStructuralFeatures().get(0); } - /** - * - * - * @generated - */ - public EClass getResourceFuzzingOperation() { - return resourceFuzzingOperationEClass; - } - - /** - * - * - * @generated - */ - public EClass getStateFuzzingOperation() { - return stateFuzzingOperationEClass; - } - /** * * @@ -1091,132 +1013,6 @@ public EClass getNetworkFuzzingOperation() { return networkFuzzingOperationEClass; } - /** - * - * - * @generated - */ - public EClass getLoadResourceOperation() { - return loadResourceOperationEClass; - } - - /** - * - * - * @generated - */ - public EReference getLoadResourceOperation_LoadType() { - return (EReference)loadResourceOperationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getLoadType() { - return loadTypeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getLoadType_Min() { - return (EAttribute)loadTypeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getLoadType_Max() { - return (EAttribute)loadTypeEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getCPULoadType() { - return cpuLoadTypeEClass; - } - - /** - * - * - * @generated - */ - public EClass getMemoryLoadType() { - return memoryLoadTypeEClass; - } - - /** - * - * - * @generated - */ - public EClass getIOLoadType() { - return ioLoadTypeEClass; - } - - /** - * - * - * @generated - */ - public EClass getDiskLoadType() { - return diskLoadTypeEClass; - } - - /** - * - * - * @generated - */ - public EClass getShutdownStateOperaton() { - return shutdownStateOperatonEClass; - } - - /** - * - * - * @generated - */ - public EClass getTimeTravelStateOperaton() { - return timeTravelStateOperatonEClass; - } - - /** - * - * - * @generated - */ - public EReference getTimeTravelStateOperaton_TimeTravelValue() { - return (EReference)timeTravelStateOperatonEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getProcessKillerStateOperaton() { - return processKillerStateOperatonEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getProcessKillerStateOperaton_ProcessId() { - return (EAttribute)processKillerStateOperatonEClass.getEStructuralFeatures().get(0); - } - /** * * @@ -1249,17 +1045,8 @@ public EReference getLatencyNetworkOperation_Latency() { * * @generated */ - public EClass getPacketLossNetworkOperation() { - return packetLossNetworkOperationEClass; - } - - /** - * - * - * @generated - */ - public EReference getPacketLossNetworkOperation_Frequency() { - return (EReference)packetLossNetworkOperationEClass.getEStructuralFeatures().get(0); + public EAttribute getLatencyNetworkOperation_Randomised() { + return (EAttribute)latencyNetworkOperationEClass.getEStructuralFeatures().get(1); } /** @@ -1267,8 +1054,8 @@ public EReference getPacketLossNetworkOperation_Frequency() { * * @generated */ - public EClass getMultipleMessagesNetworkOperation() { - return multipleMessagesNetworkOperationEClass; + public EClass getPacketLossNetworkOperation() { + return packetLossNetworkOperationEClass; } /** @@ -1276,8 +1063,8 @@ public EClass getMultipleMessagesNetworkOperation() { * * @generated */ - public EReference getMultipleMessagesNetworkOperation_HowManyClones() { - return (EReference)multipleMessagesNetworkOperationEClass.getEStructuralFeatures().get(0); + public EReference getPacketLossNetworkOperation_Frequency() { + return (EReference)packetLossNetworkOperationEClass.getEStructuralFeatures().get(0); } /** @@ -1336,12 +1123,16 @@ public void createPackageContents() { createEReference(fuzzingOperationEClass, FUZZING_OPERATION__RECORDED_TIMINGS); createEAttribute(fuzzingOperationEClass, FUZZING_OPERATION__SEED); createEAttribute(fuzzingOperationEClass, FUZZING_OPERATION__SEQUENCE_NUM_IN_TEST); + createEAttribute(fuzzingOperationEClass, FUZZING_OPERATION__INCLUSION_PROBABILITY); + createEAttribute(fuzzingOperationEClass, FUZZING_OPERATION__INCLUDE_IN_TIMING); + createEReference(fuzzingOperationEClass, FUZZING_OPERATION__CONDITION_CONSTRAINTS); offlineFuzzingOperationEClass = createEClass(OFFLINE_FUZZING_OPERATION); createEAttribute(offlineFuzzingOperationEClass, OFFLINE_FUZZING_OPERATION__OPERATION_TIME); customFuzzingOperationEClass = createEClass(CUSTOM_FUZZING_OPERATION); createEReference(customFuzzingOperationEClass, CUSTOM_FUZZING_OPERATION__PARAMS); + createEAttribute(customFuzzingOperationEClass, CUSTOM_FUZZING_OPERATION__CUSTOM_PROCESS_CLASS); customOfflineFuzzingOperationEClass = createEClass(CUSTOM_OFFLINE_FUZZING_OPERATION); @@ -1409,46 +1200,17 @@ public void createPackageContents() { externalResourceSetEClass = createEClass(EXTERNAL_RESOURCE_SET); createEAttribute(externalResourceSetEClass, EXTERNAL_RESOURCE_SET__LOCATION); - resourceFuzzingOperationEClass = createEClass(RESOURCE_FUZZING_OPERATION); - - stateFuzzingOperationEClass = createEClass(STATE_FUZZING_OPERATION); - networkFuzzingOperationEClass = createEClass(NETWORK_FUZZING_OPERATION); - loadResourceOperationEClass = createEClass(LOAD_RESOURCE_OPERATION); - createEReference(loadResourceOperationEClass, LOAD_RESOURCE_OPERATION__LOAD_TYPE); - - loadTypeEClass = createEClass(LOAD_TYPE); - createEAttribute(loadTypeEClass, LOAD_TYPE__MIN); - createEAttribute(loadTypeEClass, LOAD_TYPE__MAX); - - cpuLoadTypeEClass = createEClass(CPU_LOAD_TYPE); - - memoryLoadTypeEClass = createEClass(MEMORY_LOAD_TYPE); - - ioLoadTypeEClass = createEClass(IO_LOAD_TYPE); - - diskLoadTypeEClass = createEClass(DISK_LOAD_TYPE); - - shutdownStateOperatonEClass = createEClass(SHUTDOWN_STATE_OPERATON); - - timeTravelStateOperatonEClass = createEClass(TIME_TRAVEL_STATE_OPERATON); - createEReference(timeTravelStateOperatonEClass, TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE); - - processKillerStateOperatonEClass = createEClass(PROCESS_KILLER_STATE_OPERATON); - createEAttribute(processKillerStateOperatonEClass, PROCESS_KILLER_STATE_OPERATON__PROCESS_ID); - blackholeNetworkOperationEClass = createEClass(BLACKHOLE_NETWORK_OPERATION); latencyNetworkOperationEClass = createEClass(LATENCY_NETWORK_OPERATION); createEReference(latencyNetworkOperationEClass, LATENCY_NETWORK_OPERATION__LATENCY); + createEAttribute(latencyNetworkOperationEClass, LATENCY_NETWORK_OPERATION__RANDOMISED); packetLossNetworkOperationEClass = createEClass(PACKET_LOSS_NETWORK_OPERATION); createEReference(packetLossNetworkOperationEClass, PACKET_LOSS_NETWORK_OPERATION__FREQUENCY); - multipleMessagesNetworkOperationEClass = createEClass(MULTIPLE_MESSAGES_NETWORK_OPERATION); - createEReference(multipleMessagesNetworkOperationEClass, MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES); - // Create enums offlineOperationTimeEEnum = createEEnum(OFFLINE_OPERATION_TIME); } @@ -1505,21 +1267,10 @@ public void initializePackageContents() { pointRangeEClass.getESuperTypes().add(this.getValueRange()); stringSetEClass.getESuperTypes().add(this.getValueSet()); externalResourceSetEClass.getESuperTypes().add(this.getValueSet()); - resourceFuzzingOperationEClass.getESuperTypes().add(this.getFuzzingOperation()); - stateFuzzingOperationEClass.getESuperTypes().add(this.getFuzzingOperation()); networkFuzzingOperationEClass.getESuperTypes().add(this.getFuzzingOperation()); - loadResourceOperationEClass.getESuperTypes().add(this.getResourceFuzzingOperation()); - cpuLoadTypeEClass.getESuperTypes().add(this.getLoadType()); - memoryLoadTypeEClass.getESuperTypes().add(this.getLoadType()); - ioLoadTypeEClass.getESuperTypes().add(this.getLoadType()); - diskLoadTypeEClass.getESuperTypes().add(this.getLoadType()); - shutdownStateOperatonEClass.getESuperTypes().add(this.getStateFuzzingOperation()); - timeTravelStateOperatonEClass.getESuperTypes().add(this.getStateFuzzingOperation()); - processKillerStateOperatonEClass.getESuperTypes().add(this.getStateFuzzingOperation()); blackholeNetworkOperationEClass.getESuperTypes().add(this.getNetworkFuzzingOperation()); latencyNetworkOperationEClass.getESuperTypes().add(this.getNetworkFuzzingOperation()); packetLossNetworkOperationEClass.getESuperTypes().add(this.getNetworkFuzzingOperation()); - multipleMessagesNetworkOperationEClass.getESuperTypes().add(this.getNetworkFuzzingOperation()); // Initialize classes, features, and operations; add parameters initEClass(fuzzingOperationEClass, FuzzingOperation.class, "FuzzingOperation", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); @@ -1539,14 +1290,18 @@ public void initializePackageContents() { initEReference(getFuzzingOperation_FromTemplate(), this.getFuzzingOperation(), null, "fromTemplate", null, 0, 1, FuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getFuzzingOperation_ContainingTest(), theTestingPackagePackage.getTest(), theTestingPackagePackage.getTest_Operations(), "containingTest", null, 0, 1, FuzzingOperation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getFuzzingOperation_RecordedTimings(), this.getFixedTimeActivation(), null, "recordedTimings", null, 0, 1, FuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getFuzzingOperation_Seed(), ecorePackage.getEInt(), "seed", null, 0, 1, FuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFuzzingOperation_Seed(), ecorePackage.getELong(), "seed", null, 0, 1, FuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getFuzzingOperation_SequenceNumInTest(), ecorePackage.getEInt(), "sequenceNumInTest", null, 0, 1, FuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFuzzingOperation_InclusionProbability(), ecorePackage.getEDouble(), "inclusionProbability", "1", 0, 1, FuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFuzzingOperation_IncludeInTiming(), ecorePackage.getEBoolean(), "includeInTiming", "true", 0, 1, FuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getFuzzingOperation_ConditionConstraints(), theStandardGrammarPackage.getConditionConstraint(), null, "conditionConstraints", null, 0, -1, FuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(offlineFuzzingOperationEClass, OfflineFuzzingOperation.class, "OfflineFuzzingOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getOfflineFuzzingOperation_OperationTime(), this.getOfflineOperationTime(), "operationTime", null, 0, 1, OfflineFuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(customFuzzingOperationEClass, CustomFuzzingOperation.class, "CustomFuzzingOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getCustomFuzzingOperation_Params(), this.getValueSet(), null, "params", null, 0, -1, CustomFuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getCustomFuzzingOperation_CustomProcessClass(), ecorePackage.getEString(), "customProcessClass", null, 0, 1, CustomFuzzingOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(customOfflineFuzzingOperationEClass, CustomOfflineFuzzingOperation.class, "CustomOfflineFuzzingOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); @@ -1614,46 +1369,17 @@ public void initializePackageContents() { initEClass(externalResourceSetEClass, ExternalResourceSet.class, "ExternalResourceSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getExternalResourceSet_Location(), ecorePackage.getEString(), "location", null, 0, 1, ExternalResourceSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEClass(resourceFuzzingOperationEClass, ResourceFuzzingOperation.class, "ResourceFuzzingOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(stateFuzzingOperationEClass, StateFuzzingOperation.class, "StateFuzzingOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEClass(networkFuzzingOperationEClass, NetworkFuzzingOperation.class, "NetworkFuzzingOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEClass(loadResourceOperationEClass, LoadResourceOperation.class, "LoadResourceOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getLoadResourceOperation_LoadType(), this.getLoadType(), null, "loadType", null, 1, 1, LoadResourceOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(loadTypeEClass, LoadType.class, "LoadType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getLoadType_Min(), ecorePackage.getEInt(), "min", null, 0, 1, LoadType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getLoadType_Max(), ecorePackage.getEInt(), "max", null, 0, 1, LoadType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cpuLoadTypeEClass, CPULoadType.class, "CPULoadType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(memoryLoadTypeEClass, MemoryLoadType.class, "MemoryLoadType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(ioLoadTypeEClass, IOLoadType.class, "IOLoadType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(diskLoadTypeEClass, DiskLoadType.class, "DiskLoadType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(shutdownStateOperatonEClass, ShutdownStateOperaton.class, "ShutdownStateOperaton", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(timeTravelStateOperatonEClass, TimeTravelStateOperaton.class, "TimeTravelStateOperaton", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getTimeTravelStateOperaton_TimeTravelValue(), this.getDoubleRange(), null, "timeTravelValue", null, 1, 1, TimeTravelStateOperaton.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(processKillerStateOperatonEClass, ProcessKillerStateOperaton.class, "ProcessKillerStateOperaton", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getProcessKillerStateOperaton_ProcessId(), ecorePackage.getEInt(), "processId", null, 0, 1, ProcessKillerStateOperaton.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEClass(blackholeNetworkOperationEClass, BlackholeNetworkOperation.class, "BlackholeNetworkOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(latencyNetworkOperationEClass, LatencyNetworkOperation.class, "LatencyNetworkOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getLatencyNetworkOperation_Latency(), this.getDoubleRange(), null, "latency", null, 1, 1, LatencyNetworkOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLatencyNetworkOperation_Randomised(), ecorePackage.getEBoolean(), "randomised", "false", 0, 1, LatencyNetworkOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(packetLossNetworkOperationEClass, PacketLossNetworkOperation.class, "PacketLossNetworkOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getPacketLossNetworkOperation_Frequency(), this.getDoubleRange(), null, "frequency", null, 1, 1, PacketLossNetworkOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEClass(multipleMessagesNetworkOperationEClass, MultipleMessagesNetworkOperation.class, "MultipleMessagesNetworkOperation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getMultipleMessagesNetworkOperation_HowManyClones(), this.getIntRange(), null, "howManyClones", null, 1, 1, MultipleMessagesNetworkOperation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - // Initialize enums and add enum literals initEEnum(offlineOperationTimeEEnum, OfflineOperationTime.class, "OfflineOperationTime"); addEEnumLiteral(offlineOperationTimeEEnum, OfflineOperationTime.PRE); diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/IOLoadTypeImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/IOLoadTypeImpl.java deleted file mode 100644 index a1e49df6..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/IOLoadTypeImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.ecore.EClass; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.IOLoadType; - -/** - * - * An implementation of the model object 'IO Load Type'. - * - * - * @generated - */ -public class IOLoadTypeImpl extends LoadTypeImpl implements IOLoadType { - /** - * - * - * @generated - */ - protected IOLoadTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.IO_LOAD_TYPE; - } - -} //IOLoadTypeImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LatencyNetworkOperationImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LatencyNetworkOperationImpl.java index 72d42a0d..77fe260d 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LatencyNetworkOperationImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LatencyNetworkOperationImpl.java @@ -23,6 +23,7 @@ *

    *
      *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LatencyNetworkOperationImpl#getLatency Latency}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LatencyNetworkOperationImpl#isRandomised Randomised}
    • *
    * * @generated @@ -38,6 +39,25 @@ public class LatencyNetworkOperationImpl extends NetworkFuzzingOperationImpl imp */ protected DoubleRange latency; + /** + * The default value of the '{@link #isRandomised() Randomised}' attribute. + * + * + * @see #isRandomised() + * @generated + * @ordered + */ + protected static final boolean RANDOMISED_EDEFAULT = false; + /** + * The cached value of the '{@link #isRandomised() Randomised}' attribute. + * + * + * @see #isRandomised() + * @generated + * @ordered + */ + protected boolean randomised = RANDOMISED_EDEFAULT; + /** * * @@ -100,6 +120,27 @@ else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION__LATENCY, newLatency, newLatency)); } + /** + * + * + * @generated + */ + public boolean isRandomised() { + return randomised; + } + + /** + * + * + * @generated + */ + public void setRandomised(boolean newRandomised) { + boolean oldRandomised = randomised; + randomised = newRandomised; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION__RANDOMISED, oldRandomised, randomised)); + } + /** * * @@ -124,6 +165,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION__LATENCY: return getLatency(); + case FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION__RANDOMISED: + return isRandomised(); } return super.eGet(featureID, resolve, coreType); } @@ -139,6 +182,9 @@ public void eSet(int featureID, Object newValue) { case FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION__LATENCY: setLatency((DoubleRange)newValue); return; + case FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION__RANDOMISED: + setRandomised((Boolean)newValue); + return; } super.eSet(featureID, newValue); } @@ -154,6 +200,9 @@ public void eUnset(int featureID) { case FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION__LATENCY: setLatency((DoubleRange)null); return; + case FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION__RANDOMISED: + setRandomised(RANDOMISED_EDEFAULT); + return; } super.eUnset(featureID); } @@ -168,8 +217,26 @@ public boolean eIsSet(int featureID) { switch (featureID) { case FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION__LATENCY: return latency != null; + case FuzzingOperationsPackage.LATENCY_NETWORK_OPERATION__RANDOMISED: + return randomised != RANDOMISED_EDEFAULT; } return super.eIsSet(featureID); } + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (randomised: "); + result.append(randomised); + result.append(')'); + return result.toString(); + } + } //LatencyNetworkOperationImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LoadResourceOperationImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LoadResourceOperationImpl.java deleted file mode 100644 index b9c9a3f0..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LoadResourceOperationImpl.java +++ /dev/null @@ -1,156 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadResourceOperation; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType; - -/** - * - * An implementation of the model object 'Load Resource Operation'. - * - *

    - * The following features are implemented: - *

    - *
      - *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadResourceOperationImpl#getLoadType Load Type}
    • - *
    - * - * @generated - */ -public class LoadResourceOperationImpl extends ResourceFuzzingOperationImpl implements LoadResourceOperation { - /** - * The cached value of the '{@link #getLoadType() Load Type}' reference. - * - * - * @see #getLoadType() - * @generated - * @ordered - */ - protected LoadType loadType; - - /** - * - * - * @generated - */ - protected LoadResourceOperationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.LOAD_RESOURCE_OPERATION; - } - - /** - * - * - * @generated - */ - public LoadType getLoadType() { - if (loadType != null && loadType.eIsProxy()) { - InternalEObject oldLoadType = (InternalEObject)loadType; - loadType = (LoadType)eResolveProxy(oldLoadType); - if (loadType != oldLoadType) { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, FuzzingOperationsPackage.LOAD_RESOURCE_OPERATION__LOAD_TYPE, oldLoadType, loadType)); - } - } - return loadType; - } - - /** - * - * - * @generated - */ - public LoadType basicGetLoadType() { - return loadType; - } - - /** - * - * - * @generated - */ - public void setLoadType(LoadType newLoadType) { - LoadType oldLoadType = loadType; - loadType = newLoadType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.LOAD_RESOURCE_OPERATION__LOAD_TYPE, oldLoadType, loadType)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case FuzzingOperationsPackage.LOAD_RESOURCE_OPERATION__LOAD_TYPE: - if (resolve) return getLoadType(); - return basicGetLoadType(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case FuzzingOperationsPackage.LOAD_RESOURCE_OPERATION__LOAD_TYPE: - setLoadType((LoadType)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case FuzzingOperationsPackage.LOAD_RESOURCE_OPERATION__LOAD_TYPE: - setLoadType((LoadType)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case FuzzingOperationsPackage.LOAD_RESOURCE_OPERATION__LOAD_TYPE: - return loadType != null; - } - return super.eIsSet(featureID); - } - -} //LoadResourceOperationImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LoadTypeImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LoadTypeImpl.java deleted file mode 100644 index ee446a94..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/LoadTypeImpl.java +++ /dev/null @@ -1,217 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType; - -/** - * - * An implementation of the model object 'Load Type'. - * - *

    - * The following features are implemented: - *

    - *
      - *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadTypeImpl#getMin Min}
    • - *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.LoadTypeImpl#getMax Max}
    • - *
    - * - * @generated - */ -public class LoadTypeImpl extends MinimalEObjectImpl.Container implements LoadType { - /** - * The default value of the '{@link #getMin() Min}' attribute. - * - * - * @see #getMin() - * @generated - * @ordered - */ - protected static final int MIN_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMin() Min}' attribute. - * - * - * @see #getMin() - * @generated - * @ordered - */ - protected int min = MIN_EDEFAULT; - - /** - * The default value of the '{@link #getMax() Max}' attribute. - * - * - * @see #getMax() - * @generated - * @ordered - */ - protected static final int MAX_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMax() Max}' attribute. - * - * - * @see #getMax() - * @generated - * @ordered - */ - protected int max = MAX_EDEFAULT; - - /** - * - * - * @generated - */ - protected LoadTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.LOAD_TYPE; - } - - /** - * - * - * @generated - */ - public int getMin() { - return min; - } - - /** - * - * - * @generated - */ - public void setMin(int newMin) { - int oldMin = min; - min = newMin; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.LOAD_TYPE__MIN, oldMin, min)); - } - - /** - * - * - * @generated - */ - public int getMax() { - return max; - } - - /** - * - * - * @generated - */ - public void setMax(int newMax) { - int oldMax = max; - max = newMax; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.LOAD_TYPE__MAX, oldMax, max)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case FuzzingOperationsPackage.LOAD_TYPE__MIN: - return getMin(); - case FuzzingOperationsPackage.LOAD_TYPE__MAX: - return getMax(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case FuzzingOperationsPackage.LOAD_TYPE__MIN: - setMin((Integer)newValue); - return; - case FuzzingOperationsPackage.LOAD_TYPE__MAX: - setMax((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case FuzzingOperationsPackage.LOAD_TYPE__MIN: - setMin(MIN_EDEFAULT); - return; - case FuzzingOperationsPackage.LOAD_TYPE__MAX: - setMax(MAX_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case FuzzingOperationsPackage.LOAD_TYPE__MIN: - return min != MIN_EDEFAULT; - case FuzzingOperationsPackage.LOAD_TYPE__MAX: - return max != MAX_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (min: "); - result.append(min); - result.append(", max: "); - result.append(max); - result.append(')'); - return result.toString(); - } - -} //LoadTypeImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/MemoryLoadTypeImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/MemoryLoadTypeImpl.java deleted file mode 100644 index ba2dec70..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/MemoryLoadTypeImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.ecore.EClass; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MemoryLoadType; - -/** - * - * An implementation of the model object 'Memory Load Type'. - * - * - * @generated - */ -public class MemoryLoadTypeImpl extends LoadTypeImpl implements MemoryLoadType { - /** - * - * - * @generated - */ - protected MemoryLoadTypeImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.MEMORY_LOAD_TYPE; - } - -} //MemoryLoadTypeImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/MultipleMessagesNetworkOperationImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/MultipleMessagesNetworkOperationImpl.java deleted file mode 100644 index 74f5d765..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/MultipleMessagesNetworkOperationImpl.java +++ /dev/null @@ -1,175 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.IntRange; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MultipleMessagesNetworkOperation; - -/** - * - * An implementation of the model object 'Multiple Messages Network Operation'. - * - *

    - * The following features are implemented: - *

    - *
      - *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.MultipleMessagesNetworkOperationImpl#getHowManyClones How Many Clones}
    • - *
    - * - * @generated - */ -public class MultipleMessagesNetworkOperationImpl extends NetworkFuzzingOperationImpl implements MultipleMessagesNetworkOperation { - /** - * The cached value of the '{@link #getHowManyClones() How Many Clones}' containment reference. - * - * - * @see #getHowManyClones() - * @generated - * @ordered - */ - protected IntRange howManyClones; - - /** - * - * - * @generated - */ - protected MultipleMessagesNetworkOperationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.MULTIPLE_MESSAGES_NETWORK_OPERATION; - } - - /** - * - * - * @generated - */ - public IntRange getHowManyClones() { - return howManyClones; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetHowManyClones(IntRange newHowManyClones, NotificationChain msgs) { - IntRange oldHowManyClones = howManyClones; - howManyClones = newHowManyClones; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES, oldHowManyClones, newHowManyClones); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setHowManyClones(IntRange newHowManyClones) { - if (newHowManyClones != howManyClones) { - NotificationChain msgs = null; - if (howManyClones != null) - msgs = ((InternalEObject)howManyClones).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES, null, msgs); - if (newHowManyClones != null) - msgs = ((InternalEObject)newHowManyClones).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES, null, msgs); - msgs = basicSetHowManyClones(newHowManyClones, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES, newHowManyClones, newHowManyClones)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES: - return basicSetHowManyClones(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES: - return getHowManyClones(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES: - setHowManyClones((IntRange)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES: - setHowManyClones((IntRange)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION__HOW_MANY_CLONES: - return howManyClones != null; - } - return super.eIsSet(featureID); - } - -} //MultipleMessagesNetworkOperationImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ProcessKillerStateOperatonImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ProcessKillerStateOperatonImpl.java deleted file mode 100644 index b03e667b..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ProcessKillerStateOperatonImpl.java +++ /dev/null @@ -1,162 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ProcessKillerStateOperaton; - -/** - * - * An implementation of the model object 'Process Killer State Operaton'. - * - *

    - * The following features are implemented: - *

    - *
      - *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.ProcessKillerStateOperatonImpl#getProcessId Process Id}
    • - *
    - * - * @generated - */ -public class ProcessKillerStateOperatonImpl extends StateFuzzingOperationImpl implements ProcessKillerStateOperaton { - /** - * The default value of the '{@link #getProcessId() Process Id}' attribute. - * - * - * @see #getProcessId() - * @generated - * @ordered - */ - protected static final int PROCESS_ID_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getProcessId() Process Id}' attribute. - * - * - * @see #getProcessId() - * @generated - * @ordered - */ - protected int processId = PROCESS_ID_EDEFAULT; - - /** - * - * - * @generated - */ - protected ProcessKillerStateOperatonImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.PROCESS_KILLER_STATE_OPERATON; - } - - /** - * - * - * @generated - */ - public int getProcessId() { - return processId; - } - - /** - * - * - * @generated - */ - public void setProcessId(int newProcessId) { - int oldProcessId = processId; - processId = newProcessId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.PROCESS_KILLER_STATE_OPERATON__PROCESS_ID, oldProcessId, processId)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case FuzzingOperationsPackage.PROCESS_KILLER_STATE_OPERATON__PROCESS_ID: - return getProcessId(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case FuzzingOperationsPackage.PROCESS_KILLER_STATE_OPERATON__PROCESS_ID: - setProcessId((Integer)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case FuzzingOperationsPackage.PROCESS_KILLER_STATE_OPERATON__PROCESS_ID: - setProcessId(PROCESS_ID_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case FuzzingOperationsPackage.PROCESS_KILLER_STATE_OPERATON__PROCESS_ID: - return processId != PROCESS_ID_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (processId: "); - result.append(processId); - result.append(')'); - return result.toString(); - } - -} //ProcessKillerStateOperatonImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ResourceFuzzingOperationImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ResourceFuzzingOperationImpl.java deleted file mode 100644 index c5623552..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ResourceFuzzingOperationImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.ecore.EClass; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ResourceFuzzingOperation; - -/** - * - * An implementation of the model object 'Resource Fuzzing Operation'. - * - * - * @generated - */ -public class ResourceFuzzingOperationImpl extends FuzzingOperationImpl implements ResourceFuzzingOperation { - /** - * - * - * @generated - */ - protected ResourceFuzzingOperationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.RESOURCE_FUZZING_OPERATION; - } - -} //ResourceFuzzingOperationImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ShutdownStateOperatonImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ShutdownStateOperatonImpl.java deleted file mode 100644 index 6783428b..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/ShutdownStateOperatonImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.ecore.EClass; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ShutdownStateOperaton; - -/** - * - * An implementation of the model object 'Shutdown State Operaton'. - * - * - * @generated - */ -public class ShutdownStateOperatonImpl extends StateFuzzingOperationImpl implements ShutdownStateOperaton { - /** - * - * - * @generated - */ - protected ShutdownStateOperatonImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.SHUTDOWN_STATE_OPERATON; - } - -} //ShutdownStateOperatonImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/StateFuzzingOperationImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/StateFuzzingOperationImpl.java deleted file mode 100644 index 7a16a3f2..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/StateFuzzingOperationImpl.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.ecore.EClass; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.StateFuzzingOperation; - -/** - * - * An implementation of the model object 'State Fuzzing Operation'. - * - * - * @generated - */ -public class StateFuzzingOperationImpl extends FuzzingOperationImpl implements StateFuzzingOperation { - /** - * - * - * @generated - */ - protected StateFuzzingOperationImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.STATE_FUZZING_OPERATION; - } - -} //StateFuzzingOperationImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/TimeTravelStateOperatonImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/TimeTravelStateOperatonImpl.java deleted file mode 100644 index 1978fd0b..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/impl/TimeTravelStateOperatonImpl.java +++ /dev/null @@ -1,175 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.DoubleRange; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.TimeTravelStateOperaton; - -/** - * - * An implementation of the model object 'Time Travel State Operaton'. - * - *

    - * The following features are implemented: - *

    - *
      - *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.TimeTravelStateOperatonImpl#getTimeTravelValue Time Travel Value}
    • - *
    - * - * @generated - */ -public class TimeTravelStateOperatonImpl extends StateFuzzingOperationImpl implements TimeTravelStateOperaton { - /** - * The cached value of the '{@link #getTimeTravelValue() Time Travel Value}' containment reference. - * - * - * @see #getTimeTravelValue() - * @generated - * @ordered - */ - protected DoubleRange timeTravelValue; - - /** - * - * - * @generated - */ - protected TimeTravelStateOperatonImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return FuzzingOperationsPackage.Literals.TIME_TRAVEL_STATE_OPERATON; - } - - /** - * - * - * @generated - */ - public DoubleRange getTimeTravelValue() { - return timeTravelValue; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetTimeTravelValue(DoubleRange newTimeTravelValue, NotificationChain msgs) { - DoubleRange oldTimeTravelValue = timeTravelValue; - timeTravelValue = newTimeTravelValue; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE, oldTimeTravelValue, newTimeTravelValue); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - public void setTimeTravelValue(DoubleRange newTimeTravelValue) { - if (newTimeTravelValue != timeTravelValue) { - NotificationChain msgs = null; - if (timeTravelValue != null) - msgs = ((InternalEObject)timeTravelValue).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE, null, msgs); - if (newTimeTravelValue != null) - msgs = ((InternalEObject)newTimeTravelValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE, null, msgs); - msgs = basicSetTimeTravelValue(newTimeTravelValue, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE, newTimeTravelValue, newTimeTravelValue)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE: - return basicSetTimeTravelValue(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE: - return getTimeTravelValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE: - setTimeTravelValue((DoubleRange)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE: - setTimeTravelValue((DoubleRange)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON__TIME_TRAVEL_VALUE: - return timeTravelValue != null; - } - return super.eIsSet(featureID); - } - -} //TimeTravelStateOperatonImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/util/FuzzingOperationsAdapterFactory.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/util/FuzzingOperationsAdapterFactory.java index c32ac8c4..f8fd91c1 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/util/FuzzingOperationsAdapterFactory.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/util/FuzzingOperationsAdapterFactory.java @@ -160,54 +160,10 @@ public Adapter caseExternalResourceSet(ExternalResourceSet object) { return createExternalResourceSetAdapter(); } @Override - public Adapter caseResourceFuzzingOperation(ResourceFuzzingOperation object) { - return createResourceFuzzingOperationAdapter(); - } - @Override - public Adapter caseStateFuzzingOperation(StateFuzzingOperation object) { - return createStateFuzzingOperationAdapter(); - } - @Override public Adapter caseNetworkFuzzingOperation(NetworkFuzzingOperation object) { return createNetworkFuzzingOperationAdapter(); } @Override - public Adapter caseLoadResourceOperation(LoadResourceOperation object) { - return createLoadResourceOperationAdapter(); - } - @Override - public Adapter caseLoadType(LoadType object) { - return createLoadTypeAdapter(); - } - @Override - public Adapter caseCPULoadType(CPULoadType object) { - return createCPULoadTypeAdapter(); - } - @Override - public Adapter caseMemoryLoadType(MemoryLoadType object) { - return createMemoryLoadTypeAdapter(); - } - @Override - public Adapter caseIOLoadType(IOLoadType object) { - return createIOLoadTypeAdapter(); - } - @Override - public Adapter caseDiskLoadType(DiskLoadType object) { - return createDiskLoadTypeAdapter(); - } - @Override - public Adapter caseShutdownStateOperaton(ShutdownStateOperaton object) { - return createShutdownStateOperatonAdapter(); - } - @Override - public Adapter caseTimeTravelStateOperaton(TimeTravelStateOperaton object) { - return createTimeTravelStateOperatonAdapter(); - } - @Override - public Adapter caseProcessKillerStateOperaton(ProcessKillerStateOperaton object) { - return createProcessKillerStateOperatonAdapter(); - } - @Override public Adapter caseBlackholeNetworkOperation(BlackholeNetworkOperation object) { return createBlackholeNetworkOperationAdapter(); } @@ -220,10 +176,6 @@ public Adapter casePacketLossNetworkOperation(PacketLossNetworkOperation object) return createPacketLossNetworkOperationAdapter(); } @Override - public Adapter caseMultipleMessagesNetworkOperation(MultipleMessagesNetworkOperation object) { - return createMultipleMessagesNetworkOperationAdapter(); - } - @Override public Adapter defaultCase(EObject object) { return createEObjectAdapter(); } @@ -565,34 +517,6 @@ public Adapter createExternalResourceSetAdapter() { return null; } - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ResourceFuzzingOperation Resource Fuzzing Operation}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ResourceFuzzingOperation - * @generated - */ - public Adapter createResourceFuzzingOperationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.StateFuzzingOperation State Fuzzing Operation}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.StateFuzzingOperation - * @generated - */ - public Adapter createStateFuzzingOperationAdapter() { - return null; - } - /** * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.NetworkFuzzingOperation Network Fuzzing Operation}'. * @@ -607,132 +531,6 @@ public Adapter createNetworkFuzzingOperationAdapter() { return null; } - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadResourceOperation Load Resource Operation}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadResourceOperation - * @generated - */ - public Adapter createLoadResourceOperationAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType Load Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.LoadType - * @generated - */ - public Adapter createLoadTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CPULoadType CPU Load Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.CPULoadType - * @generated - */ - public Adapter createCPULoadTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MemoryLoadType Memory Load Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MemoryLoadType - * @generated - */ - public Adapter createMemoryLoadTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.IOLoadType IO Load Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.IOLoadType - * @generated - */ - public Adapter createIOLoadTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.DiskLoadType Disk Load Type}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.DiskLoadType - * @generated - */ - public Adapter createDiskLoadTypeAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ShutdownStateOperaton Shutdown State Operaton}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ShutdownStateOperaton - * @generated - */ - public Adapter createShutdownStateOperatonAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.TimeTravelStateOperaton Time Travel State Operaton}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.TimeTravelStateOperaton - * @generated - */ - public Adapter createTimeTravelStateOperatonAdapter() { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ProcessKillerStateOperaton Process Killer State Operaton}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.ProcessKillerStateOperaton - * @generated - */ - public Adapter createProcessKillerStateOperatonAdapter() { - return null; - } - /** * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.BlackholeNetworkOperation Blackhole Network Operation}'. * @@ -775,20 +573,6 @@ public Adapter createPacketLossNetworkOperationAdapter() { return null; } - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MultipleMessagesNetworkOperation Multiple Messages Network Operation}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.MultipleMessagesNetworkOperation - * @generated - */ - public Adapter createMultipleMessagesNetworkOperationAdapter() { - return null; - } - /** * Creates a new adapter for the default case. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/util/FuzzingOperationsSwitch.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/util/FuzzingOperationsSwitch.java index 5b565565..35ef2458 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/util/FuzzingOperationsSwitch.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/FuzzingOperations/util/FuzzingOperationsSwitch.java @@ -236,20 +236,6 @@ protected T doSwitch(int classifierID, EObject theEObject) { if (result == null) result = defaultCase(theEObject); return result; } - case FuzzingOperationsPackage.RESOURCE_FUZZING_OPERATION: { - ResourceFuzzingOperation resourceFuzzingOperation = (ResourceFuzzingOperation)theEObject; - T result = caseResourceFuzzingOperation(resourceFuzzingOperation); - if (result == null) result = caseFuzzingOperation(resourceFuzzingOperation); - if (result == null) result = defaultCase(theEObject); - return result; - } - case FuzzingOperationsPackage.STATE_FUZZING_OPERATION: { - StateFuzzingOperation stateFuzzingOperation = (StateFuzzingOperation)theEObject; - T result = caseStateFuzzingOperation(stateFuzzingOperation); - if (result == null) result = caseFuzzingOperation(stateFuzzingOperation); - if (result == null) result = defaultCase(theEObject); - return result; - } case FuzzingOperationsPackage.NETWORK_FUZZING_OPERATION: { NetworkFuzzingOperation networkFuzzingOperation = (NetworkFuzzingOperation)theEObject; T result = caseNetworkFuzzingOperation(networkFuzzingOperation); @@ -257,72 +243,6 @@ protected T doSwitch(int classifierID, EObject theEObject) { if (result == null) result = defaultCase(theEObject); return result; } - case FuzzingOperationsPackage.LOAD_RESOURCE_OPERATION: { - LoadResourceOperation loadResourceOperation = (LoadResourceOperation)theEObject; - T result = caseLoadResourceOperation(loadResourceOperation); - if (result == null) result = caseResourceFuzzingOperation(loadResourceOperation); - if (result == null) result = caseFuzzingOperation(loadResourceOperation); - if (result == null) result = defaultCase(theEObject); - return result; - } - case FuzzingOperationsPackage.LOAD_TYPE: { - LoadType loadType = (LoadType)theEObject; - T result = caseLoadType(loadType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case FuzzingOperationsPackage.CPU_LOAD_TYPE: { - CPULoadType cpuLoadType = (CPULoadType)theEObject; - T result = caseCPULoadType(cpuLoadType); - if (result == null) result = caseLoadType(cpuLoadType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case FuzzingOperationsPackage.MEMORY_LOAD_TYPE: { - MemoryLoadType memoryLoadType = (MemoryLoadType)theEObject; - T result = caseMemoryLoadType(memoryLoadType); - if (result == null) result = caseLoadType(memoryLoadType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case FuzzingOperationsPackage.IO_LOAD_TYPE: { - IOLoadType ioLoadType = (IOLoadType)theEObject; - T result = caseIOLoadType(ioLoadType); - if (result == null) result = caseLoadType(ioLoadType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case FuzzingOperationsPackage.DISK_LOAD_TYPE: { - DiskLoadType diskLoadType = (DiskLoadType)theEObject; - T result = caseDiskLoadType(diskLoadType); - if (result == null) result = caseLoadType(diskLoadType); - if (result == null) result = defaultCase(theEObject); - return result; - } - case FuzzingOperationsPackage.SHUTDOWN_STATE_OPERATON: { - ShutdownStateOperaton shutdownStateOperaton = (ShutdownStateOperaton)theEObject; - T result = caseShutdownStateOperaton(shutdownStateOperaton); - if (result == null) result = caseStateFuzzingOperation(shutdownStateOperaton); - if (result == null) result = caseFuzzingOperation(shutdownStateOperaton); - if (result == null) result = defaultCase(theEObject); - return result; - } - case FuzzingOperationsPackage.TIME_TRAVEL_STATE_OPERATON: { - TimeTravelStateOperaton timeTravelStateOperaton = (TimeTravelStateOperaton)theEObject; - T result = caseTimeTravelStateOperaton(timeTravelStateOperaton); - if (result == null) result = caseStateFuzzingOperation(timeTravelStateOperaton); - if (result == null) result = caseFuzzingOperation(timeTravelStateOperaton); - if (result == null) result = defaultCase(theEObject); - return result; - } - case FuzzingOperationsPackage.PROCESS_KILLER_STATE_OPERATON: { - ProcessKillerStateOperaton processKillerStateOperaton = (ProcessKillerStateOperaton)theEObject; - T result = caseProcessKillerStateOperaton(processKillerStateOperaton); - if (result == null) result = caseStateFuzzingOperation(processKillerStateOperaton); - if (result == null) result = caseFuzzingOperation(processKillerStateOperaton); - if (result == null) result = defaultCase(theEObject); - return result; - } case FuzzingOperationsPackage.BLACKHOLE_NETWORK_OPERATION: { BlackholeNetworkOperation blackholeNetworkOperation = (BlackholeNetworkOperation)theEObject; T result = caseBlackholeNetworkOperation(blackholeNetworkOperation); @@ -347,14 +267,6 @@ protected T doSwitch(int classifierID, EObject theEObject) { if (result == null) result = defaultCase(theEObject); return result; } - case FuzzingOperationsPackage.MULTIPLE_MESSAGES_NETWORK_OPERATION: { - MultipleMessagesNetworkOperation multipleMessagesNetworkOperation = (MultipleMessagesNetworkOperation)theEObject; - T result = caseMultipleMessagesNetworkOperation(multipleMessagesNetworkOperation); - if (result == null) result = caseNetworkFuzzingOperation(multipleMessagesNetworkOperation); - if (result == null) result = caseFuzzingOperation(multipleMessagesNetworkOperation); - if (result == null) result = defaultCase(theEObject); - return result; - } default: return defaultCase(theEObject); } } @@ -704,36 +616,6 @@ public T caseExternalResourceSet(ExternalResourceSet object) { return null; } - /** - * Returns the result of interpreting the object as an instance of 'Resource Fuzzing Operation'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Resource Fuzzing Operation'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseResourceFuzzingOperation(ResourceFuzzingOperation object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'State Fuzzing Operation'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'State Fuzzing Operation'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStateFuzzingOperation(StateFuzzingOperation object) { - return null; - } - /** * Returns the result of interpreting the object as an instance of 'Network Fuzzing Operation'. * @@ -749,141 +631,6 @@ public T caseNetworkFuzzingOperation(NetworkFuzzingOperation object) { return null; } - /** - * Returns the result of interpreting the object as an instance of 'Load Resource Operation'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Load Resource Operation'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseLoadResourceOperation(LoadResourceOperation object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Load Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Load Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseLoadType(LoadType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'CPU Load Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'CPU Load Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCPULoadType(CPULoadType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Memory Load Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Memory Load Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMemoryLoadType(MemoryLoadType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'IO Load Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'IO Load Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseIOLoadType(IOLoadType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Disk Load Type'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Disk Load Type'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDiskLoadType(DiskLoadType object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Shutdown State Operaton'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Shutdown State Operaton'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseShutdownStateOperaton(ShutdownStateOperaton object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Time Travel State Operaton'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Time Travel State Operaton'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseTimeTravelStateOperaton(TimeTravelStateOperaton object) { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Process Killer State Operaton'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Process Killer State Operaton'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseProcessKillerStateOperaton(ProcessKillerStateOperaton object) { - return null; - } - /** * Returns the result of interpreting the object as an instance of 'Blackhole Network Operation'. * @@ -929,21 +676,6 @@ public T casePacketLossNetworkOperation(PacketLossNetworkOperation object) { return null; } - /** - * Returns the result of interpreting the object as an instance of 'Multiple Messages Network Operation'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Multiple Messages Network Operation'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseMultipleMessagesNetworkOperation(MultipleMessagesNetworkOperation object) { - return null; - } - /** * Returns the result of interpreting the object as an instance of 'EObject'. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/LinearNSGACoverageBoostingStrategy.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/LinearNSGACoverageBoostingStrategy.java new file mode 100644 index 00000000..b5ec5aee --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/LinearNSGACoverageBoostingStrategy.java @@ -0,0 +1,115 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage; + + +/** + * + * A representation of the model object 'Linear NSGA Coverage Boosting Strategy'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getUseBoostingOnceEveryGenerations Use Boosting Once Every Generations}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getStartingBoostingCount Starting Boosting Count}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getEndingBoostingCount Ending Boosting Count}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getCountDropEveryGeneration Count Drop Every Generation}
    • + *
    + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getLinearNSGACoverageBoostingStrategy() + * @model + * @generated + */ +public interface LinearNSGACoverageBoostingStrategy extends CoverageBoostingStrategy { + /** + * Returns the value of the 'Use Boosting Once Every Generations' attribute. + * The default value is "2". + * + * + * @return the value of the 'Use Boosting Once Every Generations' attribute. + * @see #setUseBoostingOnceEveryGenerations(int) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getLinearNSGACoverageBoostingStrategy_UseBoostingOnceEveryGenerations() + * @model default="2" + * @generated + */ + int getUseBoostingOnceEveryGenerations(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getUseBoostingOnceEveryGenerations Use Boosting Once Every Generations}' attribute. + * + * + * @param value the new value of the 'Use Boosting Once Every Generations' attribute. + * @see #getUseBoostingOnceEveryGenerations() + * @generated + */ + void setUseBoostingOnceEveryGenerations(int value); + + /** + * Returns the value of the 'Starting Boosting Count' attribute. + * + * + * @return the value of the 'Starting Boosting Count' attribute. + * @see #setStartingBoostingCount(int) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getLinearNSGACoverageBoostingStrategy_StartingBoostingCount() + * @model + * @generated + */ + int getStartingBoostingCount(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getStartingBoostingCount Starting Boosting Count}' attribute. + * + * + * @param value the new value of the 'Starting Boosting Count' attribute. + * @see #getStartingBoostingCount() + * @generated + */ + void setStartingBoostingCount(int value); + + /** + * Returns the value of the 'Ending Boosting Count' attribute. + * + * + * @return the value of the 'Ending Boosting Count' attribute. + * @see #setEndingBoostingCount(int) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getLinearNSGACoverageBoostingStrategy_EndingBoostingCount() + * @model + * @generated + */ + int getEndingBoostingCount(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getEndingBoostingCount Ending Boosting Count}' attribute. + * + * + * @param value the new value of the 'Ending Boosting Count' attribute. + * @see #getEndingBoostingCount() + * @generated + */ + void setEndingBoostingCount(int value); + + /** + * Returns the value of the 'Count Drop Every Generation' attribute. + * + * + * @return the value of the 'Count Drop Every Generation' attribute. + * @see #setCountDropEveryGeneration(int) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getLinearNSGACoverageBoostingStrategy_CountDropEveryGeneration() + * @model + * @generated + */ + int getCountDropEveryGeneration(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getCountDropEveryGeneration Count Drop Every Generation}' attribute. + * + * + * @param value the new value of the 'Count Drop Every Generation' attribute. + * @see #getCountDropEveryGeneration() + * @generated + */ + void setCountDropEveryGeneration(int value); + +} // LinearNSGACoverageBoostingStrategy diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/MRSPackagePackage.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/MRSPackagePackage.java index 1eb55ace..2c45f787 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/MRSPackagePackage.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/MRSPackagePackage.java @@ -571,6 +571,33 @@ public interface MRSPackagePackage extends EPackage { */ int TTS_SIMULATOR__PORT = SIMULATOR_FEATURE_COUNT + 1; + /** + * The feature id for the 'Step Size Millis' attribute. + * + * + * @generated + * @ordered + */ + int TTS_SIMULATOR__STEP_SIZE_MILLIS = SIMULATOR_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Use Stepping' attribute. + * + * + * @generated + * @ordered + */ + int TTS_SIMULATOR__USE_STEPPING = SIMULATOR_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Use GUI' attribute. + * + * + * @generated + * @ordered + */ + int TTS_SIMULATOR__USE_GUI = SIMULATOR_FEATURE_COUNT + 4; + /** * The number of structural features of the 'TTS Simulator' class. * @@ -578,7 +605,7 @@ public interface MRSPackagePackage extends EPackage { * @generated * @ordered */ - int TTS_SIMULATOR_FEATURE_COUNT = SIMULATOR_FEATURE_COUNT + 2; + int TTS_SIMULATOR_FEATURE_COUNT = SIMULATOR_FEATURE_COUNT + 5; /** * The number of operations of the 'TTS Simulator' class. @@ -1008,6 +1035,39 @@ public interface MRSPackagePackage extends EPackage { */ EAttribute getTTSSimulator_Port(); + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#getStepSizeMillis Step Size Millis}'. + * + * + * @return the meta object for the attribute 'Step Size Millis'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#getStepSizeMillis() + * @see #getTTSSimulator() + * @generated + */ + EAttribute getTTSSimulator_StepSizeMillis(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#isUseStepping Use Stepping}'. + * + * + * @return the meta object for the attribute 'Use Stepping'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#isUseStepping() + * @see #getTTSSimulator() + * @generated + */ + EAttribute getTTSSimulator_UseStepping(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#isUseGUI Use GUI}'. + * + * + * @return the meta object for the attribute 'Use GUI'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#isUseGUI() + * @see #getTTSSimulator() + * @generated + */ + EAttribute getTTSSimulator_UseGUI(); + /** * Returns the meta object for enum '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.ParsingMethod Parsing Method}'. * @@ -1365,6 +1425,30 @@ interface Literals { */ EAttribute TTS_SIMULATOR__PORT = eINSTANCE.getTTSSimulator_Port(); + /** + * The meta object literal for the 'Step Size Millis' attribute feature. + * + * + * @generated + */ + EAttribute TTS_SIMULATOR__STEP_SIZE_MILLIS = eINSTANCE.getTTSSimulator_StepSizeMillis(); + + /** + * The meta object literal for the 'Use Stepping' attribute feature. + * + * + * @generated + */ + EAttribute TTS_SIMULATOR__USE_STEPPING = eINSTANCE.getTTSSimulator_UseStepping(); + + /** + * The meta object literal for the 'Use GUI' attribute feature. + * + * + * @generated + */ + EAttribute TTS_SIMULATOR__USE_GUI = eINSTANCE.getTTSSimulator_UseGUI(); + /** * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.ParsingMethod Parsing Method}' enum. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/TTSSimulator.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/TTSSimulator.java index e4529289..8fbff664 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/TTSSimulator.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/TTSSimulator.java @@ -14,6 +14,9 @@ *
      *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#getHostname Hostname}
    • *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#getPort Port}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#getStepSizeMillis Step Size Millis}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#isUseStepping Use Stepping}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#isUseGUI Use GUI}
    • *
    * * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.MRSPackagePackage#getTTSSimulator() @@ -65,4 +68,73 @@ public interface TTSSimulator extends Simulator { */ void setPort(String value); + /** + * Returns the value of the 'Step Size Millis' attribute. + * The default value is "20". + * + * + * @return the value of the 'Step Size Millis' attribute. + * @see #setStepSizeMillis(double) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.MRSPackagePackage#getTTSSimulator_StepSizeMillis() + * @model default="20" + * @generated + */ + double getStepSizeMillis(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#getStepSizeMillis Step Size Millis}' attribute. + * + * + * @param value the new value of the 'Step Size Millis' attribute. + * @see #getStepSizeMillis() + * @generated + */ + void setStepSizeMillis(double value); + + /** + * Returns the value of the 'Use Stepping' attribute. + * The default value is "false". + * + * + * @return the value of the 'Use Stepping' attribute. + * @see #setUseStepping(boolean) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.MRSPackagePackage#getTTSSimulator_UseStepping() + * @model default="false" + * @generated + */ + boolean isUseStepping(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#isUseStepping Use Stepping}' attribute. + * + * + * @param value the new value of the 'Use Stepping' attribute. + * @see #isUseStepping() + * @generated + */ + void setUseStepping(boolean value); + + /** + * Returns the value of the 'Use GUI' attribute. + * The default value is "false". + * + * + * @return the value of the 'Use GUI' attribute. + * @see #setUseGUI(boolean) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.MRSPackagePackage#getTTSSimulator_UseGUI() + * @model default="false" + * @generated + */ + boolean isUseGUI(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.TTSSimulator#isUseGUI Use GUI}' attribute. + * + * + * @param value the new value of the 'Use GUI' attribute. + * @see #isUseGUI() + * @generated + */ + void setUseGUI(boolean value); + } // TTSSimulator diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/impl/MRSPackagePackageImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/impl/MRSPackagePackageImpl.java index 61e59404..db258dba 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/impl/MRSPackagePackageImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/impl/MRSPackagePackageImpl.java @@ -552,6 +552,33 @@ public EAttribute getTTSSimulator_Port() { return (EAttribute)ttsSimulatorEClass.getEStructuralFeatures().get(1); } + /** + * + * + * @generated + */ + public EAttribute getTTSSimulator_StepSizeMillis() { + return (EAttribute)ttsSimulatorEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getTTSSimulator_UseStepping() { + return (EAttribute)ttsSimulatorEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EAttribute getTTSSimulator_UseGUI() { + return (EAttribute)ttsSimulatorEClass.getEStructuralFeatures().get(4); + } + /** * * @@ -636,6 +663,9 @@ public void createPackageContents() { ttsSimulatorEClass = createEClass(TTS_SIMULATOR); createEAttribute(ttsSimulatorEClass, TTS_SIMULATOR__HOSTNAME); createEAttribute(ttsSimulatorEClass, TTS_SIMULATOR__PORT); + createEAttribute(ttsSimulatorEClass, TTS_SIMULATOR__STEP_SIZE_MILLIS); + createEAttribute(ttsSimulatorEClass, TTS_SIMULATOR__USE_STEPPING); + createEAttribute(ttsSimulatorEClass, TTS_SIMULATOR__USE_GUI); // Create enums parsingMethodEEnum = createEEnum(PARSING_METHOD); @@ -721,6 +751,9 @@ public void initializePackageContents() { initEClass(ttsSimulatorEClass, TTSSimulator.class, "TTSSimulator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getTTSSimulator_Hostname(), ecorePackage.getEString(), "hostname", null, 0, 1, TTSSimulator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getTTSSimulator_Port(), ecorePackage.getEString(), "port", null, 0, 1, TTSSimulator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTTSSimulator_StepSizeMillis(), ecorePackage.getEDouble(), "stepSizeMillis", "20", 0, 1, TTSSimulator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTTSSimulator_UseStepping(), ecorePackage.getEBoolean(), "useStepping", "false", 0, 1, TTSSimulator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTTSSimulator_UseGUI(), ecorePackage.getEBoolean(), "useGUI", "false", 0, 1, TTSSimulator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Initialize enums and add enum literals initEEnum(parsingMethodEEnum, ParsingMethod.class, "ParsingMethod"); diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/impl/TTSSimulatorImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/impl/TTSSimulatorImpl.java index f4871b72..3c09d0e8 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/impl/TTSSimulatorImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/MRSPackage/impl/TTSSimulatorImpl.java @@ -21,6 +21,9 @@ *
      *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.impl.TTSSimulatorImpl#getHostname Hostname}
    • *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.impl.TTSSimulatorImpl#getPort Port}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.impl.TTSSimulatorImpl#getStepSizeMillis Step Size Millis}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.impl.TTSSimulatorImpl#isUseStepping Use Stepping}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.impl.TTSSimulatorImpl#isUseGUI Use GUI}
    • *
    * * @generated @@ -66,6 +69,66 @@ public class TTSSimulatorImpl extends SimulatorImpl implements TTSSimulator { */ protected String port = PORT_EDEFAULT; + /** + * The default value of the '{@link #getStepSizeMillis() Step Size Millis}' attribute. + * + * + * @see #getStepSizeMillis() + * @generated + * @ordered + */ + protected static final double STEP_SIZE_MILLIS_EDEFAULT = 20.0; + + /** + * The cached value of the '{@link #getStepSizeMillis() Step Size Millis}' attribute. + * + * + * @see #getStepSizeMillis() + * @generated + * @ordered + */ + protected double stepSizeMillis = STEP_SIZE_MILLIS_EDEFAULT; + + /** + * The default value of the '{@link #isUseStepping() Use Stepping}' attribute. + * + * + * @see #isUseStepping() + * @generated + * @ordered + */ + protected static final boolean USE_STEPPING_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUseStepping() Use Stepping}' attribute. + * + * + * @see #isUseStepping() + * @generated + * @ordered + */ + protected boolean useStepping = USE_STEPPING_EDEFAULT; + + /** + * The default value of the '{@link #isUseGUI() Use GUI}' attribute. + * + * + * @see #isUseGUI() + * @generated + * @ordered + */ + protected static final boolean USE_GUI_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUseGUI() Use GUI}' attribute. + * + * + * @see #isUseGUI() + * @generated + * @ordered + */ + protected boolean useGUI = USE_GUI_EDEFAULT; + /** * * @@ -127,6 +190,69 @@ public void setPort(String newPort) { eNotify(new ENotificationImpl(this, Notification.SET, MRSPackagePackage.TTS_SIMULATOR__PORT, oldPort, port)); } + /** + * + * + * @generated + */ + public double getStepSizeMillis() { + return stepSizeMillis; + } + + /** + * + * + * @generated + */ + public void setStepSizeMillis(double newStepSizeMillis) { + double oldStepSizeMillis = stepSizeMillis; + stepSizeMillis = newStepSizeMillis; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, MRSPackagePackage.TTS_SIMULATOR__STEP_SIZE_MILLIS, oldStepSizeMillis, stepSizeMillis)); + } + + /** + * + * + * @generated + */ + public boolean isUseStepping() { + return useStepping; + } + + /** + * + * + * @generated + */ + public void setUseStepping(boolean newUseStepping) { + boolean oldUseStepping = useStepping; + useStepping = newUseStepping; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, MRSPackagePackage.TTS_SIMULATOR__USE_STEPPING, oldUseStepping, useStepping)); + } + + /** + * + * + * @generated + */ + public boolean isUseGUI() { + return useGUI; + } + + /** + * + * + * @generated + */ + public void setUseGUI(boolean newUseGUI) { + boolean oldUseGUI = useGUI; + useGUI = newUseGUI; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, MRSPackagePackage.TTS_SIMULATOR__USE_GUI, oldUseGUI, useGUI)); + } + /** * * @@ -139,6 +265,12 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { return getHostname(); case MRSPackagePackage.TTS_SIMULATOR__PORT: return getPort(); + case MRSPackagePackage.TTS_SIMULATOR__STEP_SIZE_MILLIS: + return getStepSizeMillis(); + case MRSPackagePackage.TTS_SIMULATOR__USE_STEPPING: + return isUseStepping(); + case MRSPackagePackage.TTS_SIMULATOR__USE_GUI: + return isUseGUI(); } return super.eGet(featureID, resolve, coreType); } @@ -157,6 +289,15 @@ public void eSet(int featureID, Object newValue) { case MRSPackagePackage.TTS_SIMULATOR__PORT: setPort((String)newValue); return; + case MRSPackagePackage.TTS_SIMULATOR__STEP_SIZE_MILLIS: + setStepSizeMillis((Double)newValue); + return; + case MRSPackagePackage.TTS_SIMULATOR__USE_STEPPING: + setUseStepping((Boolean)newValue); + return; + case MRSPackagePackage.TTS_SIMULATOR__USE_GUI: + setUseGUI((Boolean)newValue); + return; } super.eSet(featureID, newValue); } @@ -175,6 +316,15 @@ public void eUnset(int featureID) { case MRSPackagePackage.TTS_SIMULATOR__PORT: setPort(PORT_EDEFAULT); return; + case MRSPackagePackage.TTS_SIMULATOR__STEP_SIZE_MILLIS: + setStepSizeMillis(STEP_SIZE_MILLIS_EDEFAULT); + return; + case MRSPackagePackage.TTS_SIMULATOR__USE_STEPPING: + setUseStepping(USE_STEPPING_EDEFAULT); + return; + case MRSPackagePackage.TTS_SIMULATOR__USE_GUI: + setUseGUI(USE_GUI_EDEFAULT); + return; } super.eUnset(featureID); } @@ -191,6 +341,12 @@ public boolean eIsSet(int featureID) { return HOSTNAME_EDEFAULT == null ? hostname != null : !HOSTNAME_EDEFAULT.equals(hostname); case MRSPackagePackage.TTS_SIMULATOR__PORT: return PORT_EDEFAULT == null ? port != null : !PORT_EDEFAULT.equals(port); + case MRSPackagePackage.TTS_SIMULATOR__STEP_SIZE_MILLIS: + return stepSizeMillis != STEP_SIZE_MILLIS_EDEFAULT; + case MRSPackagePackage.TTS_SIMULATOR__USE_STEPPING: + return useStepping != USE_STEPPING_EDEFAULT; + case MRSPackagePackage.TTS_SIMULATOR__USE_GUI: + return useGUI != USE_GUI_EDEFAULT; } return super.eIsSet(featureID); } @@ -209,6 +365,12 @@ public String toString() { result.append(hostname); result.append(", port: "); result.append(port); + result.append(", stepSizeMillis: "); + result.append(stepSizeMillis); + result.append(", useStepping: "); + result.append(useStepping); + result.append(", useGUI: "); + result.append(useGUI); result.append(')'); return result.toString(); } diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/MetricsFactory.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/MetricsFactory.java index f99b6b03..d11f74a0 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/MetricsFactory.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/MetricsFactory.java @@ -66,15 +66,6 @@ public interface MetricsFactory extends EFactory { */ MetricInstance createMetricInstance(); - /** - * Returns a new object of class 'Conditional Property Metric'. - * - * - * @return a new object of class 'Conditional Property Metric'. - * @generated - */ - ConditionalPropertyMetric createConditionalPropertyMetric(); - /** * Returns a new object of class 'Stream Metric'. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/MetricsPackage.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/MetricsPackage.java index 55e03a35..b23012c1 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/MetricsPackage.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/MetricsPackage.java @@ -488,106 +488,6 @@ public interface MetricsPackage extends EPackage { */ int PROPERTY_METRIC_OPERATION_COUNT = METRIC_OPERATION_COUNT + 0; - /** - * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.ConditionalPropertyMetricImpl Conditional Property Metric}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.ConditionalPropertyMetricImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.MetricsPackageImpl#getConditionalPropertyMetric() - * @generated - */ - int CONDITIONAL_PROPERTY_METRIC = 8; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int CONDITIONAL_PROPERTY_METRIC__NAME = PROPERTY_METRIC__NAME; - - /** - * The feature id for the 'Dir' attribute. - * - * - * @generated - * @ordered - */ - int CONDITIONAL_PROPERTY_METRIC__DIR = PROPERTY_METRIC__DIR; - - /** - * The feature id for the 'Related Variables' reference list. - * - * - * @generated - * @ordered - */ - int CONDITIONAL_PROPERTY_METRIC__RELATED_VARIABLES = PROPERTY_METRIC__RELATED_VARIABLES; - - /** - * The feature id for the 'Value If Not Received' containment reference. - * - * - * @generated - * @ordered - */ - int CONDITIONAL_PROPERTY_METRIC__VALUE_IF_NOT_RECEIVED = PROPERTY_METRIC__VALUE_IF_NOT_RECEIVED; - - /** - * The feature id for the 'Init Value' containment reference. - * - * - * @generated - * @ordered - */ - int CONDITIONAL_PROPERTY_METRIC__INIT_VALUE = PROPERTY_METRIC__INIT_VALUE; - - /** - * The feature id for the 'Use In Optimisation' attribute. - * - * - * @generated - * @ordered - */ - int CONDITIONAL_PROPERTY_METRIC__USE_IN_OPTIMISATION = PROPERTY_METRIC__USE_IN_OPTIMISATION; - - /** - * The feature id for the 'Property' reference. - * - * - * @generated - * @ordered - */ - int CONDITIONAL_PROPERTY_METRIC__PROPERTY = PROPERTY_METRIC__PROPERTY; - - /** - * The feature id for the 'Condition' attribute. - * - * - * @generated - * @ordered - */ - int CONDITIONAL_PROPERTY_METRIC__CONDITION = PROPERTY_METRIC_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Conditional Property Metric' class. - * - * - * @generated - * @ordered - */ - int CONDITIONAL_PROPERTY_METRIC_FEATURE_COUNT = PROPERTY_METRIC_FEATURE_COUNT + 1; - - /** - * The number of operations of the 'Conditional Property Metric' class. - * - * - * @generated - * @ordered - */ - int CONDITIONAL_PROPERTY_METRIC_OPERATION_COUNT = PROPERTY_METRIC_OPERATION_COUNT + 0; - /** * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.StreamMetricImpl Stream Metric}' class. * @@ -596,7 +496,7 @@ public interface MetricsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.MetricsPackageImpl#getStreamMetric() * @generated */ - int STREAM_METRIC = 9; + int STREAM_METRIC = 8; /** * The feature id for the 'Name' attribute. @@ -696,7 +596,7 @@ public interface MetricsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.MetricsPackageImpl#getSpecialMetric() * @generated */ - int SPECIAL_METRIC = 10; + int SPECIAL_METRIC = 9; /** * The feature id for the 'Name' attribute. @@ -796,7 +696,7 @@ public interface MetricsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.MetricsPackageImpl#getDirectMessageGenerationMetric() * @generated */ - int DIRECT_MESSAGE_GENERATION_METRIC = 11; + int DIRECT_MESSAGE_GENERATION_METRIC = 10; /** * The feature id for the 'Name' attribute. @@ -896,7 +796,7 @@ public interface MetricsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.MetricsPackageImpl#getStartEndTimingMetric() * @generated */ - int START_END_TIMING_METRIC = 12; + int START_END_TIMING_METRIC = 11; /** * The feature id for the 'Name' attribute. @@ -996,7 +896,7 @@ public interface MetricsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.MetricsPackageImpl#getFuzzingOperationTimesMetric() * @generated */ - int FUZZING_OPERATION_TIMES_METRIC = 13; + int FUZZING_OPERATION_TIMES_METRIC = 12; /** * The feature id for the 'Name' attribute. @@ -1096,7 +996,7 @@ public interface MetricsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.MetricsPackageImpl#getStreamResult() * @generated */ - int STREAM_RESULT = 14; + int STREAM_RESULT = 13; /** * The number of structural features of the 'Stream Result' class. @@ -1124,7 +1024,7 @@ public interface MetricsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.MetricsPackageImpl#getFileStreamResult() * @generated */ - int FILE_STREAM_RESULT = 15; + int FILE_STREAM_RESULT = 14; /** * The feature id for the 'Filename' attribute. @@ -1161,7 +1061,7 @@ public interface MetricsPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.MetricsPackageImpl#getMetricOptimisationDirection() * @generated */ - int METRIC_OPTIMISATION_DIRECTION = 16; + int METRIC_OPTIMISATION_DIRECTION = 15; /** @@ -1365,27 +1265,6 @@ public interface MetricsPackage extends EPackage { */ EReference getPropertyMetric_Property(); - /** - * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.ConditionalPropertyMetric Conditional Property Metric}'. - * - * - * @return the meta object for class 'Conditional Property Metric'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.ConditionalPropertyMetric - * @generated - */ - EClass getConditionalPropertyMetric(); - - /** - * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.ConditionalPropertyMetric#getCondition Condition}'. - * - * - * @return the meta object for the attribute 'Condition'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.ConditionalPropertyMetric#getCondition() - * @see #getConditionalPropertyMetric() - * @generated - */ - EAttribute getConditionalPropertyMetric_Condition(); - /** * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.StreamMetric Stream Metric}'. * @@ -1690,24 +1569,6 @@ interface Literals { */ EReference PROPERTY_METRIC__PROPERTY = eINSTANCE.getPropertyMetric_Property(); - /** - * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.ConditionalPropertyMetricImpl Conditional Property Metric}' class. - * - * - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.ConditionalPropertyMetricImpl - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.MetricsPackageImpl#getConditionalPropertyMetric() - * @generated - */ - EClass CONDITIONAL_PROPERTY_METRIC = eINSTANCE.getConditionalPropertyMetric(); - - /** - * The meta object literal for the 'Condition' attribute feature. - * - * - * @generated - */ - EAttribute CONDITIONAL_PROPERTY_METRIC__CONDITION = eINSTANCE.getConditionalPropertyMetric_Condition(); - /** * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.StreamMetricImpl Stream Metric}' class. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/ConditionalPropertyMetricImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/ConditionalPropertyMetricImpl.java deleted file mode 100644 index c9edfe44..00000000 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/ConditionalPropertyMetricImpl.java +++ /dev/null @@ -1,162 +0,0 @@ -/** - */ -package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.ConditionalPropertyMetric; -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.MetricsPackage; - -/** - * - * An implementation of the model object 'Conditional Property Metric'. - * - *

    - * The following features are implemented: - *

    - *
      - *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.impl.ConditionalPropertyMetricImpl#getCondition Condition}
    • - *
    - * - * @generated - */ -public class ConditionalPropertyMetricImpl extends PropertyMetricImpl implements ConditionalPropertyMetric { - /** - * The default value of the '{@link #getCondition() Condition}' attribute. - * - * - * @see #getCondition() - * @generated - * @ordered - */ - protected static final String CONDITION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getCondition() Condition}' attribute. - * - * - * @see #getCondition() - * @generated - * @ordered - */ - protected String condition = CONDITION_EDEFAULT; - - /** - * - * - * @generated - */ - protected ConditionalPropertyMetricImpl() { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() { - return MetricsPackage.Literals.CONDITIONAL_PROPERTY_METRIC; - } - - /** - * - * - * @generated - */ - public String getCondition() { - return condition; - } - - /** - * - * - * @generated - */ - public void setCondition(String newCondition) { - String oldCondition = condition; - condition = newCondition; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, MetricsPackage.CONDITIONAL_PROPERTY_METRIC__CONDITION, oldCondition, condition)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case MetricsPackage.CONDITIONAL_PROPERTY_METRIC__CONDITION: - return getCondition(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case MetricsPackage.CONDITIONAL_PROPERTY_METRIC__CONDITION: - setCondition((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case MetricsPackage.CONDITIONAL_PROPERTY_METRIC__CONDITION: - setCondition(CONDITION_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case MetricsPackage.CONDITIONAL_PROPERTY_METRIC__CONDITION: - return CONDITION_EDEFAULT == null ? condition != null : !CONDITION_EDEFAULT.equals(condition); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (condition: "); - result.append(condition); - result.append(')'); - return result.toString(); - } - -} //ConditionalPropertyMetricImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/MetricsFactoryImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/MetricsFactoryImpl.java index 47aae528..6a8d87ed 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/MetricsFactoryImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/MetricsFactoryImpl.java @@ -62,7 +62,6 @@ public EObject create(EClass eClass) { case MetricsPackage.METRIC_DEFAULT: return createMetricDefault(); case MetricsPackage.VARIABLE_METRIC: return createVariableMetric(); case MetricsPackage.METRIC_INSTANCE: return createMetricInstance(); - case MetricsPackage.CONDITIONAL_PROPERTY_METRIC: return createConditionalPropertyMetric(); case MetricsPackage.STREAM_METRIC: return createStreamMetric(); case MetricsPackage.START_END_TIMING_METRIC: return createStartEndTimingMetric(); case MetricsPackage.FUZZING_OPERATION_TIMES_METRIC: return createFuzzingOperationTimesMetric(); @@ -152,16 +151,6 @@ public MetricInstance createMetricInstance() { return metricInstance; } - /** - * - * - * @generated - */ - public ConditionalPropertyMetric createConditionalPropertyMetric() { - ConditionalPropertyMetricImpl conditionalPropertyMetric = new ConditionalPropertyMetricImpl(); - return conditionalPropertyMetric; - } - /** * * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/MetricsPackageImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/MetricsPackageImpl.java index 62b24481..22f899ff 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/MetricsPackageImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/impl/MetricsPackageImpl.java @@ -17,8 +17,6 @@ import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.MRSPackagePackage; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.impl.MRSPackagePackageImpl; - -import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.ConditionalPropertyMetric; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.DirectMessageGenerationMetric; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.FileStreamResult; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.FuzzingOperationTimesMetric; @@ -112,13 +110,6 @@ public class MetricsPackageImpl extends EPackageImpl implements MetricsPackage { */ private EClass propertyMetricEClass = null; - /** - * - * - * @generated - */ - private EClass conditionalPropertyMetricEClass = null; - /** * * @@ -429,24 +420,6 @@ public EReference getPropertyMetric_Property() { return (EReference)propertyMetricEClass.getEStructuralFeatures().get(0); } - /** - * - * - * @generated - */ - public EClass getConditionalPropertyMetric() { - return conditionalPropertyMetricEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getConditionalPropertyMetric_Condition() { - return (EAttribute)conditionalPropertyMetricEClass.getEStructuralFeatures().get(0); - } - /** * * @@ -601,9 +574,6 @@ public void createPackageContents() { propertyMetricEClass = createEClass(PROPERTY_METRIC); createEReference(propertyMetricEClass, PROPERTY_METRIC__PROPERTY); - conditionalPropertyMetricEClass = createEClass(CONDITIONAL_PROPERTY_METRIC); - createEAttribute(conditionalPropertyMetricEClass, CONDITIONAL_PROPERTY_METRIC__CONDITION); - streamMetricEClass = createEClass(STREAM_METRIC); createEReference(streamMetricEClass, STREAM_METRIC__STREAMS); createEReference(streamMetricEClass, STREAM_METRIC__RES); @@ -661,7 +631,6 @@ public void initializePackageContents() { outputStreamEClass.getESuperTypes().add(this.getSimStream()); variableMetricEClass.getESuperTypes().add(this.getMetric()); propertyMetricEClass.getESuperTypes().add(this.getMetric()); - conditionalPropertyMetricEClass.getESuperTypes().add(this.getPropertyMetric()); streamMetricEClass.getESuperTypes().add(this.getMetric()); specialMetricEClass.getESuperTypes().add(this.getStreamMetric()); directMessageGenerationMetricEClass.getESuperTypes().add(this.getStreamMetric()); @@ -697,9 +666,6 @@ public void initializePackageContents() { initEClass(propertyMetricEClass, PropertyMetric.class, "PropertyMetric", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getPropertyMetric_Property(), theMRSPackagePackage.getComponentProperty(), null, "property", null, 1, 1, PropertyMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEClass(conditionalPropertyMetricEClass, ConditionalPropertyMetric.class, "ConditionalPropertyMetric", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getConditionalPropertyMetric_Condition(), ecorePackage.getEString(), "condition", null, 0, 1, ConditionalPropertyMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEClass(streamMetricEClass, StreamMetric.class, "StreamMetric", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getStreamMetric_Streams(), this.getSimStream(), null, "streams", null, 0, -1, StreamMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getStreamMetric_Res(), this.getStreamResult(), null, "res", null, 0, 1, StreamMetric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/util/MetricsAdapterFactory.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/util/MetricsAdapterFactory.java index ac654a2e..bbef5e7c 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/util/MetricsAdapterFactory.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/util/MetricsAdapterFactory.java @@ -100,10 +100,6 @@ public Adapter casePropertyMetric(PropertyMetric object) { return createPropertyMetricAdapter(); } @Override - public Adapter caseConditionalPropertyMetric(ConditionalPropertyMetric object) { - return createConditionalPropertyMetricAdapter(); - } - @Override public Adapter caseStreamMetric(StreamMetric object) { return createStreamMetricAdapter(); } @@ -263,20 +259,6 @@ public Adapter createPropertyMetricAdapter() { return null; } - /** - * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.ConditionalPropertyMetric Conditional Property Metric}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.ConditionalPropertyMetric - * @generated - */ - public Adapter createConditionalPropertyMetricAdapter() { - return null; - } - /** * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.StreamMetric Stream Metric}'. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/util/MetricsSwitch.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/util/MetricsSwitch.java index 85f15a48..f20f1472 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/util/MetricsSwitch.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/Metrics/util/MetricsSwitch.java @@ -118,14 +118,6 @@ protected T doSwitch(int classifierID, EObject theEObject) { if (result == null) result = defaultCase(theEObject); return result; } - case MetricsPackage.CONDITIONAL_PROPERTY_METRIC: { - ConditionalPropertyMetric conditionalPropertyMetric = (ConditionalPropertyMetric)theEObject; - T result = caseConditionalPropertyMetric(conditionalPropertyMetric); - if (result == null) result = casePropertyMetric(conditionalPropertyMetric); - if (result == null) result = caseMetric(conditionalPropertyMetric); - if (result == null) result = defaultCase(theEObject); - return result; - } case MetricsPackage.STREAM_METRIC: { StreamMetric streamMetric = (StreamMetric)theEObject; T result = caseStreamMetric(streamMetric); @@ -304,21 +296,6 @@ public T casePropertyMetric(PropertyMetric object) { return null; } - /** - * Returns the result of interpreting the object as an instance of 'Conditional Property Metric'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Conditional Property Metric'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseConditionalPropertyMetric(ConditionalPropertyMetric object) { - return null; - } - /** * Returns the result of interpreting the object as an instance of 'Stream Metric'. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/NSGAWithCoverageCells.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/NSGAWithCoverageCells.java index 5509282e..0228188e 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/NSGAWithCoverageCells.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/NSGAWithCoverageCells.java @@ -14,8 +14,9 @@ *

    *
      *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getCoveragePerCell Coverage Per Cell}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getTargetCoverageProportion Target Coverage Proportion}
    • *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getDimensionRecords Dimension Records}
    • - *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#isUseMutationEnhancingCoverage Use Mutation Enhancing Coverage}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getCoverageBoostingStrategy Coverage Boosting Strategy}
    • *
    * * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getNSGAWithCoverageCells() @@ -45,6 +46,28 @@ public interface NSGAWithCoverageCells extends NSGAEvolutionaryAlgorithm { */ void setCoveragePerCell(int value); + /** + * Returns the value of the 'Target Coverage Proportion' attribute. + * + * + * @return the value of the 'Target Coverage Proportion' attribute. + * @see #setTargetCoverageProportion(double) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getNSGAWithCoverageCells_TargetCoverageProportion() + * @model + * @generated + */ + double getTargetCoverageProportion(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getTargetCoverageProportion Target Coverage Proportion}' attribute. + * + * + * @param value the new value of the 'Target Coverage Proportion' attribute. + * @see #getTargetCoverageProportion() + * @generated + */ + void setTargetCoverageProportion(double value); + /** * Returns the value of the 'Dimension Records' containment reference list. * The list contents are of type {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval}. @@ -58,26 +81,25 @@ public interface NSGAWithCoverageCells extends NSGAEvolutionaryAlgorithm { EList getDimensionRecords(); /** - * Returns the value of the 'Use Mutation Enhancing Coverage' attribute. - * The default value is "false". + * Returns the value of the 'Coverage Boosting Strategy' containment reference. * * - * @return the value of the 'Use Mutation Enhancing Coverage' attribute. - * @see #setUseMutationEnhancingCoverage(boolean) - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getNSGAWithCoverageCells_UseMutationEnhancingCoverage() - * @model default="false" + * @return the value of the 'Coverage Boosting Strategy' containment reference. + * @see #setCoverageBoostingStrategy(CoverageBoostingStrategy) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage#getNSGAWithCoverageCells_CoverageBoostingStrategy() + * @model containment="true" * @generated */ - boolean isUseMutationEnhancingCoverage(); + CoverageBoostingStrategy getCoverageBoostingStrategy(); /** - * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#isUseMutationEnhancingCoverage Use Mutation Enhancing Coverage}' attribute. + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getCoverageBoostingStrategy Coverage Boosting Strategy}' containment reference. * * - * @param value the new value of the 'Use Mutation Enhancing Coverage' attribute. - * @see #isUseMutationEnhancingCoverage() + * @param value the new value of the 'Coverage Boosting Strategy' containment reference. + * @see #getCoverageBoostingStrategy() * @generated */ - void setUseMutationEnhancingCoverage(boolean value); + void setCoverageBoostingStrategy(CoverageBoostingStrategy value); } // NSGAWithCoverageCells diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ConditionConstraint.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ConditionConstraint.java new file mode 100644 index 00000000..18c94f25 --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ConditionConstraint.java @@ -0,0 +1,18 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar; + +import org.eclipse.emf.ecore.EObject; + +/** + * + * A representation of the model object 'Condition Constraint'. + * + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarPackage#getConditionConstraint() + * @model abstract="true" + * @generated + */ +public interface ConditionConstraint extends EObject { +} // ConditionConstraint diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ContainsInteger.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ContainsInteger.java new file mode 100644 index 00000000..87969a4d --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ContainsInteger.java @@ -0,0 +1,68 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar; + + +/** + * + * A representation of the model object 'Contains Integer'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger#getMinValue Min Value}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger#getMaxValue Max Value}
    • + *
    + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarPackage#getContainsInteger() + * @model + * @generated + */ +public interface ContainsInteger extends ConditionConstraint { + /** + * Returns the value of the 'Min Value' attribute. + * + * + * @return the value of the 'Min Value' attribute. + * @see #setMinValue(int) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarPackage#getContainsInteger_MinValue() + * @model + * @generated + */ + int getMinValue(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger#getMinValue Min Value}' attribute. + * + * + * @param value the new value of the 'Min Value' attribute. + * @see #getMinValue() + * @generated + */ + void setMinValue(int value); + + /** + * Returns the value of the 'Max Value' attribute. + * + * + * @return the value of the 'Max Value' attribute. + * @see #setMaxValue(int) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarPackage#getContainsInteger_MaxValue() + * @model + * @generated + */ + int getMaxValue(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger#getMaxValue Max Value}' attribute. + * + * + * @param value the new value of the 'Max Value' attribute. + * @see #getMaxValue() + * @generated + */ + void setMaxValue(int value); + +} // ContainsInteger diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ContainsVariable.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ContainsVariable.java new file mode 100644 index 00000000..cbb9e257 --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/ContainsVariable.java @@ -0,0 +1,46 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar; + +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.Metric; + +/** + * + * A representation of the model object 'Contains Variable'. + * + * + *

    + * The following features are supported: + *

    + *
      + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsVariable#getMetric Metric}
    • + *
    + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarPackage#getContainsVariable() + * @model + * @generated + */ +public interface ContainsVariable extends ConditionConstraint { + /** + * Returns the value of the 'Metric' reference. + * + * + * @return the value of the 'Metric' reference. + * @see #setMetric(Metric) + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarPackage#getContainsVariable_Metric() + * @model required="true" + * @generated + */ + Metric getMetric(); + + /** + * Sets the value of the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsVariable#getMetric Metric}' reference. + * + * + * @param value the new value of the 'Metric' reference. + * @see #getMetric() + * @generated + */ + void setMetric(Metric value); + +} // ContainsVariable diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/StandardGrammarFactory.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/StandardGrammarFactory.java index 489999da..b11847c4 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/StandardGrammarFactory.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/StandardGrammarFactory.java @@ -66,6 +66,24 @@ public interface StandardGrammarFactory extends EFactory { */ Condition createCondition(); + /** + * Returns a new object of class 'Contains Variable'. + * + * + * @return a new object of class 'Contains Variable'. + * @generated + */ + ContainsVariable createContainsVariable(); + + /** + * Returns a new object of class 'Contains Integer'. + * + * + * @return a new object of class 'Contains Integer'. + * @generated + */ + ContainsInteger createContainsInteger(); + /** * Returns the package supported by this factory. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/StandardGrammarPackage.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/StandardGrammarPackage.java index 91767ce6..ec6b7c80 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/StandardGrammarPackage.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/StandardGrammarPackage.java @@ -343,6 +343,117 @@ public interface StandardGrammarPackage extends EPackage { */ int CONDITION_OPERATION_COUNT = 0; + /** + * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ConditionConstraintImpl Condition Constraint}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ConditionConstraintImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.StandardGrammarPackageImpl#getConditionConstraint() + * @generated + */ + int CONDITION_CONSTRAINT = 7; + + /** + * The number of structural features of the 'Condition Constraint' class. + * + * + * @generated + * @ordered + */ + int CONDITION_CONSTRAINT_FEATURE_COUNT = 0; + + /** + * The number of operations of the 'Condition Constraint' class. + * + * + * @generated + * @ordered + */ + int CONDITION_CONSTRAINT_OPERATION_COUNT = 0; + + /** + * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsVariableImpl Contains Variable}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsVariableImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.StandardGrammarPackageImpl#getContainsVariable() + * @generated + */ + int CONTAINS_VARIABLE = 8; + + /** + * The feature id for the 'Metric' reference. + * + * + * @generated + * @ordered + */ + int CONTAINS_VARIABLE__METRIC = CONDITION_CONSTRAINT_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'Contains Variable' class. + * + * + * @generated + * @ordered + */ + int CONTAINS_VARIABLE_FEATURE_COUNT = CONDITION_CONSTRAINT_FEATURE_COUNT + 1; + + /** + * The number of operations of the 'Contains Variable' class. + * + * + * @generated + * @ordered + */ + int CONTAINS_VARIABLE_OPERATION_COUNT = CONDITION_CONSTRAINT_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsIntegerImpl Contains Integer}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsIntegerImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.StandardGrammarPackageImpl#getContainsInteger() + * @generated + */ + int CONTAINS_INTEGER = 9; + + /** + * The feature id for the 'Min Value' attribute. + * + * + * @generated + * @ordered + */ + int CONTAINS_INTEGER__MIN_VALUE = CONDITION_CONSTRAINT_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Max Value' attribute. + * + * + * @generated + * @ordered + */ + int CONTAINS_INTEGER__MAX_VALUE = CONDITION_CONSTRAINT_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Contains Integer' class. + * + * + * @generated + * @ordered + */ + int CONTAINS_INTEGER_FEATURE_COUNT = CONDITION_CONSTRAINT_FEATURE_COUNT + 2; + + /** + * The number of operations of the 'Contains Integer' class. + * + * + * @generated + * @ordered + */ + int CONTAINS_INTEGER_OPERATION_COUNT = CONDITION_CONSTRAINT_OPERATION_COUNT + 0; + /** * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.BinaryComparisonOperation Binary Comparison Operation}' enum. * @@ -351,7 +462,7 @@ public interface StandardGrammarPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.StandardGrammarPackageImpl#getBinaryComparisonOperation() * @generated */ - int BINARY_COMPARISON_OPERATION = 7; + int BINARY_COMPARISON_OPERATION = 10; /** * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.BinaryLogicalOperation Binary Logical Operation}' enum. @@ -361,7 +472,7 @@ public interface StandardGrammarPackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.StandardGrammarPackageImpl#getBinaryLogicalOperation() * @generated */ - int BINARY_LOGICAL_OPERATION = 8; + int BINARY_LOGICAL_OPERATION = 11; /** @@ -544,6 +655,69 @@ public interface StandardGrammarPackage extends EPackage { */ EReference getCondition_C(); + /** + * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionConstraint Condition Constraint}'. + * + * + * @return the meta object for class 'Condition Constraint'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionConstraint + * @generated + */ + EClass getConditionConstraint(); + + /** + * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsVariable Contains Variable}'. + * + * + * @return the meta object for class 'Contains Variable'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsVariable + * @generated + */ + EClass getContainsVariable(); + + /** + * Returns the meta object for the reference '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsVariable#getMetric Metric}'. + * + * + * @return the meta object for the reference 'Metric'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsVariable#getMetric() + * @see #getContainsVariable() + * @generated + */ + EReference getContainsVariable_Metric(); + + /** + * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger Contains Integer}'. + * + * + * @return the meta object for class 'Contains Integer'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger + * @generated + */ + EClass getContainsInteger(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger#getMinValue Min Value}'. + * + * + * @return the meta object for the attribute 'Min Value'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger#getMinValue() + * @see #getContainsInteger() + * @generated + */ + EAttribute getContainsInteger_MinValue(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger#getMaxValue Max Value}'. + * + * + * @return the meta object for the attribute 'Max Value'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger#getMaxValue() + * @see #getContainsInteger() + * @generated + */ + EAttribute getContainsInteger_MaxValue(); + /** * Returns the meta object for enum '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.BinaryComparisonOperation Binary Comparison Operation}'. * @@ -737,6 +911,60 @@ interface Literals { */ EReference CONDITION__C = eINSTANCE.getCondition_C(); + /** + * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ConditionConstraintImpl Condition Constraint}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ConditionConstraintImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.StandardGrammarPackageImpl#getConditionConstraint() + * @generated + */ + EClass CONDITION_CONSTRAINT = eINSTANCE.getConditionConstraint(); + + /** + * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsVariableImpl Contains Variable}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsVariableImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.StandardGrammarPackageImpl#getContainsVariable() + * @generated + */ + EClass CONTAINS_VARIABLE = eINSTANCE.getContainsVariable(); + + /** + * The meta object literal for the 'Metric' reference feature. + * + * + * @generated + */ + EReference CONTAINS_VARIABLE__METRIC = eINSTANCE.getContainsVariable_Metric(); + + /** + * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsIntegerImpl Contains Integer}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsIntegerImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.StandardGrammarPackageImpl#getContainsInteger() + * @generated + */ + EClass CONTAINS_INTEGER = eINSTANCE.getContainsInteger(); + + /** + * The meta object literal for the 'Min Value' attribute feature. + * + * + * @generated + */ + EAttribute CONTAINS_INTEGER__MIN_VALUE = eINSTANCE.getContainsInteger_MinValue(); + + /** + * The meta object literal for the 'Max Value' attribute feature. + * + * + * @generated + */ + EAttribute CONTAINS_INTEGER__MAX_VALUE = eINSTANCE.getContainsInteger_MaxValue(); + /** * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.BinaryComparisonOperation Binary Comparison Operation}' enum. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ConditionConstraintImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ConditionConstraintImpl.java new file mode 100644 index 00000000..790646a9 --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ConditionConstraintImpl.java @@ -0,0 +1,39 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionConstraint; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarPackage; + +/** + * + * An implementation of the model object 'Condition Constraint'. + * + * + * @generated + */ +public abstract class ConditionConstraintImpl extends MinimalEObjectImpl.Container implements ConditionConstraint { + /** + * + * + * @generated + */ + protected ConditionConstraintImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return StandardGrammarPackage.Literals.CONDITION_CONSTRAINT; + } + +} //ConditionConstraintImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ContainsIntegerImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ContainsIntegerImpl.java new file mode 100644 index 00000000..8aca2860 --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ContainsIntegerImpl.java @@ -0,0 +1,216 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarPackage; + +/** + * + * An implementation of the model object 'Contains Integer'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsIntegerImpl#getMinValue Min Value}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsIntegerImpl#getMaxValue Max Value}
    • + *
    + * + * @generated + */ +public class ContainsIntegerImpl extends ConditionConstraintImpl implements ContainsInteger { + /** + * The default value of the '{@link #getMinValue() Min Value}' attribute. + * + * + * @see #getMinValue() + * @generated + * @ordered + */ + protected static final int MIN_VALUE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMinValue() Min Value}' attribute. + * + * + * @see #getMinValue() + * @generated + * @ordered + */ + protected int minValue = MIN_VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getMaxValue() Max Value}' attribute. + * + * + * @see #getMaxValue() + * @generated + * @ordered + */ + protected static final int MAX_VALUE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getMaxValue() Max Value}' attribute. + * + * + * @see #getMaxValue() + * @generated + * @ordered + */ + protected int maxValue = MAX_VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected ContainsIntegerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return StandardGrammarPackage.Literals.CONTAINS_INTEGER; + } + + /** + * + * + * @generated + */ + public int getMinValue() { + return minValue; + } + + /** + * + * + * @generated + */ + public void setMinValue(int newMinValue) { + int oldMinValue = minValue; + minValue = newMinValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, StandardGrammarPackage.CONTAINS_INTEGER__MIN_VALUE, oldMinValue, minValue)); + } + + /** + * + * + * @generated + */ + public int getMaxValue() { + return maxValue; + } + + /** + * + * + * @generated + */ + public void setMaxValue(int newMaxValue) { + int oldMaxValue = maxValue; + maxValue = newMaxValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, StandardGrammarPackage.CONTAINS_INTEGER__MAX_VALUE, oldMaxValue, maxValue)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case StandardGrammarPackage.CONTAINS_INTEGER__MIN_VALUE: + return getMinValue(); + case StandardGrammarPackage.CONTAINS_INTEGER__MAX_VALUE: + return getMaxValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case StandardGrammarPackage.CONTAINS_INTEGER__MIN_VALUE: + setMinValue((Integer)newValue); + return; + case StandardGrammarPackage.CONTAINS_INTEGER__MAX_VALUE: + setMaxValue((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case StandardGrammarPackage.CONTAINS_INTEGER__MIN_VALUE: + setMinValue(MIN_VALUE_EDEFAULT); + return; + case StandardGrammarPackage.CONTAINS_INTEGER__MAX_VALUE: + setMaxValue(MAX_VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case StandardGrammarPackage.CONTAINS_INTEGER__MIN_VALUE: + return minValue != MIN_VALUE_EDEFAULT; + case StandardGrammarPackage.CONTAINS_INTEGER__MAX_VALUE: + return maxValue != MAX_VALUE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (minValue: "); + result.append(minValue); + result.append(", maxValue: "); + result.append(maxValue); + result.append(')'); + return result.toString(); + } + +} //ContainsIntegerImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ContainsVariableImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ContainsVariableImpl.java new file mode 100644 index 00000000..7e5f8e0c --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/ContainsVariableImpl.java @@ -0,0 +1,157 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.Metrics.Metric; + +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsVariable; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarPackage; + +/** + * + * An implementation of the model object 'Contains Variable'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.impl.ContainsVariableImpl#getMetric Metric}
    • + *
    + * + * @generated + */ +public class ContainsVariableImpl extends ConditionConstraintImpl implements ContainsVariable { + /** + * The cached value of the '{@link #getMetric() Metric}' reference. + * + * + * @see #getMetric() + * @generated + * @ordered + */ + protected Metric metric; + + /** + * + * + * @generated + */ + protected ContainsVariableImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return StandardGrammarPackage.Literals.CONTAINS_VARIABLE; + } + + /** + * + * + * @generated + */ + public Metric getMetric() { + if (metric != null && metric.eIsProxy()) { + InternalEObject oldMetric = (InternalEObject)metric; + metric = (Metric)eResolveProxy(oldMetric); + if (metric != oldMetric) { + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, StandardGrammarPackage.CONTAINS_VARIABLE__METRIC, oldMetric, metric)); + } + } + return metric; + } + + /** + * + * + * @generated + */ + public Metric basicGetMetric() { + return metric; + } + + /** + * + * + * @generated + */ + public void setMetric(Metric newMetric) { + Metric oldMetric = metric; + metric = newMetric; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, StandardGrammarPackage.CONTAINS_VARIABLE__METRIC, oldMetric, metric)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case StandardGrammarPackage.CONTAINS_VARIABLE__METRIC: + if (resolve) return getMetric(); + return basicGetMetric(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case StandardGrammarPackage.CONTAINS_VARIABLE__METRIC: + setMetric((Metric)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case StandardGrammarPackage.CONTAINS_VARIABLE__METRIC: + setMetric((Metric)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case StandardGrammarPackage.CONTAINS_VARIABLE__METRIC: + return metric != null; + } + return super.eIsSet(featureID); + } + +} //ContainsVariableImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/StandardGrammarFactoryImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/StandardGrammarFactoryImpl.java index d7505b96..8d5e4bc6 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/StandardGrammarFactoryImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/StandardGrammarFactoryImpl.java @@ -62,6 +62,8 @@ public EObject create(EClass eClass) { case StandardGrammarPackage.CONDITION_INTEGER: return createConditionInteger(); case StandardGrammarPackage.CONDITION_VARIABLE: return createConditionVariable(); case StandardGrammarPackage.CONDITION: return createCondition(); + case StandardGrammarPackage.CONTAINS_VARIABLE: return createContainsVariable(); + case StandardGrammarPackage.CONTAINS_INTEGER: return createContainsInteger(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } @@ -151,6 +153,26 @@ public Condition createCondition() { return condition; } + /** + * + * + * @generated + */ + public ContainsVariable createContainsVariable() { + ContainsVariableImpl containsVariable = new ContainsVariableImpl(); + return containsVariable; + } + + /** + * + * + * @generated + */ + public ContainsInteger createContainsInteger() { + ContainsIntegerImpl containsInteger = new ContainsIntegerImpl(); + return containsInteger; + } + /** * * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/StandardGrammarPackageImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/StandardGrammarPackageImpl.java index 721468a5..62d4510b 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/StandardGrammarPackageImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/impl/StandardGrammarPackageImpl.java @@ -31,10 +31,13 @@ import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.BinaryLogicalOperation; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.CompositeCondition; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.Condition; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionConstraint; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionElement; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionExpr; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionInteger; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionVariable; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsVariable; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarFactory; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.StandardGrammarPackage; @@ -98,6 +101,27 @@ public class StandardGrammarPackageImpl extends EPackageImpl implements Standard */ private EClass conditionEClass = null; + /** + * + * + * @generated + */ + private EClass conditionConstraintEClass = null; + + /** + * + * + * @generated + */ + private EClass containsVariableEClass = null; + + /** + * + * + * @generated + */ + private EClass containsIntegerEClass = null; + /** * * @@ -348,6 +372,60 @@ public EReference getCondition_C() { return (EReference)conditionEClass.getEStructuralFeatures().get(1); } + /** + * + * + * @generated + */ + public EClass getConditionConstraint() { + return conditionConstraintEClass; + } + + /** + * + * + * @generated + */ + public EClass getContainsVariable() { + return containsVariableEClass; + } + + /** + * + * + * @generated + */ + public EReference getContainsVariable_Metric() { + return (EReference)containsVariableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getContainsInteger() { + return containsIntegerEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getContainsInteger_MinValue() { + return (EAttribute)containsIntegerEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getContainsInteger_MaxValue() { + return (EAttribute)containsIntegerEClass.getEStructuralFeatures().get(1); + } + /** * * @@ -418,6 +496,15 @@ public void createPackageContents() { createEAttribute(conditionEClass, CONDITION__NAME); createEReference(conditionEClass, CONDITION__C); + conditionConstraintEClass = createEClass(CONDITION_CONSTRAINT); + + containsVariableEClass = createEClass(CONTAINS_VARIABLE); + createEReference(containsVariableEClass, CONTAINS_VARIABLE__METRIC); + + containsIntegerEClass = createEClass(CONTAINS_INTEGER); + createEAttribute(containsIntegerEClass, CONTAINS_INTEGER__MIN_VALUE); + createEAttribute(containsIntegerEClass, CONTAINS_INTEGER__MAX_VALUE); + // Create enums binaryComparisonOperationEEnum = createEEnum(BINARY_COMPARISON_OPERATION); binaryLogicalOperationEEnum = createEEnum(BINARY_LOGICAL_OPERATION); @@ -458,6 +545,8 @@ public void initializePackageContents() { basicConditionEClass.getESuperTypes().add(this.getConditionElement()); conditionIntegerEClass.getESuperTypes().add(this.getConditionExpr()); conditionVariableEClass.getESuperTypes().add(this.getConditionExpr()); + containsVariableEClass.getESuperTypes().add(this.getConditionConstraint()); + containsIntegerEClass.getESuperTypes().add(this.getConditionConstraint()); // Initialize classes, features, and operations; add parameters initEClass(conditionElementEClass, ConditionElement.class, "ConditionElement", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); @@ -484,6 +573,15 @@ public void initializePackageContents() { initEAttribute(getCondition_Name(), ecorePackage.getEString(), "name", null, 0, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getCondition_C(), this.getConditionElement(), null, "c", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEClass(conditionConstraintEClass, ConditionConstraint.class, "ConditionConstraint", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(containsVariableEClass, ContainsVariable.class, "ContainsVariable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getContainsVariable_Metric(), theMetricsPackage.getMetric(), null, "metric", null, 1, 1, ContainsVariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containsIntegerEClass, ContainsInteger.class, "ContainsInteger", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getContainsInteger_MinValue(), ecorePackage.getEInt(), "minValue", null, 0, 1, ContainsInteger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getContainsInteger_MaxValue(), ecorePackage.getEInt(), "maxValue", null, 0, 1, ContainsInteger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + // Initialize enums and add enum literals initEEnum(binaryComparisonOperationEEnum, BinaryComparisonOperation.class, "BinaryComparisonOperation"); addEEnumLiteral(binaryComparisonOperationEEnum, BinaryComparisonOperation.LESS_THAN); diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/util/StandardGrammarAdapterFactory.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/util/StandardGrammarAdapterFactory.java index fd87d63b..f923568a 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/util/StandardGrammarAdapterFactory.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/util/StandardGrammarAdapterFactory.java @@ -96,6 +96,18 @@ public Adapter caseCondition(Condition object) { return createConditionAdapter(); } @Override + public Adapter caseConditionConstraint(ConditionConstraint object) { + return createConditionConstraintAdapter(); + } + @Override + public Adapter caseContainsVariable(ContainsVariable object) { + return createContainsVariableAdapter(); + } + @Override + public Adapter caseContainsInteger(ContainsInteger object) { + return createContainsIntegerAdapter(); + } + @Override public Adapter defaultCase(EObject object) { return createEObjectAdapter(); } @@ -213,6 +225,48 @@ public Adapter createConditionAdapter() { return null; } + /** + * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionConstraint Condition Constraint}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ConditionConstraint + * @generated + */ + public Adapter createConditionConstraintAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsVariable Contains Variable}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsVariable + * @generated + */ + public Adapter createContainsVariableAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger Contains Integer}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.StandardGrammar.ContainsInteger + * @generated + */ + public Adapter createContainsIntegerAdapter() { + return null; + } + /** * Creates a new adapter for the default case. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/util/StandardGrammarSwitch.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/util/StandardGrammarSwitch.java index 7276ec76..f230f0a2 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/util/StandardGrammarSwitch.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/StandardGrammar/util/StandardGrammarSwitch.java @@ -112,6 +112,26 @@ protected T doSwitch(int classifierID, EObject theEObject) { if (result == null) result = defaultCase(theEObject); return result; } + case StandardGrammarPackage.CONDITION_CONSTRAINT: { + ConditionConstraint conditionConstraint = (ConditionConstraint)theEObject; + T result = caseConditionConstraint(conditionConstraint); + if (result == null) result = defaultCase(theEObject); + return result; + } + case StandardGrammarPackage.CONTAINS_VARIABLE: { + ContainsVariable containsVariable = (ContainsVariable)theEObject; + T result = caseContainsVariable(containsVariable); + if (result == null) result = caseConditionConstraint(containsVariable); + if (result == null) result = defaultCase(theEObject); + return result; + } + case StandardGrammarPackage.CONTAINS_INTEGER: { + ContainsInteger containsInteger = (ContainsInteger)theEObject; + T result = caseContainsInteger(containsInteger); + if (result == null) result = caseConditionConstraint(containsInteger); + if (result == null) result = defaultCase(theEObject); + return result; + } default: return defaultCase(theEObject); } } @@ -221,6 +241,51 @@ public T caseCondition(Condition object) { return null; } + /** + * Returns the result of interpreting the object as an instance of 'Condition Constraint'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Condition Constraint'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseConditionConstraint(ConditionConstraint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Contains Variable'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Contains Variable'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainsVariable(ContainsVariable object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Contains Integer'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Contains Integer'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseContainsInteger(ContainsInteger object) { + return null; + } + /** * Returns the result of interpreting the object as an instance of 'EObject'. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/TestingPackageFactory.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/TestingPackageFactory.java index 6c27ad87..97bcf734 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/TestingPackageFactory.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/TestingPackageFactory.java @@ -120,6 +120,24 @@ public interface TestingPackageFactory extends EFactory { */ NSGAWithCoverageCells createNSGAWithCoverageCells(); + /** + * Returns a new object of class 'Fixed NSGA Coverage Boosting Strategy'. + * + * + * @return a new object of class 'Fixed NSGA Coverage Boosting Strategy'. + * @generated + */ + FixedNSGACoverageBoostingStrategy createFixedNSGACoverageBoostingStrategy(); + + /** + * Returns a new object of class 'Linear NSGA Coverage Boosting Strategy'. + * + * + * @return a new object of class 'Linear NSGA Coverage Boosting Strategy'. + * @generated + */ + LinearNSGACoverageBoostingStrategy createLinearNSGACoverageBoostingStrategy(); + /** * Returns a new object of class 'Dimension Interval'. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/TestingPackagePackage.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/TestingPackagePackage.java index f64f0386..ebea8e52 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/TestingPackagePackage.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/TestingPackagePackage.java @@ -5,6 +5,7 @@ import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; @@ -757,6 +758,15 @@ public interface TestingPackagePackage extends EPackage { */ int NSGA_WITH_COVERAGE_CELLS__COVERAGE_PER_CELL = NSGA_EVOLUTIONARY_ALGORITHM_FEATURE_COUNT + 0; + /** + * The feature id for the 'Target Coverage Proportion' attribute. + * + * + * @generated + * @ordered + */ + int NSGA_WITH_COVERAGE_CELLS__TARGET_COVERAGE_PROPORTION = NSGA_EVOLUTIONARY_ALGORITHM_FEATURE_COUNT + 1; + /** * The feature id for the 'Dimension Records' containment reference list. * @@ -764,16 +774,16 @@ public interface TestingPackagePackage extends EPackage { * @generated * @ordered */ - int NSGA_WITH_COVERAGE_CELLS__DIMENSION_RECORDS = NSGA_EVOLUTIONARY_ALGORITHM_FEATURE_COUNT + 1; + int NSGA_WITH_COVERAGE_CELLS__DIMENSION_RECORDS = NSGA_EVOLUTIONARY_ALGORITHM_FEATURE_COUNT + 2; /** - * The feature id for the 'Use Mutation Enhancing Coverage' attribute. + * The feature id for the 'Coverage Boosting Strategy' containment reference. * * * @generated * @ordered */ - int NSGA_WITH_COVERAGE_CELLS__USE_MUTATION_ENHANCING_COVERAGE = NSGA_EVOLUTIONARY_ALGORITHM_FEATURE_COUNT + 2; + int NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY = NSGA_EVOLUTIONARY_ALGORITHM_FEATURE_COUNT + 3; /** * The number of structural features of the 'NSGA With Coverage Cells' class. @@ -782,7 +792,7 @@ public interface TestingPackagePackage extends EPackage { * @generated * @ordered */ - int NSGA_WITH_COVERAGE_CELLS_FEATURE_COUNT = NSGA_EVOLUTIONARY_ALGORITHM_FEATURE_COUNT + 3; + int NSGA_WITH_COVERAGE_CELLS_FEATURE_COUNT = NSGA_EVOLUTIONARY_ALGORITHM_FEATURE_COUNT + 4; /** * The number of operations of the 'NSGA With Coverage Cells' class. @@ -793,6 +803,171 @@ public interface TestingPackagePackage extends EPackage { */ int NSGA_WITH_COVERAGE_CELLS_OPERATION_COUNT = NSGA_EVOLUTIONARY_ALGORITHM_OPERATION_COUNT + 0; + /** + * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.CoverageBoostingStrategyImpl Coverage Boosting Strategy}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.CoverageBoostingStrategyImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.TestingPackagePackageImpl#getCoverageBoostingStrategy() + * @generated + */ + int COVERAGE_BOOSTING_STRATEGY = 16; + + /** + * The number of structural features of the 'Coverage Boosting Strategy' class. + * + * + * @generated + * @ordered + */ + int COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT = 0; + + /** + * The operation id for the 'Element Should Use Coverage Boosting' operation. + * + * + * @generated + * @ordered + */ + int COVERAGE_BOOSTING_STRATEGY___ELEMENT_SHOULD_USE_COVERAGE_BOOSTING__INT_INT_INT = 0; + + /** + * The number of operations of the 'Coverage Boosting Strategy' class. + * + * + * @generated + * @ordered + */ + int COVERAGE_BOOSTING_STRATEGY_OPERATION_COUNT = 1; + + /** + * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.FixedNSGACoverageBoostingStrategyImpl Fixed NSGA Coverage Boosting Strategy}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.FixedNSGACoverageBoostingStrategyImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.TestingPackagePackageImpl#getFixedNSGACoverageBoostingStrategy() + * @generated + */ + int FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY = 17; + + /** + * The feature id for the 'Use Boosting Once Every Generations' attribute. + * + * + * @generated + * @ordered + */ + int FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS = COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Use Boosting Once Every Iterations' attribute. + * + * + * @generated + * @ordered + */ + int FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_ITERATIONS = COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'Fixed NSGA Coverage Boosting Strategy' class. + * + * + * @generated + * @ordered + */ + int FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT = COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT + 2; + + /** + * The operation id for the 'Element Should Use Coverage Boosting' operation. + * + * + * @generated + * @ordered + */ + int FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY___ELEMENT_SHOULD_USE_COVERAGE_BOOSTING__INT_INT_INT = COVERAGE_BOOSTING_STRATEGY___ELEMENT_SHOULD_USE_COVERAGE_BOOSTING__INT_INT_INT; + + /** + * The number of operations of the 'Fixed NSGA Coverage Boosting Strategy' class. + * + * + * @generated + * @ordered + */ + int FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY_OPERATION_COUNT = COVERAGE_BOOSTING_STRATEGY_OPERATION_COUNT + 0; + + /** + * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.LinearNSGACoverageBoostingStrategyImpl Linear NSGA Coverage Boosting Strategy}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.LinearNSGACoverageBoostingStrategyImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.TestingPackagePackageImpl#getLinearNSGACoverageBoostingStrategy() + * @generated + */ + int LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY = 18; + + /** + * The feature id for the 'Use Boosting Once Every Generations' attribute. + * + * + * @generated + * @ordered + */ + int LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS = COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Starting Boosting Count' attribute. + * + * + * @generated + * @ordered + */ + int LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__STARTING_BOOSTING_COUNT = COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Ending Boosting Count' attribute. + * + * + * @generated + * @ordered + */ + int LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__ENDING_BOOSTING_COUNT = COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Count Drop Every Generation' attribute. + * + * + * @generated + * @ordered + */ + int LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__COUNT_DROP_EVERY_GENERATION = COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT + 3; + + /** + * The number of structural features of the 'Linear NSGA Coverage Boosting Strategy' class. + * + * + * @generated + * @ordered + */ + int LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT = COVERAGE_BOOSTING_STRATEGY_FEATURE_COUNT + 4; + + /** + * The operation id for the 'Element Should Use Coverage Boosting' operation. + * + * + * @generated + * @ordered + */ + int LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY___ELEMENT_SHOULD_USE_COVERAGE_BOOSTING__INT_INT_INT = COVERAGE_BOOSTING_STRATEGY___ELEMENT_SHOULD_USE_COVERAGE_BOOSTING__INT_INT_INT; + + /** + * The number of operations of the 'Linear NSGA Coverage Boosting Strategy' class. + * + * + * @generated + * @ordered + */ + int LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY_OPERATION_COUNT = COVERAGE_BOOSTING_STRATEGY_OPERATION_COUNT + 0; + /** * The meta object id for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.DimensionIntervalImpl Dimension Interval}' class. * @@ -801,7 +976,7 @@ public interface TestingPackagePackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.TestingPackagePackageImpl#getDimensionInterval() * @generated */ - int DIMENSION_INTERVAL = 16; + int DIMENSION_INTERVAL = 19; /** * The feature id for the 'Dim ID' attribute. @@ -839,6 +1014,15 @@ public interface TestingPackagePackage extends EPackage { */ int DIMENSION_INTERVAL__COUNT = 3; + /** + * The feature id for the 'Extra Data' attribute. + * + * + * @generated + * @ordered + */ + int DIMENSION_INTERVAL__EXTRA_DATA = 4; + /** * The number of structural features of the 'Dimension Interval' class. * @@ -846,7 +1030,7 @@ public interface TestingPackagePackage extends EPackage { * @generated * @ordered */ - int DIMENSION_INTERVAL_FEATURE_COUNT = 4; + int DIMENSION_INTERVAL_FEATURE_COUNT = 5; /** * The number of operations of the 'Dimension Interval' class. @@ -865,7 +1049,7 @@ public interface TestingPackagePackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.TestingPackagePackageImpl#getRepeatedExecution() * @generated */ - int REPEATED_EXECUTION = 17; + int REPEATED_EXECUTION = 20; /** * The feature id for the 'Test To Repeat' reference. @@ -911,7 +1095,7 @@ public interface TestingPackagePackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.TestingPackagePackageImpl#getResultSetStatus() * @generated */ - int RESULT_SET_STATUS = 18; + int RESULT_SET_STATUS = 21; /** @@ -922,7 +1106,7 @@ public interface TestingPackagePackage extends EPackage { * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.TestingPackagePackageImpl#getDimensionID() * @generated */ - int DIMENSION_ID = 19; + int DIMENSION_ID = 22; /** @@ -1393,6 +1577,17 @@ public interface TestingPackagePackage extends EPackage { */ EAttribute getNSGAWithCoverageCells_CoveragePerCell(); + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getTargetCoverageProportion Target Coverage Proportion}'. + * + * + * @return the meta object for the attribute 'Target Coverage Proportion'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getTargetCoverageProportion() + * @see #getNSGAWithCoverageCells() + * @generated + */ + EAttribute getNSGAWithCoverageCells_TargetCoverageProportion(); + /** * Returns the meta object for the containment reference list '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getDimensionRecords Dimension Records}'. * @@ -1405,15 +1600,121 @@ public interface TestingPackagePackage extends EPackage { EReference getNSGAWithCoverageCells_DimensionRecords(); /** - * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#isUseMutationEnhancingCoverage Use Mutation Enhancing Coverage}'. + * Returns the meta object for the containment reference '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getCoverageBoostingStrategy Coverage Boosting Strategy}'. * * - * @return the meta object for the attribute 'Use Mutation Enhancing Coverage'. - * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#isUseMutationEnhancingCoverage() + * @return the meta object for the containment reference 'Coverage Boosting Strategy'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells#getCoverageBoostingStrategy() * @see #getNSGAWithCoverageCells() * @generated */ - EAttribute getNSGAWithCoverageCells_UseMutationEnhancingCoverage(); + EReference getNSGAWithCoverageCells_CoverageBoostingStrategy(); + + /** + * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.CoverageBoostingStrategy Coverage Boosting Strategy}'. + * + * + * @return the meta object for class 'Coverage Boosting Strategy'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.CoverageBoostingStrategy + * @generated + */ + EClass getCoverageBoostingStrategy(); + + /** + * Returns the meta object for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.CoverageBoostingStrategy#elementShouldUseCoverageBoosting(int, int, int) Element Should Use Coverage Boosting}' operation. + * + * + * @return the meta object for the 'Element Should Use Coverage Boosting' operation. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.CoverageBoostingStrategy#elementShouldUseCoverageBoosting(int, int, int) + * @generated + */ + EOperation getCoverageBoostingStrategy__ElementShouldUseCoverageBoosting__int_int_int(); + + /** + * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy Fixed NSGA Coverage Boosting Strategy}'. + * + * + * @return the meta object for class 'Fixed NSGA Coverage Boosting Strategy'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy + * @generated + */ + EClass getFixedNSGACoverageBoostingStrategy(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy#getUseBoostingOnceEveryGenerations Use Boosting Once Every Generations}'. + * + * + * @return the meta object for the attribute 'Use Boosting Once Every Generations'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy#getUseBoostingOnceEveryGenerations() + * @see #getFixedNSGACoverageBoostingStrategy() + * @generated + */ + EAttribute getFixedNSGACoverageBoostingStrategy_UseBoostingOnceEveryGenerations(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy#getUseBoostingOnceEveryIterations Use Boosting Once Every Iterations}'. + * + * + * @return the meta object for the attribute 'Use Boosting Once Every Iterations'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy#getUseBoostingOnceEveryIterations() + * @see #getFixedNSGACoverageBoostingStrategy() + * @generated + */ + EAttribute getFixedNSGACoverageBoostingStrategy_UseBoostingOnceEveryIterations(); + + /** + * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy Linear NSGA Coverage Boosting Strategy}'. + * + * + * @return the meta object for class 'Linear NSGA Coverage Boosting Strategy'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy + * @generated + */ + EClass getLinearNSGACoverageBoostingStrategy(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getUseBoostingOnceEveryGenerations Use Boosting Once Every Generations}'. + * + * + * @return the meta object for the attribute 'Use Boosting Once Every Generations'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getUseBoostingOnceEveryGenerations() + * @see #getLinearNSGACoverageBoostingStrategy() + * @generated + */ + EAttribute getLinearNSGACoverageBoostingStrategy_UseBoostingOnceEveryGenerations(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getStartingBoostingCount Starting Boosting Count}'. + * + * + * @return the meta object for the attribute 'Starting Boosting Count'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getStartingBoostingCount() + * @see #getLinearNSGACoverageBoostingStrategy() + * @generated + */ + EAttribute getLinearNSGACoverageBoostingStrategy_StartingBoostingCount(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getEndingBoostingCount Ending Boosting Count}'. + * + * + * @return the meta object for the attribute 'Ending Boosting Count'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getEndingBoostingCount() + * @see #getLinearNSGACoverageBoostingStrategy() + * @generated + */ + EAttribute getLinearNSGACoverageBoostingStrategy_EndingBoostingCount(); + + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getCountDropEveryGeneration Count Drop Every Generation}'. + * + * + * @return the meta object for the attribute 'Count Drop Every Generation'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy#getCountDropEveryGeneration() + * @see #getLinearNSGACoverageBoostingStrategy() + * @generated + */ + EAttribute getLinearNSGACoverageBoostingStrategy_CountDropEveryGeneration(); /** * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval Dimension Interval}'. @@ -1469,6 +1770,17 @@ public interface TestingPackagePackage extends EPackage { */ EAttribute getDimensionInterval_Count(); + /** + * Returns the meta object for the attribute '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval#getExtraData Extra Data}'. + * + * + * @return the meta object for the attribute 'Extra Data'. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval#getExtraData() + * @see #getDimensionInterval() + * @generated + */ + EAttribute getDimensionInterval_ExtraData(); + /** * Returns the meta object for class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.RepeatedExecution Repeated Execution}'. * @@ -1928,6 +2240,14 @@ interface Literals { */ EAttribute NSGA_WITH_COVERAGE_CELLS__COVERAGE_PER_CELL = eINSTANCE.getNSGAWithCoverageCells_CoveragePerCell(); + /** + * The meta object literal for the 'Target Coverage Proportion' attribute feature. + * + * + * @generated + */ + EAttribute NSGA_WITH_COVERAGE_CELLS__TARGET_COVERAGE_PROPORTION = eINSTANCE.getNSGAWithCoverageCells_TargetCoverageProportion(); + /** * The meta object literal for the 'Dimension Records' containment reference list feature. * @@ -1937,12 +2257,98 @@ interface Literals { EReference NSGA_WITH_COVERAGE_CELLS__DIMENSION_RECORDS = eINSTANCE.getNSGAWithCoverageCells_DimensionRecords(); /** - * The meta object literal for the 'Use Mutation Enhancing Coverage' attribute feature. + * The meta object literal for the 'Coverage Boosting Strategy' containment reference feature. + * + * + * @generated + */ + EReference NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY = eINSTANCE.getNSGAWithCoverageCells_CoverageBoostingStrategy(); + + /** + * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.CoverageBoostingStrategyImpl Coverage Boosting Strategy}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.CoverageBoostingStrategyImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.TestingPackagePackageImpl#getCoverageBoostingStrategy() + * @generated + */ + EClass COVERAGE_BOOSTING_STRATEGY = eINSTANCE.getCoverageBoostingStrategy(); + + /** + * The meta object literal for the 'Element Should Use Coverage Boosting' operation. + * + * + * @generated + */ + EOperation COVERAGE_BOOSTING_STRATEGY___ELEMENT_SHOULD_USE_COVERAGE_BOOSTING__INT_INT_INT = eINSTANCE.getCoverageBoostingStrategy__ElementShouldUseCoverageBoosting__int_int_int(); + + /** + * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.FixedNSGACoverageBoostingStrategyImpl Fixed NSGA Coverage Boosting Strategy}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.FixedNSGACoverageBoostingStrategyImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.TestingPackagePackageImpl#getFixedNSGACoverageBoostingStrategy() + * @generated + */ + EClass FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY = eINSTANCE.getFixedNSGACoverageBoostingStrategy(); + + /** + * The meta object literal for the 'Use Boosting Once Every Generations' attribute feature. + * + * + * @generated + */ + EAttribute FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS = eINSTANCE.getFixedNSGACoverageBoostingStrategy_UseBoostingOnceEveryGenerations(); + + /** + * The meta object literal for the 'Use Boosting Once Every Iterations' attribute feature. + * + * + * @generated + */ + EAttribute FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_ITERATIONS = eINSTANCE.getFixedNSGACoverageBoostingStrategy_UseBoostingOnceEveryIterations(); + + /** + * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.LinearNSGACoverageBoostingStrategyImpl Linear NSGA Coverage Boosting Strategy}' class. + * + * + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.LinearNSGACoverageBoostingStrategyImpl + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.TestingPackagePackageImpl#getLinearNSGACoverageBoostingStrategy() + * @generated + */ + EClass LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY = eINSTANCE.getLinearNSGACoverageBoostingStrategy(); + + /** + * The meta object literal for the 'Use Boosting Once Every Generations' attribute feature. * * * @generated */ - EAttribute NSGA_WITH_COVERAGE_CELLS__USE_MUTATION_ENHANCING_COVERAGE = eINSTANCE.getNSGAWithCoverageCells_UseMutationEnhancingCoverage(); + EAttribute LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS = eINSTANCE.getLinearNSGACoverageBoostingStrategy_UseBoostingOnceEveryGenerations(); + + /** + * The meta object literal for the 'Starting Boosting Count' attribute feature. + * + * + * @generated + */ + EAttribute LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__STARTING_BOOSTING_COUNT = eINSTANCE.getLinearNSGACoverageBoostingStrategy_StartingBoostingCount(); + + /** + * The meta object literal for the 'Ending Boosting Count' attribute feature. + * + * + * @generated + */ + EAttribute LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__ENDING_BOOSTING_COUNT = eINSTANCE.getLinearNSGACoverageBoostingStrategy_EndingBoostingCount(); + + /** + * The meta object literal for the 'Count Drop Every Generation' attribute feature. + * + * + * @generated + */ + EAttribute LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__COUNT_DROP_EVERY_GENERATION = eINSTANCE.getLinearNSGACoverageBoostingStrategy_CountDropEveryGeneration(); /** * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.DimensionIntervalImpl Dimension Interval}' class. @@ -1986,6 +2392,14 @@ interface Literals { */ EAttribute DIMENSION_INTERVAL__COUNT = eINSTANCE.getDimensionInterval_Count(); + /** + * The meta object literal for the 'Extra Data' attribute feature. + * + * + * @generated + */ + EAttribute DIMENSION_INTERVAL__EXTRA_DATA = eINSTANCE.getDimensionInterval_ExtraData(); + /** * The meta object literal for the '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.RepeatedExecutionImpl Repeated Execution}' class. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/CoverageBoostingStrategyImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/CoverageBoostingStrategyImpl.java new file mode 100644 index 00000000..a3366176 --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/CoverageBoostingStrategyImpl.java @@ -0,0 +1,68 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl; + +import java.lang.reflect.InvocationTargetException; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; + +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.CoverageBoostingStrategy; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage; + +/** + * + * An implementation of the model object 'Coverage Boosting Strategy'. + * + * + * @generated + */ +public abstract class CoverageBoostingStrategyImpl extends MinimalEObjectImpl.Container implements CoverageBoostingStrategy { + /** + * + * + * @generated + */ + protected CoverageBoostingStrategyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TestingPackagePackage.Literals.COVERAGE_BOOSTING_STRATEGY; + } + + /** + * + * + * @generated + */ + public boolean elementShouldUseCoverageBoosting(int i, int genNum, int boostingCountThisGeneration) { + // TODO: implement this method + // Ensure that you remove @generated or mark it @generated NOT + throw new UnsupportedOperationException(); + } + + /** + * + * + * @generated + */ + @Override + public Object eInvoke(int operationID, EList arguments) throws InvocationTargetException { + switch (operationID) { + case TestingPackagePackage.COVERAGE_BOOSTING_STRATEGY___ELEMENT_SHOULD_USE_COVERAGE_BOOSTING__INT_INT_INT: + return elementShouldUseCoverageBoosting((Integer)arguments.get(0), (Integer)arguments.get(1), (Integer)arguments.get(2)); + } + return super.eInvoke(operationID, arguments); + } + +} //CoverageBoostingStrategyImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/DimensionIntervalImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/DimensionIntervalImpl.java index 675cb0ff..3301df75 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/DimensionIntervalImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/DimensionIntervalImpl.java @@ -25,6 +25,7 @@ *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.DimensionIntervalImpl#getMinValue Min Value}
  • *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.DimensionIntervalImpl#getMaxValue Max Value}
  • *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.DimensionIntervalImpl#getCount Count}
  • + *
  • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.DimensionIntervalImpl#getExtraData Extra Data}
  • * * * @generated @@ -110,6 +111,26 @@ public class DimensionIntervalImpl extends MinimalEObjectImpl.Container implemen */ protected int count = COUNT_EDEFAULT; + /** + * The default value of the '{@link #getExtraData() Extra Data}' attribute. + * + * + * @see #getExtraData() + * @generated + * @ordered + */ + protected static final int EXTRA_DATA_EDEFAULT = -1; + + /** + * The cached value of the '{@link #getExtraData() Extra Data}' attribute. + * + * + * @see #getExtraData() + * @generated + * @ordered + */ + protected int extraData = EXTRA_DATA_EDEFAULT; + /** * * @@ -213,6 +234,27 @@ public void setCount(int newCount) { eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.DIMENSION_INTERVAL__COUNT, oldCount, count)); } + /** + * + * + * @generated + */ + public int getExtraData() { + return extraData; + } + + /** + * + * + * @generated + */ + public void setExtraData(int newExtraData) { + int oldExtraData = extraData; + extraData = newExtraData; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.DIMENSION_INTERVAL__EXTRA_DATA, oldExtraData, extraData)); + } + /** * * @@ -229,6 +271,8 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { return getMaxValue(); case TestingPackagePackage.DIMENSION_INTERVAL__COUNT: return getCount(); + case TestingPackagePackage.DIMENSION_INTERVAL__EXTRA_DATA: + return getExtraData(); } return super.eGet(featureID, resolve, coreType); } @@ -253,6 +297,9 @@ public void eSet(int featureID, Object newValue) { case TestingPackagePackage.DIMENSION_INTERVAL__COUNT: setCount((Integer)newValue); return; + case TestingPackagePackage.DIMENSION_INTERVAL__EXTRA_DATA: + setExtraData((Integer)newValue); + return; } super.eSet(featureID, newValue); } @@ -277,6 +324,9 @@ public void eUnset(int featureID) { case TestingPackagePackage.DIMENSION_INTERVAL__COUNT: setCount(COUNT_EDEFAULT); return; + case TestingPackagePackage.DIMENSION_INTERVAL__EXTRA_DATA: + setExtraData(EXTRA_DATA_EDEFAULT); + return; } super.eUnset(featureID); } @@ -297,6 +347,8 @@ public boolean eIsSet(int featureID) { return maxValue != MAX_VALUE_EDEFAULT; case TestingPackagePackage.DIMENSION_INTERVAL__COUNT: return count != COUNT_EDEFAULT; + case TestingPackagePackage.DIMENSION_INTERVAL__EXTRA_DATA: + return extraData != EXTRA_DATA_EDEFAULT; } return super.eIsSet(featureID); } @@ -319,6 +371,8 @@ public String toString() { result.append(maxValue); result.append(", count: "); result.append(count); + result.append(", extraData: "); + result.append(extraData); result.append(')'); return result.toString(); } diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/FixedNSGACoverageBoostingStrategyImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/FixedNSGACoverageBoostingStrategyImpl.java new file mode 100644 index 00000000..9171850e --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/FixedNSGACoverageBoostingStrategyImpl.java @@ -0,0 +1,216 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage; + +/** + * + * An implementation of the model object 'Fixed NSGA Coverage Boosting Strategy'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.FixedNSGACoverageBoostingStrategyImpl#getUseBoostingOnceEveryGenerations Use Boosting Once Every Generations}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.FixedNSGACoverageBoostingStrategyImpl#getUseBoostingOnceEveryIterations Use Boosting Once Every Iterations}
    • + *
    + * + * @generated + */ +public class FixedNSGACoverageBoostingStrategyImpl extends CoverageBoostingStrategyImpl implements FixedNSGACoverageBoostingStrategy { + /** + * The default value of the '{@link #getUseBoostingOnceEveryGenerations() Use Boosting Once Every Generations}' attribute. + * + * + * @see #getUseBoostingOnceEveryGenerations() + * @generated + * @ordered + */ + protected static final int USE_BOOSTING_ONCE_EVERY_GENERATIONS_EDEFAULT = 2; + + /** + * The cached value of the '{@link #getUseBoostingOnceEveryGenerations() Use Boosting Once Every Generations}' attribute. + * + * + * @see #getUseBoostingOnceEveryGenerations() + * @generated + * @ordered + */ + protected int useBoostingOnceEveryGenerations = USE_BOOSTING_ONCE_EVERY_GENERATIONS_EDEFAULT; + + /** + * The default value of the '{@link #getUseBoostingOnceEveryIterations() Use Boosting Once Every Iterations}' attribute. + * + * + * @see #getUseBoostingOnceEveryIterations() + * @generated + * @ordered + */ + protected static final int USE_BOOSTING_ONCE_EVERY_ITERATIONS_EDEFAULT = 2; + + /** + * The cached value of the '{@link #getUseBoostingOnceEveryIterations() Use Boosting Once Every Iterations}' attribute. + * + * + * @see #getUseBoostingOnceEveryIterations() + * @generated + * @ordered + */ + protected int useBoostingOnceEveryIterations = USE_BOOSTING_ONCE_EVERY_ITERATIONS_EDEFAULT; + + /** + * + * + * @generated + */ + protected FixedNSGACoverageBoostingStrategyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TestingPackagePackage.Literals.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY; + } + + /** + * + * + * @generated + */ + public int getUseBoostingOnceEveryGenerations() { + return useBoostingOnceEveryGenerations; + } + + /** + * + * + * @generated + */ + public void setUseBoostingOnceEveryGenerations(int newUseBoostingOnceEveryGenerations) { + int oldUseBoostingOnceEveryGenerations = useBoostingOnceEveryGenerations; + useBoostingOnceEveryGenerations = newUseBoostingOnceEveryGenerations; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS, oldUseBoostingOnceEveryGenerations, useBoostingOnceEveryGenerations)); + } + + /** + * + * + * @generated + */ + public int getUseBoostingOnceEveryIterations() { + return useBoostingOnceEveryIterations; + } + + /** + * + * + * @generated + */ + public void setUseBoostingOnceEveryIterations(int newUseBoostingOnceEveryIterations) { + int oldUseBoostingOnceEveryIterations = useBoostingOnceEveryIterations; + useBoostingOnceEveryIterations = newUseBoostingOnceEveryIterations; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_ITERATIONS, oldUseBoostingOnceEveryIterations, useBoostingOnceEveryIterations)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS: + return getUseBoostingOnceEveryGenerations(); + case TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_ITERATIONS: + return getUseBoostingOnceEveryIterations(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS: + setUseBoostingOnceEveryGenerations((Integer)newValue); + return; + case TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_ITERATIONS: + setUseBoostingOnceEveryIterations((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS: + setUseBoostingOnceEveryGenerations(USE_BOOSTING_ONCE_EVERY_GENERATIONS_EDEFAULT); + return; + case TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_ITERATIONS: + setUseBoostingOnceEveryIterations(USE_BOOSTING_ONCE_EVERY_ITERATIONS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS: + return useBoostingOnceEveryGenerations != USE_BOOSTING_ONCE_EVERY_GENERATIONS_EDEFAULT; + case TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_ITERATIONS: + return useBoostingOnceEveryIterations != USE_BOOSTING_ONCE_EVERY_ITERATIONS_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (useBoostingOnceEveryGenerations: "); + result.append(useBoostingOnceEveryGenerations); + result.append(", useBoostingOnceEveryIterations: "); + result.append(useBoostingOnceEveryIterations); + result.append(')'); + return result.toString(); + } + +} //FixedNSGACoverageBoostingStrategyImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/LinearNSGACoverageBoostingStrategyImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/LinearNSGACoverageBoostingStrategyImpl.java new file mode 100644 index 00000000..2cd3c518 --- /dev/null +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/LinearNSGACoverageBoostingStrategyImpl.java @@ -0,0 +1,324 @@ +/** + */ +package uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage; + +/** + * + * An implementation of the model object 'Linear NSGA Coverage Boosting Strategy'. + * + *

    + * The following features are implemented: + *

    + *
      + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.LinearNSGACoverageBoostingStrategyImpl#getUseBoostingOnceEveryGenerations Use Boosting Once Every Generations}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.LinearNSGACoverageBoostingStrategyImpl#getStartingBoostingCount Starting Boosting Count}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.LinearNSGACoverageBoostingStrategyImpl#getEndingBoostingCount Ending Boosting Count}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.LinearNSGACoverageBoostingStrategyImpl#getCountDropEveryGeneration Count Drop Every Generation}
    • + *
    + * + * @generated + */ +public class LinearNSGACoverageBoostingStrategyImpl extends CoverageBoostingStrategyImpl implements LinearNSGACoverageBoostingStrategy { + /** + * The default value of the '{@link #getUseBoostingOnceEveryGenerations() Use Boosting Once Every Generations}' attribute. + * + * + * @see #getUseBoostingOnceEveryGenerations() + * @generated + * @ordered + */ + protected static final int USE_BOOSTING_ONCE_EVERY_GENERATIONS_EDEFAULT = 2; + + /** + * The cached value of the '{@link #getUseBoostingOnceEveryGenerations() Use Boosting Once Every Generations}' attribute. + * + * + * @see #getUseBoostingOnceEveryGenerations() + * @generated + * @ordered + */ + protected int useBoostingOnceEveryGenerations = USE_BOOSTING_ONCE_EVERY_GENERATIONS_EDEFAULT; + + /** + * The default value of the '{@link #getStartingBoostingCount() Starting Boosting Count}' attribute. + * + * + * @see #getStartingBoostingCount() + * @generated + * @ordered + */ + protected static final int STARTING_BOOSTING_COUNT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getStartingBoostingCount() Starting Boosting Count}' attribute. + * + * + * @see #getStartingBoostingCount() + * @generated + * @ordered + */ + protected int startingBoostingCount = STARTING_BOOSTING_COUNT_EDEFAULT; + + /** + * The default value of the '{@link #getEndingBoostingCount() Ending Boosting Count}' attribute. + * + * + * @see #getEndingBoostingCount() + * @generated + * @ordered + */ + protected static final int ENDING_BOOSTING_COUNT_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getEndingBoostingCount() Ending Boosting Count}' attribute. + * + * + * @see #getEndingBoostingCount() + * @generated + * @ordered + */ + protected int endingBoostingCount = ENDING_BOOSTING_COUNT_EDEFAULT; + + /** + * The default value of the '{@link #getCountDropEveryGeneration() Count Drop Every Generation}' attribute. + * + * + * @see #getCountDropEveryGeneration() + * @generated + * @ordered + */ + protected static final int COUNT_DROP_EVERY_GENERATION_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getCountDropEveryGeneration() Count Drop Every Generation}' attribute. + * + * + * @see #getCountDropEveryGeneration() + * @generated + * @ordered + */ + protected int countDropEveryGeneration = COUNT_DROP_EVERY_GENERATION_EDEFAULT; + + /** + * + * + * @generated + */ + protected LinearNSGACoverageBoostingStrategyImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return TestingPackagePackage.Literals.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY; + } + + /** + * + * + * @generated + */ + public int getUseBoostingOnceEveryGenerations() { + return useBoostingOnceEveryGenerations; + } + + /** + * + * + * @generated + */ + public void setUseBoostingOnceEveryGenerations(int newUseBoostingOnceEveryGenerations) { + int oldUseBoostingOnceEveryGenerations = useBoostingOnceEveryGenerations; + useBoostingOnceEveryGenerations = newUseBoostingOnceEveryGenerations; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS, oldUseBoostingOnceEveryGenerations, useBoostingOnceEveryGenerations)); + } + + /** + * + * + * @generated + */ + public int getStartingBoostingCount() { + return startingBoostingCount; + } + + /** + * + * + * @generated + */ + public void setStartingBoostingCount(int newStartingBoostingCount) { + int oldStartingBoostingCount = startingBoostingCount; + startingBoostingCount = newStartingBoostingCount; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__STARTING_BOOSTING_COUNT, oldStartingBoostingCount, startingBoostingCount)); + } + + /** + * + * + * @generated + */ + public int getEndingBoostingCount() { + return endingBoostingCount; + } + + /** + * + * + * @generated + */ + public void setEndingBoostingCount(int newEndingBoostingCount) { + int oldEndingBoostingCount = endingBoostingCount; + endingBoostingCount = newEndingBoostingCount; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__ENDING_BOOSTING_COUNT, oldEndingBoostingCount, endingBoostingCount)); + } + + /** + * + * + * @generated + */ + public int getCountDropEveryGeneration() { + return countDropEveryGeneration; + } + + /** + * + * + * @generated + */ + public void setCountDropEveryGeneration(int newCountDropEveryGeneration) { + int oldCountDropEveryGeneration = countDropEveryGeneration; + countDropEveryGeneration = newCountDropEveryGeneration; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__COUNT_DROP_EVERY_GENERATION, oldCountDropEveryGeneration, countDropEveryGeneration)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS: + return getUseBoostingOnceEveryGenerations(); + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__STARTING_BOOSTING_COUNT: + return getStartingBoostingCount(); + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__ENDING_BOOSTING_COUNT: + return getEndingBoostingCount(); + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__COUNT_DROP_EVERY_GENERATION: + return getCountDropEveryGeneration(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS: + setUseBoostingOnceEveryGenerations((Integer)newValue); + return; + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__STARTING_BOOSTING_COUNT: + setStartingBoostingCount((Integer)newValue); + return; + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__ENDING_BOOSTING_COUNT: + setEndingBoostingCount((Integer)newValue); + return; + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__COUNT_DROP_EVERY_GENERATION: + setCountDropEveryGeneration((Integer)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS: + setUseBoostingOnceEveryGenerations(USE_BOOSTING_ONCE_EVERY_GENERATIONS_EDEFAULT); + return; + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__STARTING_BOOSTING_COUNT: + setStartingBoostingCount(STARTING_BOOSTING_COUNT_EDEFAULT); + return; + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__ENDING_BOOSTING_COUNT: + setEndingBoostingCount(ENDING_BOOSTING_COUNT_EDEFAULT); + return; + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__COUNT_DROP_EVERY_GENERATION: + setCountDropEveryGeneration(COUNT_DROP_EVERY_GENERATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS: + return useBoostingOnceEveryGenerations != USE_BOOSTING_ONCE_EVERY_GENERATIONS_EDEFAULT; + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__STARTING_BOOSTING_COUNT: + return startingBoostingCount != STARTING_BOOSTING_COUNT_EDEFAULT; + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__ENDING_BOOSTING_COUNT: + return endingBoostingCount != ENDING_BOOSTING_COUNT_EDEFAULT; + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__COUNT_DROP_EVERY_GENERATION: + return countDropEveryGeneration != COUNT_DROP_EVERY_GENERATION_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (useBoostingOnceEveryGenerations: "); + result.append(useBoostingOnceEveryGenerations); + result.append(", startingBoostingCount: "); + result.append(startingBoostingCount); + result.append(", endingBoostingCount: "); + result.append(endingBoostingCount); + result.append(", countDropEveryGeneration: "); + result.append(countDropEveryGeneration); + result.append(')'); + return result.toString(); + } + +} //LinearNSGACoverageBoostingStrategyImpl diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/NSGAWithCoverageCellsImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/NSGAWithCoverageCellsImpl.java index f53e4a15..729aa27f 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/NSGAWithCoverageCellsImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/NSGAWithCoverageCellsImpl.java @@ -16,6 +16,7 @@ import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.CoverageBoostingStrategy; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.NSGAWithCoverageCells; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.TestingPackagePackage; @@ -29,8 +30,9 @@ *

    *
      *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.NSGAWithCoverageCellsImpl#getCoveragePerCell Coverage Per Cell}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.NSGAWithCoverageCellsImpl#getTargetCoverageProportion Target Coverage Proportion}
    • *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.NSGAWithCoverageCellsImpl#getDimensionRecords Dimension Records}
    • - *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.NSGAWithCoverageCellsImpl#isUseMutationEnhancingCoverage Use Mutation Enhancing Coverage}
    • + *
    • {@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.impl.NSGAWithCoverageCellsImpl#getCoverageBoostingStrategy Coverage Boosting Strategy}
    • *
    * * @generated @@ -57,34 +59,44 @@ public class NSGAWithCoverageCellsImpl extends NSGAEvolutionaryAlgorithmImpl imp protected int coveragePerCell = COVERAGE_PER_CELL_EDEFAULT; /** - * The cached value of the '{@link #getDimensionRecords() Dimension Records}' containment reference list. + * The default value of the '{@link #getTargetCoverageProportion() Target Coverage Proportion}' attribute. * * - * @see #getDimensionRecords() + * @see #getTargetCoverageProportion() * @generated * @ordered */ - protected EList dimensionRecords; + protected static final double TARGET_COVERAGE_PROPORTION_EDEFAULT = 0.0; + + /** + * The cached value of the '{@link #getTargetCoverageProportion() Target Coverage Proportion}' attribute. + * + * + * @see #getTargetCoverageProportion() + * @generated + * @ordered + */ + protected double targetCoverageProportion = TARGET_COVERAGE_PROPORTION_EDEFAULT; /** - * The default value of the '{@link #isUseMutationEnhancingCoverage() Use Mutation Enhancing Coverage}' attribute. + * The cached value of the '{@link #getDimensionRecords() Dimension Records}' containment reference list. * * - * @see #isUseMutationEnhancingCoverage() + * @see #getDimensionRecords() * @generated * @ordered */ - protected static final boolean USE_MUTATION_ENHANCING_COVERAGE_EDEFAULT = false; + protected EList dimensionRecords; /** - * The cached value of the '{@link #isUseMutationEnhancingCoverage() Use Mutation Enhancing Coverage}' attribute. + * The cached value of the '{@link #getCoverageBoostingStrategy() Coverage Boosting Strategy}' containment reference. * * - * @see #isUseMutationEnhancingCoverage() + * @see #getCoverageBoostingStrategy() * @generated * @ordered */ - protected boolean useMutationEnhancingCoverage = USE_MUTATION_ENHANCING_COVERAGE_EDEFAULT; + protected CoverageBoostingStrategy coverageBoostingStrategy; /** * @@ -126,6 +138,27 @@ public void setCoveragePerCell(int newCoveragePerCell) { eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_PER_CELL, oldCoveragePerCell, coveragePerCell)); } + /** + * + * + * @generated + */ + public double getTargetCoverageProportion() { + return targetCoverageProportion; + } + + /** + * + * + * @generated + */ + public void setTargetCoverageProportion(double newTargetCoverageProportion) { + double oldTargetCoverageProportion = targetCoverageProportion; + targetCoverageProportion = newTargetCoverageProportion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__TARGET_COVERAGE_PROPORTION, oldTargetCoverageProportion, targetCoverageProportion)); + } + /** * * @@ -143,8 +176,8 @@ public EList getDimensionRecords() { * * @generated */ - public boolean isUseMutationEnhancingCoverage() { - return useMutationEnhancingCoverage; + public CoverageBoostingStrategy getCoverageBoostingStrategy() { + return coverageBoostingStrategy; } /** @@ -152,11 +185,33 @@ public boolean isUseMutationEnhancingCoverage() { * * @generated */ - public void setUseMutationEnhancingCoverage(boolean newUseMutationEnhancingCoverage) { - boolean oldUseMutationEnhancingCoverage = useMutationEnhancingCoverage; - useMutationEnhancingCoverage = newUseMutationEnhancingCoverage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__USE_MUTATION_ENHANCING_COVERAGE, oldUseMutationEnhancingCoverage, useMutationEnhancingCoverage)); + public NotificationChain basicSetCoverageBoostingStrategy(CoverageBoostingStrategy newCoverageBoostingStrategy, NotificationChain msgs) { + CoverageBoostingStrategy oldCoverageBoostingStrategy = coverageBoostingStrategy; + coverageBoostingStrategy = newCoverageBoostingStrategy; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY, oldCoverageBoostingStrategy, newCoverageBoostingStrategy); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * + * + * @generated + */ + public void setCoverageBoostingStrategy(CoverageBoostingStrategy newCoverageBoostingStrategy) { + if (newCoverageBoostingStrategy != coverageBoostingStrategy) { + NotificationChain msgs = null; + if (coverageBoostingStrategy != null) + msgs = ((InternalEObject)coverageBoostingStrategy).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY, null, msgs); + if (newCoverageBoostingStrategy != null) + msgs = ((InternalEObject)newCoverageBoostingStrategy).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY, null, msgs); + msgs = basicSetCoverageBoostingStrategy(newCoverageBoostingStrategy, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY, newCoverageBoostingStrategy, newCoverageBoostingStrategy)); } /** @@ -169,6 +224,8 @@ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, switch (featureID) { case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__DIMENSION_RECORDS: return ((InternalEList)getDimensionRecords()).basicRemove(otherEnd, msgs); + case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY: + return basicSetCoverageBoostingStrategy(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } @@ -183,10 +240,12 @@ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_PER_CELL: return getCoveragePerCell(); + case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__TARGET_COVERAGE_PROPORTION: + return getTargetCoverageProportion(); case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__DIMENSION_RECORDS: return getDimensionRecords(); - case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__USE_MUTATION_ENHANCING_COVERAGE: - return isUseMutationEnhancingCoverage(); + case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY: + return getCoverageBoostingStrategy(); } return super.eGet(featureID, resolve, coreType); } @@ -203,12 +262,15 @@ public void eSet(int featureID, Object newValue) { case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_PER_CELL: setCoveragePerCell((Integer)newValue); return; + case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__TARGET_COVERAGE_PROPORTION: + setTargetCoverageProportion((Double)newValue); + return; case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__DIMENSION_RECORDS: getDimensionRecords().clear(); getDimensionRecords().addAll((Collection)newValue); return; - case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__USE_MUTATION_ENHANCING_COVERAGE: - setUseMutationEnhancingCoverage((Boolean)newValue); + case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY: + setCoverageBoostingStrategy((CoverageBoostingStrategy)newValue); return; } super.eSet(featureID, newValue); @@ -225,11 +287,14 @@ public void eUnset(int featureID) { case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_PER_CELL: setCoveragePerCell(COVERAGE_PER_CELL_EDEFAULT); return; + case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__TARGET_COVERAGE_PROPORTION: + setTargetCoverageProportion(TARGET_COVERAGE_PROPORTION_EDEFAULT); + return; case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__DIMENSION_RECORDS: getDimensionRecords().clear(); return; - case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__USE_MUTATION_ENHANCING_COVERAGE: - setUseMutationEnhancingCoverage(USE_MUTATION_ENHANCING_COVERAGE_EDEFAULT); + case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY: + setCoverageBoostingStrategy((CoverageBoostingStrategy)null); return; } super.eUnset(featureID); @@ -245,10 +310,12 @@ public boolean eIsSet(int featureID) { switch (featureID) { case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_PER_CELL: return coveragePerCell != COVERAGE_PER_CELL_EDEFAULT; + case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__TARGET_COVERAGE_PROPORTION: + return targetCoverageProportion != TARGET_COVERAGE_PROPORTION_EDEFAULT; case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__DIMENSION_RECORDS: return dimensionRecords != null && !dimensionRecords.isEmpty(); - case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__USE_MUTATION_ENHANCING_COVERAGE: - return useMutationEnhancingCoverage != USE_MUTATION_ENHANCING_COVERAGE_EDEFAULT; + case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY: + return coverageBoostingStrategy != null; } return super.eIsSet(featureID); } @@ -265,8 +332,8 @@ public String toString() { StringBuilder result = new StringBuilder(super.toString()); result.append(" (coveragePerCell: "); result.append(coveragePerCell); - result.append(", useMutationEnhancingCoverage: "); - result.append(useMutationEnhancingCoverage); + result.append(", targetCoverageProportion: "); + result.append(targetCoverageProportion); result.append(')'); return result.toString(); } diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/TestingPackageFactoryImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/TestingPackageFactoryImpl.java index c8d9a743..4dbaa659 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/TestingPackageFactoryImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/TestingPackageFactoryImpl.java @@ -68,6 +68,8 @@ public EObject create(EClass eClass) { case TestingPackagePackage.RANDOM_TEST_GENERATION: return createRandomTestGeneration(); case TestingPackagePackage.NSGA_EVOLUTIONARY_ALGORITHM: return createNSGAEvolutionaryAlgorithm(); case TestingPackagePackage.NSGA_WITH_COVERAGE_CELLS: return createNSGAWithCoverageCells(); + case TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY: return createFixedNSGACoverageBoostingStrategy(); + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY: return createLinearNSGACoverageBoostingStrategy(); case TestingPackagePackage.DIMENSION_INTERVAL: return createDimensionInterval(); case TestingPackagePackage.REPEATED_EXECUTION: return createRepeatedExecution(); default: @@ -219,6 +221,26 @@ public NSGAWithCoverageCells createNSGAWithCoverageCells() { return nsgaWithCoverageCells; } + /** + * + * + * @generated + */ + public FixedNSGACoverageBoostingStrategy createFixedNSGACoverageBoostingStrategy() { + FixedNSGACoverageBoostingStrategyImpl fixedNSGACoverageBoostingStrategy = new FixedNSGACoverageBoostingStrategyImpl(); + return fixedNSGACoverageBoostingStrategy; + } + + /** + * + * + * @generated + */ + public LinearNSGACoverageBoostingStrategy createLinearNSGACoverageBoostingStrategy() { + LinearNSGACoverageBoostingStrategyImpl linearNSGACoverageBoostingStrategy = new LinearNSGACoverageBoostingStrategyImpl(); + return linearNSGACoverageBoostingStrategy; + } + /** * * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/TestingPackagePackageImpl.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/TestingPackagePackageImpl.java index a7776ef7..66fed386 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/TestingPackagePackageImpl.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/impl/TestingPackagePackageImpl.java @@ -5,6 +5,7 @@ import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EOperation; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; @@ -13,15 +14,18 @@ import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.ActivationGenerationMethod; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.CampaignResultSet; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.ConditionBasedActivationGenerationMethod; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.CoverageBoostingStrategy; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionID; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.EvolutionaryAlgorithm; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.ExecutionEndTrigger; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.FuzzingOperationsPackage; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FuzzingOperations.impl.FuzzingOperationsPackageImpl; +import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.MRSPackagePackage; import uk.ac.york.sesame.testing.dsl.generated.TestingPackage.MRSPackage.impl.MRSPackagePackageImpl; @@ -174,6 +178,27 @@ public class TestingPackagePackageImpl extends EPackageImpl implements TestingPa */ private EClass nsgaWithCoverageCellsEClass = null; + /** + * + * + * @generated + */ + private EClass coverageBoostingStrategyEClass = null; + + /** + * + * + * @generated + */ + private EClass fixedNSGACoverageBoostingStrategyEClass = null; + + /** + * + * + * @generated + */ + private EClass linearNSGACoverageBoostingStrategyEClass = null; + /** * * @@ -681,13 +706,22 @@ public EAttribute getNSGAWithCoverageCells_CoveragePerCell() { return (EAttribute)nsgaWithCoverageCellsEClass.getEStructuralFeatures().get(0); } + /** + * + * + * @generated + */ + public EAttribute getNSGAWithCoverageCells_TargetCoverageProportion() { + return (EAttribute)nsgaWithCoverageCellsEClass.getEStructuralFeatures().get(1); + } + /** * * * @generated */ public EReference getNSGAWithCoverageCells_DimensionRecords() { - return (EReference)nsgaWithCoverageCellsEClass.getEStructuralFeatures().get(1); + return (EReference)nsgaWithCoverageCellsEClass.getEStructuralFeatures().get(2); } /** @@ -695,8 +729,98 @@ public EReference getNSGAWithCoverageCells_DimensionRecords() { * * @generated */ - public EAttribute getNSGAWithCoverageCells_UseMutationEnhancingCoverage() { - return (EAttribute)nsgaWithCoverageCellsEClass.getEStructuralFeatures().get(2); + public EReference getNSGAWithCoverageCells_CoverageBoostingStrategy() { + return (EReference)nsgaWithCoverageCellsEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + public EClass getCoverageBoostingStrategy() { + return coverageBoostingStrategyEClass; + } + + /** + * + * + * @generated + */ + public EOperation getCoverageBoostingStrategy__ElementShouldUseCoverageBoosting__int_int_int() { + return coverageBoostingStrategyEClass.getEOperations().get(0); + } + + /** + * + * + * @generated + */ + public EClass getFixedNSGACoverageBoostingStrategy() { + return fixedNSGACoverageBoostingStrategyEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getFixedNSGACoverageBoostingStrategy_UseBoostingOnceEveryGenerations() { + return (EAttribute)fixedNSGACoverageBoostingStrategyEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getFixedNSGACoverageBoostingStrategy_UseBoostingOnceEveryIterations() { + return (EAttribute)fixedNSGACoverageBoostingStrategyEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getLinearNSGACoverageBoostingStrategy() { + return linearNSGACoverageBoostingStrategyEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getLinearNSGACoverageBoostingStrategy_UseBoostingOnceEveryGenerations() { + return (EAttribute)linearNSGACoverageBoostingStrategyEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EAttribute getLinearNSGACoverageBoostingStrategy_StartingBoostingCount() { + return (EAttribute)linearNSGACoverageBoostingStrategyEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EAttribute getLinearNSGACoverageBoostingStrategy_EndingBoostingCount() { + return (EAttribute)linearNSGACoverageBoostingStrategyEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EAttribute getLinearNSGACoverageBoostingStrategy_CountDropEveryGeneration() { + return (EAttribute)linearNSGACoverageBoostingStrategyEClass.getEStructuralFeatures().get(3); } /** @@ -744,6 +868,15 @@ public EAttribute getDimensionInterval_Count() { return (EAttribute)dimensionIntervalEClass.getEStructuralFeatures().get(3); } + /** + * + * + * @generated + */ + public EAttribute getDimensionInterval_ExtraData() { + return (EAttribute)dimensionIntervalEClass.getEStructuralFeatures().get(4); + } + /** * * @@ -876,14 +1009,29 @@ public void createPackageContents() { nsgaWithCoverageCellsEClass = createEClass(NSGA_WITH_COVERAGE_CELLS); createEAttribute(nsgaWithCoverageCellsEClass, NSGA_WITH_COVERAGE_CELLS__COVERAGE_PER_CELL); + createEAttribute(nsgaWithCoverageCellsEClass, NSGA_WITH_COVERAGE_CELLS__TARGET_COVERAGE_PROPORTION); createEReference(nsgaWithCoverageCellsEClass, NSGA_WITH_COVERAGE_CELLS__DIMENSION_RECORDS); - createEAttribute(nsgaWithCoverageCellsEClass, NSGA_WITH_COVERAGE_CELLS__USE_MUTATION_ENHANCING_COVERAGE); + createEReference(nsgaWithCoverageCellsEClass, NSGA_WITH_COVERAGE_CELLS__COVERAGE_BOOSTING_STRATEGY); + + coverageBoostingStrategyEClass = createEClass(COVERAGE_BOOSTING_STRATEGY); + createEOperation(coverageBoostingStrategyEClass, COVERAGE_BOOSTING_STRATEGY___ELEMENT_SHOULD_USE_COVERAGE_BOOSTING__INT_INT_INT); + + fixedNSGACoverageBoostingStrategyEClass = createEClass(FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY); + createEAttribute(fixedNSGACoverageBoostingStrategyEClass, FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS); + createEAttribute(fixedNSGACoverageBoostingStrategyEClass, FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_ITERATIONS); + + linearNSGACoverageBoostingStrategyEClass = createEClass(LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY); + createEAttribute(linearNSGACoverageBoostingStrategyEClass, LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__USE_BOOSTING_ONCE_EVERY_GENERATIONS); + createEAttribute(linearNSGACoverageBoostingStrategyEClass, LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__STARTING_BOOSTING_COUNT); + createEAttribute(linearNSGACoverageBoostingStrategyEClass, LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__ENDING_BOOSTING_COUNT); + createEAttribute(linearNSGACoverageBoostingStrategyEClass, LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY__COUNT_DROP_EVERY_GENERATION); dimensionIntervalEClass = createEClass(DIMENSION_INTERVAL); createEAttribute(dimensionIntervalEClass, DIMENSION_INTERVAL__DIM_ID); createEAttribute(dimensionIntervalEClass, DIMENSION_INTERVAL__MIN_VALUE); createEAttribute(dimensionIntervalEClass, DIMENSION_INTERVAL__MAX_VALUE); createEAttribute(dimensionIntervalEClass, DIMENSION_INTERVAL__COUNT); + createEAttribute(dimensionIntervalEClass, DIMENSION_INTERVAL__EXTRA_DATA); repeatedExecutionEClass = createEClass(REPEATED_EXECUTION); createEReference(repeatedExecutionEClass, REPEATED_EXECUTION__TEST_TO_REPEAT); @@ -944,6 +1092,8 @@ public void initializePackageContents() { evolutionaryAlgorithmEClass.getESuperTypes().add(this.getTestGenerationApproach()); nsgaEvolutionaryAlgorithmEClass.getESuperTypes().add(this.getEvolutionaryAlgorithm()); nsgaWithCoverageCellsEClass.getESuperTypes().add(this.getNSGAEvolutionaryAlgorithm()); + fixedNSGACoverageBoostingStrategyEClass.getESuperTypes().add(this.getCoverageBoostingStrategy()); + linearNSGACoverageBoostingStrategyEClass.getESuperTypes().add(this.getCoverageBoostingStrategy()); repeatedExecutionEClass.getESuperTypes().add(this.getTestGenerationApproach()); // Initialize classes, features, and operations; add parameters @@ -1006,14 +1156,33 @@ public void initializePackageContents() { initEClass(nsgaWithCoverageCellsEClass, NSGAWithCoverageCells.class, "NSGAWithCoverageCells", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getNSGAWithCoverageCells_CoveragePerCell(), ecorePackage.getEInt(), "coveragePerCell", null, 0, 1, NSGAWithCoverageCells.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNSGAWithCoverageCells_TargetCoverageProportion(), ecorePackage.getEDouble(), "targetCoverageProportion", null, 0, 1, NSGAWithCoverageCells.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getNSGAWithCoverageCells_DimensionRecords(), this.getDimensionInterval(), null, "dimensionRecords", null, 1, -1, NSGAWithCoverageCells.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNSGAWithCoverageCells_UseMutationEnhancingCoverage(), ecorePackage.getEBoolean(), "useMutationEnhancingCoverage", "false", 0, 1, NSGAWithCoverageCells.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getNSGAWithCoverageCells_CoverageBoostingStrategy(), this.getCoverageBoostingStrategy(), null, "coverageBoostingStrategy", null, 0, 1, NSGAWithCoverageCells.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(coverageBoostingStrategyEClass, CoverageBoostingStrategy.class, "CoverageBoostingStrategy", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + EOperation op = initEOperation(getCoverageBoostingStrategy__ElementShouldUseCoverageBoosting__int_int_int(), ecorePackage.getEBoolean(), "elementShouldUseCoverageBoosting", 0, 1, IS_UNIQUE, IS_ORDERED); + addEParameter(op, ecorePackage.getEInt(), "i", 0, 1, IS_UNIQUE, IS_ORDERED); + addEParameter(op, ecorePackage.getEInt(), "genNum", 0, 1, IS_UNIQUE, IS_ORDERED); + addEParameter(op, ecorePackage.getEInt(), "boostingCountThisGeneration", 0, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(fixedNSGACoverageBoostingStrategyEClass, FixedNSGACoverageBoostingStrategy.class, "FixedNSGACoverageBoostingStrategy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFixedNSGACoverageBoostingStrategy_UseBoostingOnceEveryGenerations(), ecorePackage.getEInt(), "useBoostingOnceEveryGenerations", "2", 0, 1, FixedNSGACoverageBoostingStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFixedNSGACoverageBoostingStrategy_UseBoostingOnceEveryIterations(), ecorePackage.getEInt(), "useBoostingOnceEveryIterations", "2", 0, 1, FixedNSGACoverageBoostingStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(linearNSGACoverageBoostingStrategyEClass, LinearNSGACoverageBoostingStrategy.class, "LinearNSGACoverageBoostingStrategy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getLinearNSGACoverageBoostingStrategy_UseBoostingOnceEveryGenerations(), ecorePackage.getEInt(), "useBoostingOnceEveryGenerations", "2", 0, 1, LinearNSGACoverageBoostingStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLinearNSGACoverageBoostingStrategy_StartingBoostingCount(), ecorePackage.getEInt(), "startingBoostingCount", null, 0, 1, LinearNSGACoverageBoostingStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLinearNSGACoverageBoostingStrategy_EndingBoostingCount(), ecorePackage.getEInt(), "endingBoostingCount", null, 0, 1, LinearNSGACoverageBoostingStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getLinearNSGACoverageBoostingStrategy_CountDropEveryGeneration(), ecorePackage.getEInt(), "countDropEveryGeneration", null, 0, 1, LinearNSGACoverageBoostingStrategy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(dimensionIntervalEClass, DimensionInterval.class, "DimensionInterval", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getDimensionInterval_DimID(), this.getDimensionID(), "dimID", null, 0, 1, DimensionInterval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDimensionInterval_MinValue(), ecorePackage.getEDouble(), "minValue", null, 0, 1, DimensionInterval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDimensionInterval_MaxValue(), ecorePackage.getEDouble(), "maxValue", null, 0, 1, DimensionInterval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDimensionInterval_Count(), ecorePackage.getEInt(), "count", null, 0, 1, DimensionInterval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDimensionInterval_ExtraData(), ecorePackage.getEInt(), "extraData", "-1", 0, 1, DimensionInterval.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(repeatedExecutionEClass, RepeatedExecution.class, "RepeatedExecution", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getRepeatedExecution_TestToRepeat(), this.getTest(), null, "testToRepeat", null, 1, 1, RepeatedExecution.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); @@ -1033,6 +1202,7 @@ public void initializePackageContents() { addEEnumLiteral(dimensionIDEEnum, DimensionID.O1_FUZZRANGE_COUNT); addEEnumLiteral(dimensionIDEEnum, DimensionID.O2_DELAY_COUNT); addEEnumLiteral(dimensionIDEEnum, DimensionID.O3_DELETION_COUNT); + addEEnumLiteral(dimensionIDEEnum, DimensionID.O0_TOTAL_COUNT); // Create resource createResource(eNS_URI); diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/util/TestingPackageAdapterFactory.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/util/TestingPackageAdapterFactory.java index c4319e7d..42297444 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/util/TestingPackageAdapterFactory.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/util/TestingPackageAdapterFactory.java @@ -132,6 +132,18 @@ public Adapter caseNSGAWithCoverageCells(NSGAWithCoverageCells object) { return createNSGAWithCoverageCellsAdapter(); } @Override + public Adapter caseCoverageBoostingStrategy(CoverageBoostingStrategy object) { + return createCoverageBoostingStrategyAdapter(); + } + @Override + public Adapter caseFixedNSGACoverageBoostingStrategy(FixedNSGACoverageBoostingStrategy object) { + return createFixedNSGACoverageBoostingStrategyAdapter(); + } + @Override + public Adapter caseLinearNSGACoverageBoostingStrategy(LinearNSGACoverageBoostingStrategy object) { + return createLinearNSGACoverageBoostingStrategyAdapter(); + } + @Override public Adapter caseDimensionInterval(DimensionInterval object) { return createDimensionIntervalAdapter(); } @@ -383,6 +395,48 @@ public Adapter createNSGAWithCoverageCellsAdapter() { return null; } + /** + * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.CoverageBoostingStrategy Coverage Boosting Strategy}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.CoverageBoostingStrategy + * @generated + */ + public Adapter createCoverageBoostingStrategyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy Fixed NSGA Coverage Boosting Strategy}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.FixedNSGACoverageBoostingStrategy + * @generated + */ + public Adapter createFixedNSGACoverageBoostingStrategyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy Linear NSGA Coverage Boosting Strategy}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see uk.ac.york.sesame.testing.dsl.generated.TestingPackage.LinearNSGACoverageBoostingStrategy + * @generated + */ + public Adapter createLinearNSGACoverageBoostingStrategyAdapter() { + return null; + } + /** * Creates a new adapter for an object of class '{@link uk.ac.york.sesame.testing.dsl.generated.TestingPackage.DimensionInterval Dimension Interval}'. * diff --git a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/util/TestingPackageSwitch.java b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/util/TestingPackageSwitch.java index 60b2b5c3..367f4634 100644 --- a/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/util/TestingPackageSwitch.java +++ b/uk.ac.york.sesame.testing.dsl/src/uk/ac/york/sesame/testing/dsl/generated/TestingPackage/util/TestingPackageSwitch.java @@ -173,6 +173,26 @@ protected T doSwitch(int classifierID, EObject theEObject) { if (result == null) result = defaultCase(theEObject); return result; } + case TestingPackagePackage.COVERAGE_BOOSTING_STRATEGY: { + CoverageBoostingStrategy coverageBoostingStrategy = (CoverageBoostingStrategy)theEObject; + T result = caseCoverageBoostingStrategy(coverageBoostingStrategy); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TestingPackagePackage.FIXED_NSGA_COVERAGE_BOOSTING_STRATEGY: { + FixedNSGACoverageBoostingStrategy fixedNSGACoverageBoostingStrategy = (FixedNSGACoverageBoostingStrategy)theEObject; + T result = caseFixedNSGACoverageBoostingStrategy(fixedNSGACoverageBoostingStrategy); + if (result == null) result = caseCoverageBoostingStrategy(fixedNSGACoverageBoostingStrategy); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TestingPackagePackage.LINEAR_NSGA_COVERAGE_BOOSTING_STRATEGY: { + LinearNSGACoverageBoostingStrategy linearNSGACoverageBoostingStrategy = (LinearNSGACoverageBoostingStrategy)theEObject; + T result = caseLinearNSGACoverageBoostingStrategy(linearNSGACoverageBoostingStrategy); + if (result == null) result = caseCoverageBoostingStrategy(linearNSGACoverageBoostingStrategy); + if (result == null) result = defaultCase(theEObject); + return result; + } case TestingPackagePackage.DIMENSION_INTERVAL: { DimensionInterval dimensionInterval = (DimensionInterval)theEObject; T result = caseDimensionInterval(dimensionInterval); @@ -430,6 +450,51 @@ public T caseNSGAWithCoverageCells(NSGAWithCoverageCells object) { return null; } + /** + * Returns the result of interpreting the object as an instance of 'Coverage Boosting Strategy'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Coverage Boosting Strategy'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCoverageBoostingStrategy(CoverageBoostingStrategy object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Fixed NSGA Coverage Boosting Strategy'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Fixed NSGA Coverage Boosting Strategy'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFixedNSGACoverageBoostingStrategy(FixedNSGACoverageBoostingStrategy object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Linear NSGA Coverage Boosting Strategy'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Linear NSGA Coverage Boosting Strategy'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLinearNSGACoverageBoostingStrategy(LinearNSGACoverageBoostingStrategy object) { + return null; + } + /** * Returns the result of interpreting the object as an instance of 'Dimension Interval'. * diff --git a/uk.ac.york.sesame.testing.evolutionary/src/uk/ac/york/sesame/testing/evolutionary/EvolutionaryExpt.java b/uk.ac.york.sesame.testing.evolutionary/src/uk/ac/york/sesame/testing/evolutionary/EvolutionaryExpt.java index ee069373..1c53b6d1 100644 --- a/uk.ac.york.sesame.testing.evolutionary/src/uk/ac/york/sesame/testing/evolutionary/EvolutionaryExpt.java +++ b/uk.ac.york.sesame.testing.evolutionary/src/uk/ac/york/sesame/testing/evolutionary/EvolutionaryExpt.java @@ -152,7 +152,7 @@ public void runExperiment() { if (app instanceof NSGAWithCoverageCells) { NSGAWithCoverageCells nsgaCov = (NSGAWithCoverageCells)app; - boolean useMutationEnhancing = nsgaCov.isUseMutationEnhancingCoverage(); + boolean useMutationEnhancing = false;//nsgaCov.isUseMutationEnhancingCoverage(); // TODO: read relevant parameters from nsgaCov here algorithm = new NSGAII_ResultLogging_Coverage(selectedCampaign, scenarioStr, problem, maxIterations, populationSize, matingPoolSize, offspringPopulationSize, crossover, mutation, selection, diff --git a/uk.ac.york.sesame.testing.standalone.generator/models/TestingPAL-custom-2566.model b/uk.ac.york.sesame.testing.standalone.generator/models/TestingPAL-custom-2566.model new file mode 100644 index 00000000..9c066bce --- /dev/null +++ b/uk.ac.york.sesame.testing.standalone.generator/models/TestingPAL-custom-2566.model @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/uk.ac.york.sesame.testing.standalone.generator/models/TestingPAL.model b/uk.ac.york.sesame.testing.standalone.generator/models/TestingPAL.model new file mode 100644 index 00000000..e0dd114f --- /dev/null +++ b/uk.ac.york.sesame.testing.standalone.generator/models/TestingPAL.model @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/uk.ac.york.sesame.testing.standalone.generator/models/testingKUKA_A50_cutdown_eddiEarly.model b/uk.ac.york.sesame.testing.standalone.generator/models/testingKUKA_A50_cutdown_eddiEarly.model new file mode 100644 index 00000000..85f2103d --- /dev/null +++ b/uk.ac.york.sesame.testing.standalone.generator/models/testingKUKA_A50_cutdown_eddiEarly.model @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/uk.ac.york.sesame.testing.standalone.generator/models/testingKUKA_A50_cutdown_jan18.model b/uk.ac.york.sesame.testing.standalone.generator/models/testingKUKA_A50_cutdown_jan18.model new file mode 100644 index 00000000..d9088f87 --- /dev/null +++ b/uk.ac.york.sesame.testing.standalone.generator/models/testingKUKA_A50_cutdown_jan18.model @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +