--- a
+++ b/src/main/java/converter/BcmScenarioManager.java
@@ -0,0 +1,65 @@
+package converter;
+
+import BcmScenario.Anno_Activity;
+import BcmScenario.BcmScenarioFactory;
+import BcmScenario.BcmScenarioModel;
+import genericbcm.GenericbcmFactory;
+
+import java.util.HashMap;
+
+/**
+ * Created by miguel on 04-09-2014.
+ */
+public class BcmScenarioManager {
+
+ private BcmScenarioFactory scenarioFactory;
+ private GenericbcmFactory genericBcmFactory;
+ private BcmScenarioModel model;
+ private HashMap<String, Object> elements;
+
+ public BcmScenarioManager() {
+ scenarioFactory = BcmScenarioFactory.eINSTANCE;
+ genericBcmFactory = GenericbcmFactory.eINSTANCE;
+ model = scenarioFactory.createBcmScenarioModel();
+ elements = new HashMap<String, Object>();
+ }
+
+ public void addAnnotation(String id, String name, String reference, String cycleTimeMin, String cycleTimeMax, String overallSeverity, String rto, String rpo, String mtpd){
+ Anno_Activity annotation = scenarioFactory.createAnno_Activity();
+
+ //Create UUID here
+ annotation.setUuid("oaksdlasdasd-adsasad-sad-a-sda");
+ if(name != null && !name.equals(""))
+ annotation.setName(name);
+ if(reference != null && !reference.equals(""))
+ annotation.setReference(id);
+ if(cycleTimeMax != null && !cycleTimeMax.equals(""))
+ annotation.setCycleTimeMax(Double.valueOf(cycleTimeMax));
+ if(cycleTimeMin != null && !cycleTimeMin.equals(""))
+ annotation.setCycleTimeMin(Double.valueOf(cycleTimeMin));
+ if(overallSeverity != null && !overallSeverity.equals(""))
+ annotation.setOverallSeverity(Double.valueOf(overallSeverity));
+ if(rto != null && !rto.equals(""))
+ annotation.setRto(Double.valueOf(rto));
+ if(rpo != null && !rpo.equals(""))
+ annotation.setRpo(Double.valueOf(rpo));
+ if(mtpd != null && !mtpd.equals(""))
+ annotation.setMtpd(Double.valueOf(mtpd));
+
+ model.getAnnotations().add(annotation);
+ //IDENTIFIED BY REFERENCE AND NOT UUID - REFERENCE IS WHAT EXISTS IN CONTEXT MODEL FROM EPC
+ elements.put(reference, annotation);
+
+ }
+
+ public void addBcmToAnnotation(String annotationId, String resourceId, String genericBcmFileName){
+
+ //CAN'T FIND OBJECT TYPE TO REPRESENT BCM UNIT
+// genericbcm.Resource bcmUnit = genericBcmFactory;
+
+ }
+
+
+
+
+}