org.lsst.ccs.subsystems.fcs
Class TruckModule

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.TruckModule
All Implemented Interfaces:
Serializable, Observer
Direct Known Subclasses:
SimuTruckModule

public class TruckModule
extends org.lsst.ccs.framework.Module

A truck is a mobile part in the autochanger. It's the mechanical item which holds a filter through a latch and moves the filter from STANDBY position to STANDBACK and back. There is 2 trucks in the autochanger, one on each side of the filter. A truck move along a rail. The position of a truck is given by 2 sensors (hall effect sensor) which are located on the rails. One is at STANDBY position, the other is at STANDBACK position. The trucks are moved by a motor. They are moved together by a motor which synchronizes the motion of both trucks.

Author:
virieux
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module
org.lsst.ccs.framework.Module.ValueUpdate
 
Field Summary
protected  NumericSensor railSensorStandback
          A effect Hall sensor which says if the truck is at standback position or not.
protected  NumericSensor railSensorStandby
          A effect Hall sensor which says if the truck is at standby position or not.
 
Fields inherited from class org.lsst.ccs.framework.Module
configMethods, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
TruckModule()
           
 
Method Summary
 NumericSensor getRailSensorStandback()
           
 NumericSensor getRailSensorStandby()
           
 FcsEnumerations.AutoChangerTrucksLocation getTruckLocation()
          This method returns the truck position (an ENUM).
 void initModule()
           
 void setRailSensorStandback(NumericSensor railSensorStandback)
           
 void setRailSensorStandby(NumericSensor railSensorStandby)
           
 void updateLocation(String hexaValueOfInputs)
          This methods updates the field truckLocation in parsing the values of the 8 channels of the DIO device.
 
Methods inherited from class org.lsst.ccs.framework.Module
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, register, register, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, tick, 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
 

Field Detail

railSensorStandback

protected NumericSensor railSensorStandback
A effect Hall sensor which says if the truck is at standback position or not.


railSensorStandby

protected NumericSensor railSensorStandby
A effect Hall sensor which says if the truck is at standby position or not.

Constructor Detail

TruckModule

public TruckModule()
Method Detail

getRailSensorStandback

public NumericSensor getRailSensorStandback()

setRailSensorStandback

public void setRailSensorStandback(NumericSensor railSensorStandback)

getRailSensorStandby

public NumericSensor getRailSensorStandby()

setRailSensorStandby

public void setRailSensorStandby(NumericSensor railSensorStandby)

initModule

public void initModule()
Overrides:
initModule in class org.lsst.ccs.framework.Module

getTruckLocation

public FcsEnumerations.AutoChangerTrucksLocation getTruckLocation()
This method returns the truck position (an ENUM). If the truck position is being updated it waits until the end of the update.

Returns:
truckLocation

updateLocation

public void updateLocation(String hexaValueOfInputs)
                    throws org.lsst.ccs.bus.ErrorInCommandExecutionException
This methods updates the field truckLocation in parsing the values of the 8 channels of the DIO device.

Parameters:
channels -
Throws:
org.lsst.ccs.bus.ErrorInCommandExecutionException


Copyright © 2012 LSST. All Rights Reserved.