org.lsst.ccs.subsystems.fcs.testbench
Class CanOpenLED

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.testbench.CanOpenLED
All Implemented Interfaces:
Serializable, Observer, org.lsst.ccs.framework.Configurable, Led

public class CanOpenLED
extends org.lsst.ccs.framework.Module
implements Led

Used in APC TEST BENCH only. This is to represent a very basic led which is connected on the CAn Open device AI814

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
 
Nested classes/interfaces inherited from interface org.lsst.ccs.framework.Configurable
org.lsst.ccs.framework.Configurable.Environment
 
Field Summary
 
Fields inherited from class org.lsst.ccs.framework.Module
environment, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
CanOpenLED()
           
 
Method Summary
 CanOpenDAC getDac()
           
 String getDacName()
           
 int getOutputNumero()
           
 void initModule()
           
 String sentCurrent(String hexa)
          to sent a current to a led
 void setDac(CanOpenDAC dac)
           
 void setDacName(String dacName)
           
 void setOutputNumero(int outputNumero)
           
 String turnOFF()
           
 String turnON()
           
 
Methods inherited from class org.lsst.ccs.framework.Module
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, register, register, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, 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
 

Constructor Detail

CanOpenLED

public CanOpenLED()
Method Detail

getDac

public CanOpenDAC getDac()

setDac

public void setDac(CanOpenDAC dac)

getDacName

public String getDacName()

setDacName

public void setDacName(String dacName)

getOutputNumero

public int getOutputNumero()

setOutputNumero

public void setOutputNumero(int outputNumero)

initModule

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

turnON

public String turnON()
              throws SDORequestError,
                     HardwareNotDetectedException
Specified by:
turnON in interface Led
Throws:
SDORequestError
HardwareNotDetectedException

turnOFF

public String turnOFF()
               throws SDORequestError,
                      HardwareNotDetectedException
Specified by:
turnOFF in interface Led
Throws:
SDORequestError
HardwareNotDetectedException

sentCurrent

public String sentCurrent(String hexa)
                   throws SDORequestError,
                          HardwareNotDetectedException
to sent a current to a led

Parameters:
hexa - (3000 par exemple)
Returns:
Throws:
SDORequestError
HardwareNotDetectedException


Copyright © 2013 LSST. All Rights Reserved.