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  March 2015

HPS-SVN March 2015

Subject:

r2440 - /java/trunk/conditions/src/main/java/org/hps/conditions/svt/AbstractSvtChannel.java

From:

[log in to unmask]

Reply-To:

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

Date:

Sat, 14 Mar 2015 18:49:20 -0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (114 lines)

Author: [log in to unmask]
Date: Sat Mar 14 11:49:15 2015
New Revision: 2440

Log:
Add setters for the fields 'channel' and 'channel_id'.

Modified:
    java/trunk/conditions/src/main/java/org/hps/conditions/svt/AbstractSvtChannel.java

Modified: java/trunk/conditions/src/main/java/org/hps/conditions/svt/AbstractSvtChannel.java
 =============================================================================
--- java/trunk/conditions/src/main/java/org/hps/conditions/svt/AbstractSvtChannel.java	(original)
+++ java/trunk/conditions/src/main/java/org/hps/conditions/svt/AbstractSvtChannel.java	Sat Mar 14 11:49:15 2015
@@ -24,10 +24,10 @@
         Map<Integer, T> channelMap = new HashMap<Integer, T>();
 
         /**
-         * Add a channel of type extending {@link AbstractSvtChannel} to the
-         * channel map
+         *  Add a channel of type extending {@link AbstractSvtChannel} to the
+         *  channel map
          * 
-         * @param A channel of a type extending {@link AbstractSvtChannel}
+         *  @param A channel of a type extending {@link AbstractSvtChannel}
          */
         public boolean add(T channel) {
 
@@ -42,29 +42,29 @@
         }
 
         /**
-         * Find a channel of type extending {@link AbstractSvtChannel} using the
-         * channel ID
+         *  Find a channel of type extending {@link AbstractSvtChannel} using the
+         *  channel ID
          * 
-         * @param channelID
-         * @return An SVT channel of type extending {@link AbstractSvtChannel}
+         *  @param channelID
+         *  @return An SVT channel of type extending {@link AbstractSvtChannel}
          */
         public T findChannel(int channelID) {
             return channelMap.get(channelID);
         }
 
         /**
-         * Find the collection of channels of type extending
-         * {@link AbstractSvtChannel} that match a DAQ pair.
+         *  Find the collection of channels of type extending
+         *  {@link AbstractSvtChannel} that match a DAQ pair.
          * 
-         * @param pair The DAQ pair.
-         * @return The channels matching the DAQ pair or null if not found.
+         *  @param pair The DAQ pair.
+         *  @return The channels matching the DAQ pair or null if not found.
          */
         public abstract Collection<T> find(Pair<Integer, Integer> pair);
 
         /**
-         * Convert this object to a human readable string.
+         *  Convert this object to a human readable string.
          * 
-         * @return This object converted to a string.
+         *  @return This object converted to a string.
          */
         public String toString() {
             StringBuffer buff = new StringBuffer();
@@ -76,9 +76,9 @@
     }
 
     /**
-     * Get the channel ID.
+     *  Get the channel ID.
      * 
-     * @return The channel ID.
+     *  @return The SVT channel ID.
      */
     @Field(names = {"channel_id"})
     public int getChannelID() {
@@ -86,12 +86,30 @@
     }
 
     /**
-     * Get the channel number. This is different from the ID.
+     *  Get the channel number (0-639). This is different from the ID.
      * 
-     * @return The channel number.
+     *  @return The channel number.
      */
     @Field(names = {"channel"})
     public int getChannel() {
         return getFieldValue("channel");
     }
+    
+    /**
+     *  Set the channel ID.
+     * 
+     *  @param channelID : The SVT channel ID
+     */
+    public void setChannelID(int channelID) { 
+        this.setFieldValue("channel_id", channelID);
+    }
+    
+    /**
+     *  Set the channel number (0-639). This is different from the ID.
+     * 
+     *  @param channel : The channel number
+     */
+    public void setChannel(int channel) { 
+        this.setFieldValue("channel", channel);
+    }
 }

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