Print

Print


Author: [log in to unmask]
Date: Mon May 11 12:32:08 2015
New Revision: 2950

Log:
Add set method to allow modification of EPICS data created in user code.

Modified:
    java/trunk/record-util/src/main/java/org/hps/record/epics/EpicsScalarData.java

Modified: java/trunk/record-util/src/main/java/org/hps/record/epics/EpicsScalarData.java
 =============================================================================
--- java/trunk/record-util/src/main/java/org/hps/record/epics/EpicsScalarData.java	(original)
+++ java/trunk/record-util/src/main/java/org/hps/record/epics/EpicsScalarData.java	Mon May 11 12:32:08 2015
@@ -195,6 +195,15 @@
     }
 
     /**
+     * Get a double value from the key which should be a valid EPICS variable name.
+     *
+     * @return the value from the key
+     */
+    public void setValue(final String name, final double value) {
+        this.dataMap.put(name, value);
+    }
+
+    /**
      * Convert this object into a {@link org.lcsim.event.GenericObject} that can be written into an LCIO collection.
      *
      * @return the <code>GenericObject</code> representing this data