Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Edlund2011-07-11 22:58:54 +0000
committerStefan Edlund2011-07-11 22:58:54 +0000
commitaec11ff5c606cc50775a140e53e580b54df602c8 (patch)
tree8e9ea9dced26c71c5c0458663de0977c5806fa12 /org.eclipse.stem.interventions/src/org/eclipse/stem/interventions/impl/InterventionsFactoryImpl.java
parent059918e69dc0f2c9bd209e79d1a56be7252d4159 (diff)
downloadorg.eclipse.stem-aec11ff5c606cc50775a140e53e580b54df602c8.tar.gz
org.eclipse.stem-aec11ff5c606cc50775a140e53e580b54df602c8.tar.xz
org.eclipse.stem-aec11ff5c606cc50775a140e53e580b54df602c8.zip
Interventions. Modifiers can now operate on the static intervention labels and example interventions have been implemented for standard deterministic SIR and SEIR models
git-svn-id: http://dev.eclipse.org/svnroot/technology/org.eclipse.stem/trunk@2048 92a21009-5b66-0410-b83a-dc787c41c6e9
Diffstat (limited to 'org.eclipse.stem.interventions/src/org/eclipse/stem/interventions/impl/InterventionsFactoryImpl.java')
-rw-r--r--org.eclipse.stem.interventions/src/org/eclipse/stem/interventions/impl/InterventionsFactoryImpl.java27
1 files changed, 8 insertions, 19 deletions
diff --git a/org.eclipse.stem.interventions/src/org/eclipse/stem/interventions/impl/InterventionsFactoryImpl.java b/org.eclipse.stem.interventions/src/org/eclipse/stem/interventions/impl/InterventionsFactoryImpl.java
index 21fbf96d0..04626036a 100644
--- a/org.eclipse.stem.interventions/src/org/eclipse/stem/interventions/impl/InterventionsFactoryImpl.java
+++ b/org.eclipse.stem.interventions/src/org/eclipse/stem/interventions/impl/InterventionsFactoryImpl.java
@@ -65,10 +65,9 @@ public class InterventionsFactoryImpl extends EFactoryImpl implements Interventi
@Override
public EObject create(EClass eClass) {
switch (eClass.getClassifierID()) {
- case InterventionsPackage.LABEL_VALUE_TEST: return createLabelValueTest();
- case InterventionsPackage.STANDARD_CONTROL_LABEL: return createStandardControlLabel();
+ case InterventionsPackage.STANDARD_INTERVENTION_LABEL: return createStandardInterventionLabel();
case InterventionsPackage.CONTROL_GRAPH_GENERATOR: return createControlGraphGenerator();
- case InterventionsPackage.STANDARD_CONTROL_LABEL_VALUE: return createStandardControlLabelValue();
+ case InterventionsPackage.STANDARD_INTERVENTION_LABEL_VALUE: return createStandardInterventionLabelValue();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
@@ -79,19 +78,9 @@ public class InterventionsFactoryImpl extends EFactoryImpl implements Interventi
* <!-- end-user-doc -->
* @generated
*/
- public LabelValueTest createLabelValueTest() {
- LabelValueTestImpl labelValueTest = new LabelValueTestImpl();
- return labelValueTest;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public StandardControlLabel createStandardControlLabel() {
- StandardControlLabelImpl standardControlLabel = new StandardControlLabelImpl();
- return standardControlLabel;
+ public StandardInterventionLabel createStandardInterventionLabel() {
+ StandardInterventionLabelImpl standardInterventionLabel = new StandardInterventionLabelImpl();
+ return standardInterventionLabel;
}
/**
@@ -109,9 +98,9 @@ public class InterventionsFactoryImpl extends EFactoryImpl implements Interventi
* <!-- end-user-doc -->
* @generated
*/
- public StandardControlLabelValue createStandardControlLabelValue() {
- StandardControlLabelValueImpl standardControlLabelValue = new StandardControlLabelValueImpl();
- return standardControlLabelValue;
+ public StandardInterventionLabelValue createStandardInterventionLabelValue() {
+ StandardInterventionLabelValueImpl standardInterventionLabelValue = new StandardInterventionLabelValueImpl();
+ return standardInterventionLabelValue;
}
/**

Back to the top