public class ComCamFilterChangerSubsystemLayer extends Object implements FilterChangerInterface
| Modifier and Type | Field and Description |
|---|---|
protected CCS |
ccs |
protected MCMCommandSender |
commandSender |
protected MCMConfig |
config |
| Constructor and Description |
|---|
ComCamFilterChangerSubsystemLayer(org.lsst.ccs.Subsystem mcm,
CCS ccs,
MCMConfig config) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAvailableFilters()
Get a map of available filters, containing the (unique) name of each filter
and the type of each filter
|
String |
getCurrentFilter()
Get the currently installed filter name
|
Duration |
getEstimatedDurationForFilterChange(String filterName)
Get the expected (worse-case) duration to move to new filter
|
List<String> |
getInstalledFilters()
Get a list of currently installed filters
|
org.lsst.ccs.bus.data.AgentLock |
lockAndSwitchToNormal(int level) |
protected void |
onConnect(org.lsst.ccs.bus.data.AgentInfo agent,
org.lsst.ccs.bus.states.StateBundle initialState)
This method is called whenever the target subsystems connects, including
initially when the the MCM itself starts up if the target subsystem is
already running.
|
protected void |
onDisconnect(org.lsst.ccs.bus.data.AgentInfo agent) |
protected void |
onEvent(org.lsst.ccs.bus.messages.StatusMessage msg) |
protected void |
onStateChange(org.lsst.ccs.bus.messages.StatusStateChangeNotification statusChange) |
void |
setFilter(String filter)
Set the currently installed filter
|
void |
start(String configName) |
void |
unlock() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstartprotected final MCMConfig config
protected final MCMCommandSender commandSender
protected final CCS ccs
public void setFilter(String filter) throws ExecutionException
FilterChangerInterfacesetFilter in interface FilterChangerInterfaceExecutionException - if the command failspublic Map<String,String> getAvailableFilters() throws ExecutionException
FilterChangerInterfacegetAvailableFilters in interface FilterChangerInterfaceExecutionExceptionpublic List<String> getInstalledFilters() throws ExecutionException
FilterChangerInterfacegetInstalledFilters in interface FilterChangerInterfaceExecutionExceptionpublic String getCurrentFilter() throws ExecutionException
FilterChangerInterfacegetCurrentFilter in interface FilterChangerInterfaceExecutionExceptionpublic Duration getEstimatedDurationForFilterChange(String filterName)
FilterChangerInterfacegetEstimatedDurationForFilterChange in interface FilterChangerInterfaceprotected void onConnect(org.lsst.ccs.bus.data.AgentInfo agent,
org.lsst.ccs.bus.states.StateBundle initialState)
protected void onDisconnect(org.lsst.ccs.bus.data.AgentInfo agent)
protected void onStateChange(org.lsst.ccs.bus.messages.StatusStateChangeNotification statusChange)
protected void onEvent(org.lsst.ccs.bus.messages.StatusMessage msg)
public org.lsst.ccs.bus.data.AgentLock lockAndSwitchToNormal(int level)
throws ExecutionException
ExecutionExceptionpublic void unlock()
throws ExecutionException
ExecutionExceptionpublic void start(String configName) throws ExecutionException
ExecutionExceptionCopyright © 2023 LSST. All rights reserved.