
public class FilterManager
extends org.lsst.ccs.framework.Module
| Modifier and Type | Field and Description |
|---|---|
protected TreeMap<String,Filter> |
filtersMapByName
A map to store the filters that FCS manages.
|
| Constructor and Description |
|---|
FilterManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkFilterName(String filterName)
This method controls if the filter name given at the console by an
operator is correct.
|
Filter |
getFilterByID(int id)
Return Return filter which id is given as argument.
|
Filter |
getFilterByName(String filterName)
Return a filter which name is given as argument.
|
String |
getFilterNameByID(int id)
Return Return filter name which correspond to ID.
|
List<String> |
getFilterNamesSortedByFilterID()
Returns a list of filter names.
|
String |
getFilterOnAutochangerName()
Returns name of filter on autochanger trucks if there is a filter on trucks,
returns null otherwise.
|
SortedMap<Integer,Filter> |
getFiltersMapByID() |
SortedMap<String,Filter> |
getFiltersMapByName()
A getter for the Filters Map sorted by filter name.
|
void |
initModule() |
void |
publishData()
Publish filters data to refresh GUI.
|
void |
setFilterLocation(int filterID,
FcsEnumerations.FilterLocation filterLocation)
For the filter which id is given as argument, set a new location given as argument.
|
String |
toString() |
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, setNObserverThreads, setObservables, setTickMillis, shutdownNow, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangesetParameterBulkpostInit, postShutdown, postStart, startpublic SortedMap<String,Filter> getFiltersMapByName()
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic Filter getFilterByName(String filterName)
filterName - public Filter getFilterByID(int id)
id - @Command(type=QUERY, level=0, description="Return filter name which correspond to ID.") public String getFilterNameByID(int id)
id - public List<String> getFilterNamesSortedByFilterID()
protected void checkFilterName(String filterName)
filterName - IllegalArgumentException - in this case :
public void setFilterLocation(int filterID,
FcsEnumerations.FilterLocation filterLocation)
filterID - filterLocation - @Command(type=QUERY, level=0, description="Returns name of filter on autochanger trucks if there is a filter on trucks,null otherwise.") public String getFilterOnAutochangerName()
@Command(type=QUERY, level=0, description="Publish filters data to refresh GUI.") public void publishData()
Copyright © 2017 LSST. All rights reserved.