org.lsst.ccs.subsystems.fcs
Class FlipRailModule

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.FlipRailModule
All Implemented Interfaces:
java.io.Serializable, java.util.Observer, FlipRail

public class FlipRailModule
extends org.lsst.ccs.framework.Module
implements FlipRail

The fliprail is a rail for the auto-changer. The auto-changer trucks can go along this fliprail when it's closed (aligned) with the rail of the auto-changer. It should disapear in the finale version.

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
 
Fields inherited from class org.lsst.ccs.framework.Module
log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
FlipRailModule()
           
 
Method Summary
 java.lang.String close()
          close fliprail (align fliprail with autochanger rail) The fliprail has to be closed to be able to move autochanger.
 Actuator getActuator()
           
 FlipRailState getState()
           
 void goHome()
           
 void initModule()
           
 java.lang.String open()
          open fliprail (it goes out carousel way.) Fliprail has to be open to be able to rotate carousel.
 void setActuator(Actuator actuator)
           
 void setState(FlipRailState state)
           
 java.lang.String stop()
           
 void tick()
          What has to be done for each tick of the timer.
 
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

FlipRailModule

public FlipRailModule()
Method Detail

close

public java.lang.String close()
                       throws org.lsst.ccs.bus.ErrorInCommandExecutionException
close fliprail (align fliprail with autochanger rail) The fliprail has to be closed to be able to move autochanger.

Specified by:
close in interface FlipRail
Returns:
TODO
Throws:
org.lsst.ccs.bus.ErrorInCommandExecutionException

open

public java.lang.String open()
                      throws org.lsst.ccs.bus.ErrorInCommandExecutionException,
                             org.lsst.ccs.bus.BadCommandException
open fliprail (it goes out carousel way.) Fliprail has to be open to be able to rotate carousel. autochanger trucks position must be greater than SWAPOUT position ?

Specified by:
open in interface FlipRail
Throws:
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException

goHome

public void goHome()
Specified by:
goHome in interface FlipRail

initModule

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

tick

public void tick()
What has to be done for each tick of the timer. We have to notify our observers we have changed and give them the new values of the update data.

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

stop

public java.lang.String stop()

getState

public FlipRailState getState()
Specified by:
getState in interface FlipRail

setState

public void setState(FlipRailState state)

getActuator

public Actuator getActuator()

setActuator

public void setActuator(Actuator actuator)


Copyright © 2012 LSST. All Rights Reserved.