org.lsst.ccs.subsystems.refrig
Class RefrigTest

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.refrig.RefrigTest
All Implemented Interfaces:
java.io.Serializable, java.util.Observer
Direct Known Subclasses:
RefrigTestHdw, RefrigTestSim

public abstract class RefrigTest
extends org.lsst.ccs.framework.Module

Implements the refrigeration long lines test modular subsystem This is an abstract class implementing the interactions with the CCS buses, but deferring the hardware interaction, real or simulated, to sub-classes.

Author:
Owen Saxton
See Also:
Serialized Form

Nested Class Summary
static class RefrigTest.RefrigException
          Exception class for laundering exceptions
 
Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module
org.lsst.ccs.framework.Module.ValueUpdate
 
Field Summary
 
Fields inherited from class org.lsst.ccs.framework.Module
log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
RefrigTest()
          Constructor
 
Method Summary
 java.lang.String getDescription(int id)
          Gets the descriptive name of a channel
 float getHighLimit(int id)
          Gets the high limit for a channel
 int getHighLimitCheck()
          Gets the word of channels with high limit checking
 int getLoadBitNum()
          Gets the heat load state bit number
 float getLowLimit(int id)
          Gets the low limit for a channel
 int getLowLimitCheck()
          Gets the word of channels with low limit checking
 java.lang.String getName(int id)
          Gets the name of a channel
 int getNumChans()
          Gets the number of channels
 int getPowerBitNum()
          Gets the power enabled state bit number
 int getState()
          Gets the operating state word
 int getStateBitNum(int id)
          Gets the state bit number of a channel
 java.lang.String getUnits(int id)
          Gets the units name of a channel
 float getValue(int id)
          Gets the last value read from a channel
 void initModule()
          Initializes the refrigeration subsystem
 boolean isLoadTripEnable()
          Gets the check load state
 boolean isPowerEnable()
          Gets the enabled state
 RefrigTrendingSummaryStatus publishTrendingSummary()
          The following methods have been added to make the GUI work.
 void saveConfiguration()
          Saves the configuration data
 void setHighLimit(int id, double limit)
          Sets the high limit for a channel
 void setLoadTripEnable(int value)
          Sets the check load state on or off
 void setLowLimit(int id, double limit)
          Sets the low limit for a channel
 void setPowerEnable(int value)
          Sets the enabled state on or off
 void tick()
          Performs periodic sensor readout
 
Methods inherited from class org.lsst.ccs.framework.Module
getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, processUpdate, publishData, publishData, publishData, publishData, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, start, update
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefrigTest

public RefrigTest()
Constructor

Method Detail

initModule

public void initModule()
Initializes the refrigeration subsystem

Overrides:
initModule in class org.lsst.ccs.framework.Module

tick

public void tick()
Performs periodic sensor readout

Overrides:
tick in class org.lsst.ccs.framework.Module

isPowerEnable

public boolean isPowerEnable()
Gets the enabled state

Returns:
The current power enabled state

setPowerEnable

public void setPowerEnable(int value)
Sets the enabled state on or off

Parameters:
value - The enabled state value to set: 0 = off, ~0 = on.

isLoadTripEnable

public boolean isLoadTripEnable()
Gets the check load state

Returns:
The current check load temperature state

setLoadTripEnable

public void setLoadTripEnable(int value)
Sets the check load state on or off

Parameters:
value - The check load temperature state value to set: 0 = off; ~0 = on.

getLowLimitCheck

public int getLowLimitCheck()
Gets the word of channels with low limit checking

Returns:
The bit mask of channels with low limit checking enabled

getHighLimitCheck

public int getHighLimitCheck()
Gets the word of channels with high limit checking

Returns:
The bit mask of channels with high limit checking enabled

getState

public int getState()
Gets the operating state word

Returns:
The current value of the operating state

getNumChans

public int getNumChans()
Gets the number of channels

Returns:
The number of channels being monitored

getName

public java.lang.String getName(int id)
Gets the name of a channel

Parameters:
id - The channel ID
Returns:
The name of the channel

getDescription

public java.lang.String getDescription(int id)
Gets the descriptive name of a channel

Parameters:
id - The channel ID
Returns:
The descriptive name of the channel

getUnits

public java.lang.String getUnits(int id)
Gets the units name of a channel

Parameters:
id - The channel ID
Returns:
The units name of the channel

getStateBitNum

public int getStateBitNum(int id)
Gets the state bit number of a channel

Parameters:
id - The channel ID
Returns:
The state bit number of the channel

getPowerBitNum

public int getPowerBitNum()
Gets the power enabled state bit number

Returns:
The enabled state bit number

getLoadBitNum

public int getLoadBitNum()
Gets the heat load state bit number

Returns:
The heat load state bit number

getLowLimit

public float getLowLimit(int id)
Gets the low limit for a channel

Parameters:
id - The channel ID
Returns:
The low limit value for the channel

setLowLimit

public void setLowLimit(int id,
                        double limit)
Sets the low limit for a channel

Parameters:
id - The channel ID
limit - The low limit value.

getHighLimit

public float getHighLimit(int id)
Gets the high limit for a channel

Parameters:
id - The channel ID
Returns:
The high limit value for the channel

setHighLimit

public void setHighLimit(int id,
                         double limit)
Sets the high limit for a channel

Parameters:
id - The channel ID
limit - The high limit value.

getValue

public float getValue(int id)
Gets the last value read from a channel

Parameters:
id - The channel ID
Returns:
The current value for the channel

saveConfiguration

public void saveConfiguration()
Saves the configuration data


publishTrendingSummary

public RefrigTrendingSummaryStatus publishTrendingSummary()
The following methods have been added to make the GUI work. This is a work-around the problem of sending commands and receive a reply on a different Thread



Copyright © 2012 LSST. All Rights Reserved.