
public class FilterManager extends Object implements org.lsst.ccs.framework.HasLifecycle
| 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 |
init() |
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() |
public SortedMap<String,Filter> getFiltersMapByName()
public void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic 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.