LISTSERV mailing list manager LISTSERV 16.5

Help for HPS-SVN Archives


HPS-SVN Archives

HPS-SVN Archives


HPS-SVN@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

HPS-SVN Home

HPS-SVN Home

HPS-SVN  October 2014

HPS-SVN October 2014

Subject:

r1352 - in /java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt: SvtConditions.java TestRunSvtConditions.java

From:

[log in to unmask]

Reply-To:

Notification of commits to the hps svn repository <[log in to unmask]>

Date:

Thu, 30 Oct 2014 20:17:24 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (168 lines)

Author: [log in to unmask]
Date: Thu Oct 30 13:17:22 2014
New Revision: 1352

Log:
Implement the abstract method used to retrieve the t0 shifts from the conditions set.  Remove all setters in favor of the generic setters in the base class. 

Modified:
    java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/SvtConditions.java
    java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/TestRunSvtConditions.java

Modified: java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/SvtConditions.java
 =============================================================================
--- java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/SvtConditions.java	(original)
+++ java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/SvtConditions.java	Thu Oct 30 13:17:22 2014
@@ -3,25 +3,23 @@
 import org.hps.conditions.svt.SvtChannel.SvtChannelCollection;
 import org.hps.conditions.svt.SvtDaqMapping.SvtDaqMappingCollection;
 
+import org.hps.conditions.svt.SvtT0Shift.SvtT0ShiftCollection;
+
 // TODO: Move all constants to their own class
 import static org.hps.conditions.svt.SvtChannel.MAX_NUMBER_OF_SAMPLES;
 
 /**
- * This class contains all SVT conditions data by readout channel. {@link SvtChannel}
- * objects from the {@linkSvtChannelMap} should be used to lookup the conditions using the
- * {@link #getChannelConstants(SvtChannel)} method.
+ * 
+ * This class contains all test run SVT conditions data by readout channel. 
+ * {@link SvtChannel} objects from the SVT channel map should be used to
+ * lookup the conditions using the {@link #getChannelConstants(SvtChannel)}
+ * method.
  * 
  * @author Jeremy McCormick <[log in to unmask]>
  * @author Omar Moreno <[log in to unmask]>
  */
 public final class SvtConditions extends AbstractSvtConditions {
 
-    /** SVT conditions data. */
-    protected SvtDaqMappingCollection daqMap = null;
-    
-    public SvtConditions(){
-    }
-    
 	/**
      * Get the {@link SvtDaqMappingCollection} associated with these conditions.
      * 
@@ -29,7 +27,7 @@
      */
     @Override
     public SvtDaqMappingCollection getDaqMap(){
-        return daqMap;
+        return (SvtDaqMappingCollection) daqMap;
     }
 
     /**
@@ -42,25 +40,16 @@
         return (SvtChannelCollection) channelMap;
     }
     
-	/**
-     * Set the {@link SvtDaqMappingCollection} associated with these conditions.
+    /**
+     * Get the {@link SvtT0ShiftCollection} associated with these conditions.
      * 
-     * @param daqMap The SVT DAQ map.
-	 * @return 
+     * @return The {@link SvtT0ShiftCollection}
      */
-    public void setDaqMap(SvtDaqMappingCollection daqMap) {
-        this.daqMap = daqMap;
+    @Override
+    public SvtT0ShiftCollection getT0Shifts() { 
+    	return (SvtT0ShiftCollection) t0Shifts;
     }
-   
     
-    /**
-     * Set the channel map of type {@link SvtChannelCollection}.
-     * 
-     *  @param channelMap The SVT channel map.
-     */
-    public void setChannelMap(SvtChannelCollection channelMap){
-    	this.channelMap = channelMap;
-    }
 
     /**
      * Convert this object to a human readable string. This method prints a formatted

Modified: java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/TestRunSvtConditions.java
 =============================================================================
--- java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/TestRunSvtConditions.java	(original)
+++ java/branches/hps_java_trunk_HPSJAVA-255/conditions/src/main/java/org/hps/conditions/svt/TestRunSvtConditions.java	Thu Oct 30 13:17:22 2014
@@ -3,21 +3,22 @@
 import org.hps.conditions.svt.TestRunSvtChannel.TestRunSvtChannelCollection;
 import org.hps.conditions.svt.TestRunSvtDaqMapping.TestRunSvtDaqMappingCollection;
 
+import org.hps.conditions.svt.TestRunSvtT0Shift.TestRunSvtT0ShiftCollection;
+
 // TODO: Move all constants to their own class
 import static org.hps.conditions.svt.SvtChannel.MAX_NUMBER_OF_SAMPLES;
 
 /**
- * This class contains all test run SVT conditions data by readout channel. {@link SvtChannel}
- * objects from the {@linkSvtChannelMap} should be used to lookup the conditions using the
- * {@link #getChannelConstants(SvtChannel)} method.
+ * This class contains all test run SVT conditions data by readout channel. 
+ * {@link TestRunSvtChannel} objects from the SVT channel map should be used to
+ * lookup the conditions using the {@link #getChannelConstants(TestRunSvtChannel)}
+ * method.
  * 
  * @author Jeremy McCormick <[log in to unmask]>
  * @author Omar Moreno <[log in to unmask]>
  */
 public class TestRunSvtConditions extends AbstractSvtConditions {
 
-    protected TestRunSvtDaqMappingCollection daqMap = null;
-    
 	/**
      * Get the {@link TestRunSvtDaqMappingCollection} associated with these conditions.
      * 
@@ -25,33 +26,29 @@
      */
     @Override
     public TestRunSvtDaqMappingCollection getDaqMap() {
-        return daqMap;
+        return (TestRunSvtDaqMappingCollection) daqMap;
     }
 
+    /**
+     * Get the {@link TestRunSvtChannelCollection} for this set of conditions.
+     * 
+     * @return The SVT channel map.
+     */
     @Override
     public TestRunSvtChannelCollection getChannelMap() {
         return (TestRunSvtChannelCollection) channelMap;
     }
 
     /**
-     * Set the {@link TestRunSvtDaqMappingCollection} associated with these conditions.
+     * Get the {@link TestRunSvtT0ShiftCollection} associated with these conditions.
      * 
-     * @param daqMap The SVT DAQ map.
-	 * @return 
+     * @return The {@link TestRunSvtT0ShiftCollection}
      */
-    public void setDaqMap(TestRunSvtDaqMappingCollection daqMap) {
-        this.daqMap = daqMap;
+    @Override
+    public TestRunSvtT0ShiftCollection getT0Shifts() { 
+    	return (TestRunSvtT0ShiftCollection) t0Shifts;
     }
     
-    /**
-     * Set the channel map of type {@link TestRunSvtChannelCollection}.
-     * 
-     *  @param channelMap The SVT channel map.
-     */
-    public void setChannelMap(TestRunSvtChannelCollection channelMap){
-    	this.channelMap = channelMap;
-    }
-
     /**
      * Convert this object to a human readable string. This method prints a formatted
      * table of channel data independently of how its member objects implement their

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

November 2017
August 2017
July 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use